Difference between revisions of "User:AngelHerraez/Sandbox/PhpUrl"

From Jmol
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== A test for urlContents with a PHP url ==
 
== A test for urlContents with a PHP url ==
Simple URL, within wiki.jmol.org:
+
{|
 
+
|<jmol>
<jmol>
 
 
   <jmolApplet>
 
   <jmolApplet>
     <size>200</size>
+
     <size>100</size>
 
     <urlContents>http://wiki.jmol.org/images/Caffeine.mol</urlContents>
 
     <urlContents>http://wiki.jmol.org/images/Caffeine.mol</urlContents>
 
   </jmolApplet>
 
   </jmolApplet>
 
</jmol>
 
</jmol>
 
+
|a simple URL, within wiki.jmol.org
Simple URL, in an outside server (supposedly need the signed applet, but it's not so):
+
|-
 
+
|<jmol>
<jmol>
 
 
   <jmolApplet>
 
   <jmolApplet>
     <size>200</size>
+
     <size>100</size>
 
     <urlContents>http://biomodel.uah.es/model1j/prot/cys.pdb</urlContents>
 
     <urlContents>http://biomodel.uah.es/model1j/prot/cys.pdb</urlContents>
 
   </jmolApplet>
 
   </jmolApplet>
 
</jmol>
 
</jmol>
 
+
|a simple URL, in an outside server (supposedly this needs the signed applet, but it's working with the unsigned applet)
PHP URL:
+
|-
<jmol>
+
|<jmol>
 
   <jmolApplet>
 
   <jmolApplet>
     <size>200</size>
+
     <size>100</size>
 
     <urlContents>http://defusco.msg.chem.iastate.edu/~albert/viewgit/?a=viewblob&p=formaldehyde&h=1094fd3626ac8aae5bb4051ff891f72bb5f82f9a&hb=64f680294186d6d4e1d4687ed57a08bcdfa2f595&f=a1.gamess</urlContents>
 
     <urlContents>http://defusco.msg.chem.iastate.edu/~albert/viewgit/?a=viewblob&p=formaldehyde&h=1094fd3626ac8aae5bb4051ff891f72bb5f82f9a&hb=64f680294186d6d4e1d4687ed57a08bcdfa2f595&f=a1.gamess</urlContents>
 
   </jmolApplet>
 
   </jmolApplet>
 
</jmol>
 
</jmol>
 +
|a PHP url, that includes ampersands :: this is broken
 +
|-
 +
|<jmol>
 +
  <jmolApplet>
 +
    <size>100</size>
 +
    <urlContents>http://defusco.msg.chem.iastate.edu/~albert/viewgit/?a=viewblob&amp;p=formaldehyde&amp;h=1094fd3626ac8aae5bb4051ff891f72bb5f82f9a&amp;hb=64f680294186d6d4e1d4687ed57a08bcdfa2f595&amp;f=a1.gamess</urlContents>
 +
  </jmolApplet>
 +
</jmol>
 +
|now ampersands are written as <code>&amp;amp;</code>. At least the applet loads, but does not find the file (tries <code>load f=a1.gamess</code>)
 +
|-
 +
|<jmol>
 +
  <jmolApplet>
 +
    <signed>true</signed>
 +
    <size>100</size>
 +
    <urlContents>http://defusco.msg.chem.iastate.edu/~albert/viewgit/?a=viewblob%26p=formaldehyde%26h=1094fd3626ac8aae5bb4051ff891f72bb5f82f9a%26hb=64f680294186d6d4e1d4687ed57a08bcdfa2f595%26f=a1.gamess</urlContents>
 +
  </jmolApplet>
 +
</jmol>
 +
|now ampersands are written as <code>%26</code> (the wikicode for &). The applet loads, the file is not found until we update the Jmol WikiMedia Extension to version 3.2 (a patch which processes those %26 codes).
 +
|}

Latest revision as of 19:55, 12 November 2009

A test for urlContents with a PHP url

a simple URL, within wiki.jmol.org
a simple URL, in an outside server (supposedly this needs the signed applet, but it's working with the unsigned applet)
a PHP url, that includes ampersands :: this is broken
now ampersands are written as &amp;. At least the applet loads, but does not find the file (tries load f=a1.gamess)
now ampersands are written as %26 (the wikicode for &). The applet loads, the file is not found until we update the Jmol WikiMedia Extension to version 3.2 (a patch which processes those %26 codes).

Contributors

AngelHerraez