Thanks for help. I have implemented message callback function. I have
another question. I think it is more of a javascript question rather
than JMol. I want to know how can I keep checking a variable for a
particular value, in my case "script completed", and when find it, I
move ahead with my program's next line. i have tried using Settimeout
function in javascript, but its not working.

I did something like this

function show()
{
---
---
while (abc != "script completed")
{
setTimeout(check(),100)
}
---
---
}

function check()
{
var a=document.name.value;  --->from message callback
a=a.split("\n");
abc=a[0];
}

abc is holding the value of first line from message callback I want to
monitor its value to check for "script completed", and if it is I move
to next line in loop.

Thanks

Alok


On 7/29/05, timothy driscoll <[EMAIL PROTECTED]> wrote:
> On 2005-07-29 (17:35) Rolf Huehne wrote:
> 
> >alok vaid wrote:
> >>Thanks for help. I have editted the jmol.js file, and also tried to
> >>include the _jmolMessageCallback function in my page. but somehow
> >>the whole things wasnt working. I have been trying a lot, and will
> >>work on it more tonight. Do you have a web page where you have it
> >>implemented? I am using Safari on Mac OS.
> >>
> >
> >I have extracted the relevant part into this page:
> >
> >http://www.imb-jena.de/ImgLibPDB/pages/Jmol-rh/callback_demo.html
> >
> >While the script is loading into Jmol a lot of selection messages
> >should appear in the Log textarea. If you click at the buttons there
> >should appear new messages, e.g.:
> >
> >Script completed stereo 5 Jmol executing script ...
> >
> >I tried this on a Notebook with MacOS X V10.3.9, Safari 1.3(v312)
> >and Java V.1.4.2_5 (Apple Inc.) and it worked. Only for the redraw
> >of the textarea content I had to click into the textarea. fter I did
> >this once the messages triggered by the buttons appeared
> >automatically most of the time. Only sometimes I had to click again
> >into the textarea.
> >
> I have noticed this repaint behavior as well.  I do not think it is a result 
> of the message callback directly, though.  all of my 'non-visible' functions 
> based on the content of a callback work without trouble.
> 
> OSX browsers in general have fairly ugly repaint issues - especially with the 
> Jmol applet (try scrolling a Jmol Web page and you will see what I mean).  
> lots of flashing, hiccupping, etc.
> 
> regads,
> 
> tim
> --
> Timothy Driscoll
> molvisions - see, grasp, learn.
> <http://www.molvisions.com/>
> usa:north carolina:raleigh
> 
> "Death is not the worst than can happen to men." - Plato
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&opclick
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to