in reply to Re: Malformed HTML output
in thread Malformed HTML output
See how it just starts out with the option tags at the start? There should be a bunch more code above that that just isn't being outputted. There's more HTML after that, but there's a bunch of JavaScript that would just clutter up the page and wouldn't be useful here. I should note that I can actually check the values of $yTickLabels{'1'} and the other 3 variables by putting it at the end of the HTML output... even though half of the HTML text gets cut off at the top, I can still see the output at the bottom and so I can still see the values of these variables. If you check out a "working" copy of the script here, you'll see the problem in action -- it's much easier to see the problem that way because there's just a bunch of HTML. Simply first load the script, enter "Fe" into the chemical element field, and then press "Apply" at the bottom of the page. You'll then receive the malformed HTML page that I'm talking about. If you look on that page near the bottom, you'll see a line that starts out with "STUPID THINGS:" -- those are the values of $yTickLabels{'1'} and those other three variables, so they are valid.<option selected value="K">K</option> <option value="L1">L1</option> <option value="L2">L2</option> <option value="L3">L3</option> <option value="M">M</option> </select> <br /><input type="hidden" name="kbutton" value="1" /><input type="hid +den" name="trace1" value="Si(111) phi=0&deg;" /><input type="hidd +en" name="trace2" value="Si(111) phi=90&deg;" /><input type="hidd +en" name="trace3" value="Si(220) phi=0&deg;" /><input type="hidde +n" name="trace4" value="Si(220) phi=90&deg;" /><input type=hidden + name=stupiduser value=6.912><input type=hidden name=stupiduser2 valu +e=8.10760975609756></FONT><CENTER><FONT SIZE=-2>Note: The dashed line + denotes the chosen element's edge energy.</FONT></CENTER></TD><TD wi +dth=50%><CENTER><FONT SIZE=-1>E<FONT SIZE=-2>0</FONT> (keV): <input t +ype=text name=ezero size=10 value=7.132 onChange="document.basic.ezer +o2.value = document.kform.ezero.value"><br /><input type=hidden name= +e0default value=7.132><input type=button value="Reset E0 to Default" +onClick="document.kform.ezero.value = document.kform.e0default.value; + document.basic.ezero2.value = document.kform.e0default.value"><br /> +Max <I>k</I> Value to plot: <input type="text" name="kmax" value="16" + size="5" /><input type=hidden name=kmaxdefault value=16></FONT></CEN +TER></TD></TR><TR><TD COLSPAN=2><CENTER><INPUT TYPE=SUBMIT VALUE=Appl +y></CENTER></TR></TABLE></CENTER></TD></TR></FORM><TR><TD COLSPAN=3>< +BR><BR><font size=-2>Note: The interactive graph features require a b +rowser that supports JavaScript, and that JavaScript be enabled.<br>< +br>Click <a href="http://www-ssrl.slac.stanford.edu/~smangane/smbxas/ +beamlines/crystalsets.html">here</a> for information about the crysta +l sets used in this database.</font></tD></tr></table>
|
|---|