On Dec 19, 2006, at 4:13 PM, H. Paul Benton wrote:

> Tim,
>     It gave is a wired double semi-colon .
> I copy and pasted the text from your email.
>
hi Paul,

it's this line:

> ?>;


get rid of that trailing semi-colon (after the close php tag) and you  
should be all set.

t


> <tr><td>Structure:</td><td colspan="4">
> <script>
> var mol =
> '<param name="loadInline" value="CCC(N)C(=O)O
> JME 2002.04 Thu Oct 07 09:35:06 GMT-08:00 2004
>
>   7  6                            V2000
>     0.0000    2.4249    0.0000 C
>     1.4000    0.0000    0.0000 N
>     4.2000    2.4249    0.0000 O
>     4.2000    0.0000    0.0000 O
>     1.4000    2.4249    0.0000 C
>     3.5000    1.2124    0.0000 C
>     2.1000    1.2124    0.0000 C
>   1  5  1  0
>   2  7  1  0
>   3  6  2  0
>   4  6  1  0
>   5  7  1  0
>   6  7  1  0
> M  END
> ">';;
>
> </script>
> <script>
> jmolInitialize("java/jmol");
> jmolApplet(300);
> jmolLoadInline(mol);
> </script>
> <br>
>
> Paul
>
> Research Technician
> Mass Spectrometry
>    o The
>   /
> o Scripps
>   \
>    o Research
>   /
> o Institute
>
>
>
> Timothy Driscoll wrote:
>> off the cuff, you may need some quotes around the value for mol, like
>> this:
>>
>>
>>> var mol =
>>> <?php
>>> if ($data['molfile'])
>>>     echo '\'<param name="loadInline" value="' . preg_replace("/
>>> \n/", "|",
>>> $data['molfile']) . '">\';';
>>> ?>;
>>> </script>
>>>
>> tim
>>
>
> ---------------------------------------------------------------------- 
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to  
> share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php? 
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users

tim
-- 
Timothy Driscoll                                em: [EMAIL PROTECTED]
Virginia Bioinformatics Institute               ph: 540-231-3007
Bioinformatics I: M-1                           im: molvisions
Washington St., Blacksburg, VA 24061



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to