A couple of suggestions: 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.
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). - N David Brown 2009/6/18 Mickael Krzeminski <[email protected]>: > Dear Jmol users, > > I recently met a problem when displaying a structure, which does not > correspond to the one I loaded. > > To be clearer... I created a webpage, which displays several buttons, > which correspond to different molecules. > Every time you click on a button, the information is sent to the > server, which generates the structure and creates the corresponding pdb > file. Then, a window opens and initialises Jmol before reading and > displaying the structure. The structure has always the same name, but the > contents of the file is obviously different. > The problem there is that the structure is always the same! But... > > 0. Let us call A the structure that is always displayed and B the one I > want to see. > 1. I checked out directly the file on the server and the generated pdb > structure is well B, even though the one which is displayed is A. > 2. The structure A does NOT exist at all on the server (Because it has > never been generated). How Jmol can still find it ? > 2. With the dropdown menu of Jmol, I asked for downloading the file. And > when I open this file locally (With PyMol for instance), I get the correct > structure, B. > > Any clue ? Thanks a lot for all your remarks and comments. > > Cheers, > Mickael > > > ------------------------------------------------------------------------------ > 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 > ------------------------------------------------------------------------------ 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

