On 2005-07-12 (12:05) alok vaid wrote:

<snip>
>If i can load 1 file at a time, the way I am doing it now, it gives me
>that flexibility. Can you suggest me some other method, in which I can
>avoid flashing. Like i said, I do not have problems with time it takes
>to load, but during that time I want my earlier image to be still
>displayed in applet. Is there any way, if i get into the source code.
>
<snip>

hi,

off the top of my head:

write two divs to your html page, same dimensions and one on top of the other. 
write Jmol applets to both diivs, then load your first model in the applet in 
div1 (while div2 remains hidden).  when a user requests a new model, have it 
load in div2, then make div2 visible and div1 hidden. (you can use visibility 
or z-index to do this, tho the latter has been buggy in my hands.)  swap divs 
as new files are loaded.  this should relieve the flashing if it is due to file 
loading.

you can use callbacks to monitor when a model is fully loaded in each div.


hth,

tim
-- 
Timothy Driscoll
molvisions - see, grasp, learn.
<http://www.molvisions.com/>
usa:north carolina:raleigh

"You have attributed conditions to villainy that simply result from stupidity." 
- Robert Heinlein


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to