> Miguel,
>
> Actually I have been able to load the molfiles (with the button calling
> the javascript function 'loadInline') as follows:
>
> I loaded the molfiles into Oracle table with type clob.
> In HTML DB they appear in a row in a report as a text area with a given
> 'ID' or name.
> I embed the JMOL applet in on cell in the same row and have the button
> call loadInline to bring the structure in - and this seems to work.

Yes ... seems like that would work.

> Having the call in the applet tags doesn't work as you explained
> below...
>
> Since it does seem to work when the loadInline call is outside of the
> applet tags,

The fact that these two names are the same may have been a confusingly
poor choice.

One is a Java/JavaScript method name ... the other is a parameter name.

> Is there a way I can use the javascript:loadInline(); by
> having it automatically called - like with  onLoad or onchange ?

Those things should work fine.

You could also set a timer to load them.

But I would be concerned that some JavaScript implementations would croak
if you tried to trigger a large number of onLoad events.

> Would I be better off going with CML instead, or would I run into the
> same issue with the newlines getting cut off?

CML would work fine too. And would not have the problem with newlines.

However, it seems to me that you are pretty close ...

Substituting | characters for \r?\n sequences should be easy. I am quite
sure that you could have Oracle do it as part of your query (although I
don't know how). Alternatively, just run it through a regular expression.

I am not familiar with the tools that you are using. Is there a scripting
language that is running on the server side to generate the pages? If so,
I think that generating the | and using the loadInline PARAM should be
straightforward.


Miguel




-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Jmol-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to