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

From Jmol
Jump to navigation Jump to search
 
Line 15: Line 15:
 
   </jmolApplet>
 
   </jmolApplet>
 
</jmol>
 
</jmol>
|a simple URL, in an outside server (supposedly need the signed applet, but it's not so)
+
|a simple URL, in an outside server (supposedly this needs the signed applet, but it's working with the unsigned applet)
 
|-
 
|-
 
|<jmol>
 
|<jmol>
Line 31: Line 31:
 
   </jmolApplet>
 
   </jmolApplet>
 
</jmol>
 
</jmol>
|now ampersands are written as <code>&amp;amp;</code>. At least the applet loads, but does not find the file (does <code>load f=a1.gamess</code>)
+
|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