Michael, the way I read your message I think your problem is very likely due to 
the browser 
caching the file (that's either the browser cache or Java cache). 

You say that structure A has never been in the server. Then, where did it come 
from? I 
guess it is loaded into Jmol at page load time. If not so, you muts find where 
is it.

Then, when a new structure is server-generated, because it has the same name 
the cache 
will think it''s got it already and display that instead of downloading the 
(new) structure.

When you request Jmol to download, it probably makes another request from the 
server, 
then gets the correct structure.

Everything makes sense to me in terms of cache.

You need to make the browser think that the file(name) it is retrieving is 
different every 
time. Try adding a random number or text, maybe as part of a non-significant 
parameter (for 
web pages, the "search" part of location, i.e. the text after "?" in the url, 
achieves this 
effect).

Apart from that, in reply to David's comments:

> Firstly, generate the .pdb server-side as .txt file instead, then load
> it in your web browser with the same URL you're using for Jmol, and
> tell Jmol to load it as a .pdb, to make 100% sure the remote file is
> the new structure and you have read access to that file remotely.

Jmol does not care what the extension or mimetype is. It will read the file and 
determine the 
format from its content.


> Secondly, I don't know how good your programming skills are, but you
> can very easily use AJAX to call a PHP script which will read your
> file, passed as POST parameter to the PHP script (e.g.
> http://myserver/myscript.php?fileid=xxxx). The script will then 'echo'
> the file contents, and the JavaScript which receives these contents
> via its AJAX call can then simply call jmolLoadInline(contents,
> targetSuffix).

That may work, but inline models are tricky, mostly because of the handling of 
line breaks / 
carriage returns across OSs. I would avoid that if there is any other solution.



------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to