On 08/03/2011 05:32 PM, Daniel Carbajo wrote:
> The point is that I have a page where I can load many proteins, change them
> from cartoon to spacefill to whatever, highlight residues in wireframe...
> and then I have a button which redirects to another page which is similar,
> but with different proteins, which are actually the same ones but with
> temperature factor records changed with other descriptors... In this second
> page I want to restore all the settings from the previous (proteins loaded,
> whether they are in cartoon, spacefill, etc., residues highlighted,
> orientation...).
Are the temperature factor changes the only differences between the
structure files in the first and second page?
Restoring the state information can only work if all atoms and related
information like groups, chains are identical within the files.
I havn't tried yet to restore a state using a different file for
restoring. So I don't know how much actually can be modified without a
problem.
> Which do you think would be the best way to do so?
> Does jmolGetPropertyAsString("stateInfo") return all that information? If
> so, I am not so sure where to put it so it can be used by the second page...
> This is my first attempt in php:
> $content .= "<form><button type=\"submit\" onClick='var
> state=jmolGetPropertyAsString(\"stateInfo\");
> alert(state)'>CHECK</button></form>";
> But I do not want a button and an alert... besides the output is cut so I do
> not get to see everything that jmolGetPropertyAsString("stateInfo")
> returns... Any suggestions?
I guess the "button wich redirects to another page" will request the
second PHP. So you must actually send the state form data to your second
PHP code (join the two buttons). This PHP code must then parse the form
data, build the page and load the state script into Jmol.
I havn't done any PHP programming so I can't help you on this side.
Regards,
Rolf
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users