<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1038224" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1038224</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/onclick-event-failing-ie#comment-1218429</link>
    <description> &lt;p&gt;Apparently, I&#039;m not getting email notifications like I should be.&lt;/p&gt;
&lt;p&gt;Anyways, let me play around with that later tonight, and I&#039;ll get back to you.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
 </description>
     <pubDate>Fri, 27 Apr 2007 01:42:14 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1218429 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/onclick-event-failing-ie#comment-1218378</link>
    <description> &lt;p&gt;You need to access the selected option like this:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;type_select = document.getElementById(&amp;#039;type&amp;#039;);&lt;br /&gt;type_val = type_select.options[type_select.selectedIndex].value;&lt;/code&gt;&lt;/div&gt;&#039;&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;/p&gt;
 </description>
     <pubDate>Wed, 25 Apr 2007 21:04:58 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1218378 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/onclick-event-failing-ie#comment-1218376</link>
    <description> &lt;p&gt;Ok, so I&#039;m a little confused on how &quot;onChange&quot; works with &#039;select&#039;... I got a few different examples when I searched for it.&lt;/p&gt;
&lt;p&gt;What I&#039;ve got, that seems to make sense is:&lt;/p&gt;
&lt;p&gt;HTML&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;	&amp;lt;select name=&amp;quot;type&amp;quot; id=&amp;quot;type&amp;quot; onChange=&amp;quot;type()&amp;quot;&amp;gt;&lt;br /&gt;		&amp;lt;option value=&amp;quot;&amp;quot; id=&amp;quot;blankLoad&amp;quot;&amp;gt;&amp;lt;/option&amp;gt;&lt;br /&gt;		&amp;lt;option value=&amp;quot;Hosting&amp;quot;&amp;gt;Hosting&amp;lt;/option&amp;gt;&lt;br /&gt;		&amp;lt;option value=&amp;quot;Services&amp;quot;&amp;gt;Services&amp;lt;/option&amp;gt;&lt;br /&gt;		&amp;lt;option value=&amp;quot;Products&amp;quot;&amp;gt;Products&amp;lt;/option&amp;gt;&lt;br /&gt;	&amp;lt;/select&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;JS&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;function type() {&lt;br /&gt;	type_val = document.getElementById(&amp;#039;type&amp;#039;).value;&lt;br /&gt;	&lt;br /&gt;	if (type_val == &amp;#039;Hosting&amp;#039;) {&lt;br /&gt;		type_id = 1;&lt;br /&gt;	} else if (type_val == &amp;#039;Services&amp;#039;) {&lt;br /&gt;		type_id = 2;&lt;br /&gt;	} else if (type_val == &amp;#039;Products&amp;#039;) {&lt;br /&gt;		type_id = 3;&lt;br /&gt;	} else if (type_val == &amp;#039;mSoL&amp;#039;) {&lt;br /&gt;		type_id = 9;&lt;br /&gt;	}&lt;br /&gt;	&lt;br /&gt;	document.getElementById(type_id).style.display = &amp;quot;block&amp;quot;;&lt;br /&gt;	document.getElementById(type_id).style.visibility = &amp;quot;visible&amp;quot;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;But that doesn&#039;t work.  I tried different permutations and things, but I&#039;m not even sure if I&#039;m going in the right direction.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;Thanks again&lt;/p&gt;
 </description>
     <pubDate>Wed, 25 Apr 2007 19:25:20 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1218376 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/onclick-event-failing-ie#comment-1218297</link>
    <description> &lt;p&gt;I&#039;m using Iceweasel 2.0 -- almost exactly the same as Firefox 2.0 -- on GNU/Linux.  Maybe that makes a difference.&lt;/p&gt;
 </description>
     <pubDate>Mon, 23 Apr 2007 21:08:25 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1218297 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/onclick-event-failing-ie#comment-1218266</link>
    <description> &lt;p&gt;Oh.  That&#039;s weird because it works for me in FF, like I said...&lt;/p&gt;
&lt;p&gt;I&#039;ll try &#039;onChange&#039;.  I didn&#039;t know that existed.&lt;/p&gt;
&lt;p&gt;I&#039;ll repost in a while.&lt;/p&gt;
 </description>
     <pubDate>Mon, 23 Apr 2007 05:03:18 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1218266 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/onclick-event-failing-ie#comment-1218260</link>
    <description> &lt;p&gt;Fails in Firefox and Konqueror too.  Not sure why it works for you.&lt;/p&gt;
&lt;p&gt;You shouldn&#039;t be using [incode]onclick[/incode] here anyway.  Use [incode]onchange[/incode] for the [incode]select[/incode] tag.  It has the added advantages of also working if the user uses a keyboard rather than the mouse, and not running the update code if they click but don&#039;t change the selection.&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;/p&gt;
 </description>
     <pubDate>Sun, 22 Apr 2007 22:58:40 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1218260 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
