<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1002360" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1002360</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/help-forms-tables-problem-getting-rows-columns-calculate#comment-1010539</link>
    <description> &lt;p&gt;To: PJ&lt;br /&gt;
From: Modiggerp&lt;/p&gt;
&lt;p&gt;Thanks so very much for your quick response to my post. I really appreciate this information. After previewing it, I think I&#039;ll be ok. I will post my results to you in a week or so. Take care, and God Bless. Tom Moan, the modiggerp&lt;/p&gt;
 </description>
     <pubDate>Fri, 30 Jul 1999 22:34:00 +0000</pubDate>
 <dc:creator>modiggerp</dc:creator>
 <guid isPermaLink="false">comment 1010539 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/help-forms-tables-problem-getting-rows-columns-calculate#comment-1010538</link>
    <description> &lt;p&gt;This will not be possible in HTML alone. You will need to use some scripting (Java or VB) to get the calculations you&#039;re asking for.&lt;/p&gt;
&lt;p&gt;If you are familiar with scripting it&#039;s really simple. Just add a little recalculate order button, or the script can do it automatically for you whenever one of the boxes change.&lt;/p&gt;
&lt;p&gt;I don&#039;t really have the time to write out the script for your site since I&#039;m being paid to work for someone else &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;, but the first thing you&#039;ll have to do is name the form, it will be easier in the script to refer to the form name. I&#039;ll provide a little sample of some script that you can use on your site. For now let&#039;s say the form is called order.&lt;/p&gt;
&lt;p&gt;&amp;lt;script LANGUAGE=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
function computeForm(input)&lt;br /&gt;
{&lt;br /&gt;
form = document.order;&lt;/p&gt;
&lt;p&gt;// Guard against empty values to prevent JavaScript Errors (NaN)&lt;/p&gt;
&lt;p&gt;if (isNaN(form.r-item1price.value)) {&lt;br /&gt;
    alert(&amp;quot;Invalid input, use only numbers.&amp;quot;);&lt;br /&gt;
    form.r-item1price.focus();&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;if (isNaN(form.r-item1qty.value)) {&lt;br /&gt;
    alert(&amp;quot;Invalid input, use only numbers.&amp;quot;);&lt;br /&gt;
    form.r-item1qty.focus();&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;if (isNaN(form.r-item1total.value)) {&lt;br /&gt;
    alert(&amp;quot;Invalid input, use only numbers.&amp;quot;);&lt;br /&gt;
    form.r-item1total.focus();&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;if ((form.r-item1price.value == null &amp;brvbar;&amp;brvbar; form.r-item1price.value.length == 0)) {&lt;br /&gt;
form.r-item1price.value = 0;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;if ((form.r-item1qty.value == null &amp;brvbar;&amp;brvbar; form.r-item1qty.value.length == 0)) {&lt;br /&gt;
form.r-item1qty.value = 0;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;if ((form.r-item1total.value == null &amp;brvbar;&amp;brvbar; form.r-item1total.value.length == 0)) {&lt;br /&gt;
form.r-item1total.value = 0;&lt;br /&gt;
}&lt;br /&gt;
form.r-item1total.value = parseFloat(form.r-item1price.value) * parseFloat(form.r-item1qty.value);&lt;/p&gt;
&lt;p&gt;}&lt;br /&gt;
//--&amp;gt;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;That will do the first item in your order form, just repeat it for all the others. Then to total just add all the r-item1 - 8total boxes together. Then like I said before just assign this action to a button or an onchange event and everything should be fine. You can always give the total boxes read only access that way nobody can mess up the totals.&lt;/p&gt;
&lt;p&gt;If you don&#039;t understand scripting I guess this was kind of pointless, if that&#039;s the case I hope this was a learning experience for someone &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Later,&lt;br /&gt;
PJ&lt;/p&gt;
&lt;p&gt;P.S. Any errors in the above script are due to the fact that it was written without testing, not advisable &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 30 Jul 1999 21:54:00 +0000</pubDate>
 <dc:creator>PJ</dc:creator>
 <guid isPermaLink="false">comment 1010538 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
