<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1011666" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1011666</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-do-i-work-numeric-variables-netscape-304#comment-1067617</link>
    <description> &lt;p&gt;Vinny: I am not saying to force them to change, just saying that you should suggest it to them. Most people don&#039;t realise how easy it is update a browser.&lt;/p&gt;
 </description>
     <pubDate>Mon, 17 Jul 2000 16:12:31 +0000</pubDate>
 <dc:creator>Lloyd Hassell</dc:creator>
 <guid isPermaLink="false">comment 1067617 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-do-i-work-numeric-variables-netscape-304#comment-1067559</link>
    <description> &lt;p&gt;Hi Lloydd,&lt;/p&gt;
&lt;p&gt;  While I may agree with you in principle, I don&#039;t believe it is wise to force people to choose between what is and what should be, especially if those people are the ones paying your salary, so to speak.&lt;/p&gt;
&lt;p&gt;Vinny&lt;/p&gt;
 </description>
     <pubDate>Sun, 16 Jul 2000 23:08:40 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1067559 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-do-i-work-numeric-variables-netscape-304#comment-1067466</link>
    <description> &lt;p&gt;If you do come across people using older browsers (especially netscape) why don&#039;t you just tell them their browsers are out of date. Most people don&#039;t realise the limitations surfers have with older browsers and the headaches that they give to the developer. Education is the key.&lt;/p&gt;
 </description>
     <pubDate>Sat, 15 Jul 2000 15:58:11 +0000</pubDate>
 <dc:creator>Lloyd Hassell</dc:creator>
 <guid isPermaLink="false">comment 1067466 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-do-i-work-numeric-variables-netscape-304#comment-1067319</link>
    <description> &lt;p&gt;Hi Dan,&lt;/p&gt;
&lt;p&gt;   no prob.  suspected the nn3 was being used by some educational facility -- amusing how it&#039;s ok to spend money to &#039;string them up&#039; rather than &#039;teach them right&#039;  As Dylan said, &quot;When will they ever learn?&quot; (bob, not thomas) &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Vinny&lt;/p&gt;
 </description>
     <pubDate>Thu, 13 Jul 2000 12:05:18 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1067319 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-do-i-work-numeric-variables-netscape-304#comment-1067307</link>
    <description> &lt;p&gt;Ahh, finally got it!&lt;/p&gt;
&lt;p&gt;Thanks tons for your help, Vinny. Thanks for the input theGraphicsExperience. Both the Community College and the public library by where I live are STILL using NS3, so I&#039;m just assuming it is like this elsewhere, although I totally agree that no serious surfer should be using any thing less than 4, but what can you do?&lt;/p&gt;
&lt;p&gt;Thanks again for your help,&lt;br /&gt;
Dan&lt;/p&gt;
 </description>
     <pubDate>Thu, 13 Jul 2000 02:16:44 +0000</pubDate>
 <dc:creator>dan</dc:creator>
 <guid isPermaLink="false">comment 1067307 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-do-i-work-numeric-variables-netscape-304#comment-1067182</link>
    <description> &lt;p&gt;Hi Dan,&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt; &lt;strong&gt; My fault &lt;/strong&gt; -- I forgot to put in the
&lt;ol&gt;
&lt;/ol&gt;
&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; &lt;strong&gt; maybe not &lt;/strong&gt; -- the board is chewing it up --  an opening &quot;[&quot; and &quot;i&quot; and a closing &quot;]&quot; &lt;/p&gt;
&lt;p&gt;function calcbod(selObj)&lt;br /&gt;
{&lt;br /&gt;
var feet = 0;&lt;br /&gt;
for (x=0; x &amp;lt; selObj.length; x++)&lt;br /&gt;
if (selObj.options[x].selected) ////// put the index here -- an opening &quot;[&quot; and &quot;i&quot; and a closing &quot;]&quot;&lt;br /&gt;
{&lt;br /&gt;
feet = selObj.options[x].value; // ditto&lt;br /&gt;
alert(&#039;feet is &#039; + feet);&lt;br /&gt;
alert(&#039;feet + 3 is: &#039; + (feet + 3));&lt;br /&gt;
}&lt;br /&gt;
} &lt;/p&gt;
&lt;p&gt;I didn&#039;t test with version 3 -- I don&#039;t have it.  And I don&#039;t really know anyone who does.  However, if it doesn&#039;t work with the correction, it won&#039;t work, and you&#039;ll have to follow theGraphicExperience&#039;s advice -- advise people to upgrade -- either that or not use selection lists and the DOM (I don&#039;t remember in which version the two were first supported by Netscape.) If you absolutely have to support ver 3, let me know.&lt;/p&gt;
&lt;p&gt;Hi theGraphicsExperience:  In theory, you&#039;re right, but I can think of at least one user-type that would be extremely reticent to the concept of upgrading browsers -- a school district. I&#039;ve helped individuals around the world (Australia, New Zealand, Malta, etc) who had to program in backward compatibility, and it wasn&#039;t easy.&lt;/p&gt;
&lt;p&gt;Vinny&lt;/p&gt;
&lt;p&gt;[Edited by Vincent Puglia on 07-11-2000 at 09:35 PM]&lt;/p&gt;
 </description>
     <pubDate>Wed, 12 Jul 2000 01:30:38 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1067182 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Here&#039;s an idea...</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-do-i-work-numeric-variables-netscape-304#comment-1067169</link>
    <description> &lt;p&gt;NS3.04 is out of date.&lt;br /&gt;
In fact... it&#039;s seriously out of date.&lt;/p&gt;
&lt;p&gt;Why not just bypass the whole thing and just set up a browser redirection script that recommends that people update to the newest version?&lt;/p&gt;
&lt;p&gt;I mean, come on... if people are not--by now--using a 4.0 browser, then as a friend of mine said &#039;they shouldn&#039;t be using the internet at all.&#039;&lt;/p&gt;
&lt;p&gt;Backwards compatibility is good and all, but here&#039;s where you stop and ask yourself:  Is it -worth- the trouble?&lt;/p&gt;
 </description>
     <pubDate>Tue, 11 Jul 2000 22:12:26 +0000</pubDate>
 <dc:creator>TheGraphicsExperience</dc:creator>
 <guid isPermaLink="false">comment 1067169 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-do-i-work-numeric-variables-netscape-304#comment-1067166</link>
    <description> &lt;p&gt;Hi Vinny,&lt;/p&gt;
&lt;p&gt;I cut and pasted your code on its own new html page and it didn&#039;t work. I selected, and it did nothing. So, I commented out the actual loop, but the select value still displayed as null. I also tried filling in that DOM variable with the proper values - just got an error. Did you actually try that code out in NS 3.04? Can this be done like I did using the elements array instead of the input object name. I have about 20 other input objects that I&#039;m working with?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
Dan&lt;/p&gt;
 </description>
     <pubDate>Tue, 11 Jul 2000 20:50:18 +0000</pubDate>
 <dc:creator>dan</dc:creator>
 <guid isPermaLink="false">comment 1067166 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-do-i-work-numeric-variables-netscape-304#comment-1067042</link>
    <description> &lt;p&gt;Hi Dan, &lt;/p&gt;
&lt;p&gt;  You&#039;re using an infamous IE-shortcut in your alerts. In fact, it&#039;s one I&#039;ve never seen. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;To access selection list options, you need to use the following DOM (document object model):&lt;/p&gt;
&lt;p&gt;document.formname.selectname.options[document.formname.selectname.selectedIndex].value;&lt;/p&gt;
&lt;p&gt;(Mouthful, huh?  That&#039;s why Microsoft made it&#039;s shortcuts)&lt;/p&gt;
&lt;p&gt;To do what you want, I would code it like this:&lt;/p&gt;
&lt;p&gt;function calcbod(selObj)&lt;br /&gt;
{&lt;br /&gt;
  var feet = 0;&lt;br /&gt;
  for (i=0; i &amp;lt; selObj.length; i++)&lt;br /&gt;
     if (selObj.options[i].selected)&lt;br /&gt;
     {&lt;br /&gt;
        feet = selObj.options[i].value;&lt;br /&gt;
        alert(&#039;feet is &#039; + feet);&lt;br /&gt;
        alert(&#039;feet + 3 is: &#039; + (feet + 3));&lt;br /&gt;
     }&lt;br /&gt;
} &lt;/p&gt;
&lt;p&gt;2&#039;&lt;br /&gt;
3&#039;&lt;br /&gt;
4&#039;&lt;br /&gt;
5&#039;&lt;br /&gt;
6&#039;&lt;br /&gt;
7&#039;&lt;br /&gt;
8&#039; &lt;/p&gt;
&lt;p&gt;Notes:&lt;br /&gt;
1) I only passed &quot;this&quot; because it is what you need, you don&#039;t need the form (unless you put in some other field with which you do additional calculations.&lt;br /&gt;
2) I took out the parseFloat: parseInt(num) is what you would use, but it should work without either.&lt;br /&gt;
3) I use a for loop rather than send the selectedIndex because I cut and paste function templates into my code -- I&#039;ve found this way to be the most compatible for what I do == regardless of whether the list is a select-one or a select-multiple.&lt;/p&gt;
&lt;p&gt;Vinny&lt;/p&gt;
 </description>
     <pubDate>Sun, 09 Jul 2000 21:36:49 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1067042 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-do-i-work-numeric-variables-netscape-304#comment-1067026</link>
    <description> &lt;p&gt;Thanks a lot for responding, Vinny. This has been bothering me for a long time. The following snippet demonstrates the heart of the problem. I&#039;ve set up three alerts to display the number selected from the select menu, and not one displays the number correctly in NS 3.04, though it is fine in IE. What am I missing?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
Dan&lt;/p&gt;
&lt;p&gt;&amp;lt;script language=javascript&amp;gt;&lt;br /&gt;
function calcbod(form)&lt;br /&gt;
{&lt;br /&gt;
	var x=0;&lt;br /&gt;
	x += form.elements[0].value;&lt;br /&gt;
	feet = parseFloat(form.elements[0].value);&lt;/p&gt;
&lt;p&gt;	alert(&#039;unassigned is &#039; + form.elements[0].value);&lt;br /&gt;
	alert(&#039;x is &#039; + x);&lt;br /&gt;
	alert(&#039;feet is &#039; + feet);&lt;/p&gt;
&lt;p&gt;}&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;            2&#039;&lt;br /&gt;
            3&#039;&lt;br /&gt;
            4&#039;&lt;br /&gt;
            5&#039;&lt;br /&gt;
            6&#039;&lt;br /&gt;
            7&#039;&lt;br /&gt;
            8&#039;&lt;/p&gt;
 </description>
     <pubDate>Sun, 09 Jul 2000 15:44:52 +0000</pubDate>
 <dc:creator>dan</dc:creator>
 <guid isPermaLink="false">comment 1067026 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
