Here's the start of the HTML:
<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&amp;deg;" /><input type="hidd +en" name="trace2" value="Si(111) phi=90&amp;deg;" /><input type="hidd +en" name="trace3" value="Si(220) phi=0&amp;deg;" /><input type="hidde +n" name="trace4" value="Si(220) phi=90&amp;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>
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.

In reply to Re: Re: Malformed HTML output by simX
in thread Malformed HTML output by simX

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.