There's a problem with your php.
A php file can be a standard html file with php code parts included between 
<?php ?> tags.
If you set your php in a variable a $JMOL, then you don't have to use the <?php 
?> syntax so the first option is the good one.
But I think there is something wrong in the statement of your first line with 
the quotes you use, either simple or double ones. You should use
$JMOL .= '<script>jmolButton('''.$ESTADO.'", "RESTORE");</script>';
Try to debug that in php (echo $JMOL) and look at what it looks like in the 
resulting HTML code. If your HTML is correct then the problem might be with the 
script you pass to Jmol.
Paul

Le 7 août 2011 à 12:41, Daniel Carbajo a écrit :

> OK I am completely lost with this actually... I am sorry for being quite dumb 
> but I just don't get it.
> I already have the output of jmolGetPropertyAsString("stateInfo") in a PHP 
> variable called $ESTADO in my Second PHP Page (where I have to restore the 
> state), so how do I actually restore the state using that variable? I have 
> tried the following with 0 success:
> $JMOL .= '<script>jmolButton(\''.$ESTADO.'\', "RESTORE");</script>';
> $JMOL .= '<script>jmolButton("<?php echo $ESTADO; ?>", "RESTORE");</script>';
> 
> The above don't work so how should I actually do it? Thanks for all this help 
> and sorry again for being quite slow with this...
> Daniel        

------------------------------------------------------------------------------
BlackBerry&reg; 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

Reply via email to