<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1003012" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1003012</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/java-menu#comment-1013295</link>
    <description> &lt;p&gt;Hi Vy,&lt;/p&gt;
&lt;p&gt;   You&#039;re welcome;  I hope the problem is solved.&lt;/p&gt;
&lt;p&gt;Vinny&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;a href=&quot;http://members.aol.com/grassblad&quot; class=&quot;bb-url&quot;&gt;GrassBlade: cut&amp;amp;paste javascript&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 25 Mar 2000 02:51:00 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1013295 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/java-menu#comment-1013294</link>
    <description> &lt;p&gt;Thanks you two! Your help has been much appreciated!  &lt;img src=&quot;http://www.webmaster-forums.com/ubb/smile.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt;&lt;/p&gt;
&lt;p&gt;~Vy~&lt;/p&gt;
 </description>
     <pubDate>Fri, 24 Mar 2000 10:15:00 +0000</pubDate>
 <dc:creator>vy22</dc:creator>
 <guid isPermaLink="false">comment 1013294 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/java-menu#comment-1013293</link>
    <description> &lt;p&gt;Hi Vy,&lt;/p&gt;
&lt;p&gt;   Sorry for the confusion.  We&#039;ll start over again, ok?&lt;/p&gt;
&lt;p&gt;   Now this is the only selection list I found on the home page (your link).  I presume you are testing somewhere else. &lt;/p&gt;
&lt;p&gt;   If your second menu calls the exact same go() function, you cannot have more than one popup menu on the page.  The reason is that you are &quot;hardcoding&quot; the DOM (document object model) into the function.  &quot;document.selecter.select1&quot; is hardcoding.  This means it will only work with the first menu that has those same names.&lt;br /&gt;
Your code:&lt;/p&gt;
&lt;p&gt;function go(){&lt;br /&gt;
if (document.selecter.select1.options[document.selecter.select1.selectedIndex].value != &quot;none&quot;) {&lt;br /&gt;
location = document.selecter.select1.options[document.selecter.select1.selectedIndex].value&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Your choices are as follows:&lt;/p&gt;
&lt;p&gt;  1) use my no &quot;go&quot; button script -- the one with the doSel() function. (The number of people who disable their browser&#039;s javascript and use only HTML is inconsequential -- especially for a site that is pushing web services.)&lt;/p&gt;
&lt;p&gt;  2) send the option&#039;s value as an argument. This means you should kill the &quot;document.write(...selector...) code and just use straight HTML.  Other necessary changes would be:&lt;/p&gt;
&lt;p&gt;...onclick=&quot;go(document.selecter.select1.options[document.selecter.select1.selectedIndex].value)&quot;&lt;/p&gt;
&lt;p&gt;and &lt;/p&gt;
&lt;p&gt;function go(selValue){&lt;br /&gt;
 location.href = selValue;&lt;/p&gt;
&lt;p&gt;  3) write a different &quot;go&quot; function for each dropdown menu -- this is the worst choice.  (It&#039;s bad programming.)&lt;/p&gt;
&lt;p&gt;Hope this isn&#039;t too confusing.&lt;br /&gt;
(BTW: there is no function difference between using document.location and location.href -- the browser will load the desired page in any event.)&lt;/p&gt;
&lt;p&gt;Vinny&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;a href=&quot;http://members.aol.com/grassblad&quot; class=&quot;bb-url&quot;&gt;GrassBlade: cut&amp;amp;paste javascript&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 23 Mar 2000 01:27:00 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1013293 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/java-menu#comment-1013291</link>
    <description> &lt;p&gt;Vincent,&lt;/p&gt;
&lt;p&gt;I am sorry but you are speaking a language I know nothing about and you are confusing me a bit. I appreciate your time though. I had a look at your page and still can&#039;t figure out what you mean by the doselect() function&lt;/p&gt;
&lt;p&gt;I want to use the html one so people that do not have java enabled can choose from the non java menu. I tried getting the script to work by basically copyeng the script and pasting it in another table cell. Like shown below. IF I do this I get a script debug error when I press go&lt;/p&gt;
&lt;p&gt;1&lt;/p&gt;
&lt;p&gt;&amp;lt;form name=&quot;htmlMenu&quot;&amp;gt;&lt;br /&gt;
    &amp;lt;select name=&quot;htmlSelList&quot; size=&quot;1&quot;&amp;gt;&lt;br /&gt;
    &amp;lt;option selected value=&quot;#&quot;&amp;gt;Select a page, then Go!&lt;br /&gt;
    &amp;lt;option value=&quot;dHTML1.html&quot;&amp;gt;Dynamic HTML 1&amp;lt;/option&amp;gt;&lt;br /&gt;
    &amp;lt;option value=&quot;validForm.html&quot;&amp;gt;Validating Forms 1&amp;lt;/option&amp;gt;&lt;br /&gt;
    &amp;lt;option value=&quot;../index.html&quot;&amp;gt;GrassBlade Home Page&amp;lt;/option&amp;gt;&lt;br /&gt;
    &amp;lt;option value=&quot;validSSN.html&quot;&amp;gt;Validating SSNs&amp;lt;/option&amp;gt;&lt;br /&gt;
    &amp;lt;option value=&quot;selSwitch.html&quot;&amp;gt;Multiple Select Swap&amp;lt;/option&amp;gt;&lt;br /&gt;
    &amp;lt;/select&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;button&quot; onClick=&quot;document.location = document.htmlMenu.htmlSelList.options [document.htmlMenu.htmlSelList.selectedIndex].value;&quot;&lt;br /&gt;
 value=&quot;GO&quot;&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;/p&gt;
&lt;p&gt;2&lt;/p&gt;
&lt;p&gt;&amp;lt;form name=&quot;htmlMenu&quot;&amp;gt;&lt;br /&gt;
    &amp;lt;select name=&quot;htmlSelList&quot; size=&quot;1&quot;&amp;gt;&lt;br /&gt;
    &amp;lt;option selected value=&quot;#&quot;&amp;gt;Select a page, then Go!&lt;br /&gt;
    &amp;lt;option value=&quot;dHTML1.html&quot;&amp;gt;Dynamic HTML 1&amp;lt;/option&amp;gt;&lt;br /&gt;
    &amp;lt;option value=&quot;validForm.html&quot;&amp;gt;Validating Forms 1&amp;lt;/option&amp;gt;&lt;br /&gt;
    &amp;lt;option value=&quot;../index.html&quot;&amp;gt;GrassBlade Home Page&amp;lt;/option&amp;gt;&lt;br /&gt;
    &amp;lt;option value=&quot;validSSN.html&quot;&amp;gt;Validating SSNs&amp;lt;/option&amp;gt;&lt;br /&gt;
    &amp;lt;option value=&quot;selSwitch.html&quot;&amp;gt;Multiple Select Swap&amp;lt;/option&amp;gt;&lt;br /&gt;
    &amp;lt;/select&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;button&quot; onClick=&quot;document.location = document.htmlMenu.htmlSelList.options [document.htmlMenu.htmlSelList.selectedIndex].value;&quot;&lt;br /&gt;
 value=&quot;GO&quot;&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 22 Mar 2000 14:12:00 +0000</pubDate>
 <dc:creator>vy22</dc:creator>
 <guid isPermaLink="false">comment 1013291 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/java-menu#comment-1013292</link>
    <description> &lt;p&gt;&amp;lt;FORM NAME=&quot;Mills44&quot;&amp;gt;&lt;br /&gt;
&amp;lt;SELECT NAME=&quot;E&quot;&amp;gt;&lt;br /&gt;
&amp;lt;OPTION VALUE = &quot;index/links.htm&quot;&amp;gt;Links to Everything!&lt;br /&gt;
&amp;lt;OPTION VALUE = &quot;psycho/psycho.htm&quot;&amp;gt;PsychoBabble Articles&lt;br /&gt;
&amp;lt;OPTION VALUE = &quot;photos/portfolio.htm&quot;&amp;gt;Photographic Portfolio&lt;br /&gt;
&amp;lt;OPTION VALUE = &quot;verses/verses.htm&quot;&amp;gt;Verses Veritas&lt;br /&gt;
&amp;lt;OPTION VALUE = &quot;suzanne/suzanne.htm&quot;&amp;gt;From the Mind of Suzanne&lt;br /&gt;
&amp;lt;OPTION VALUE = &quot;resume/resume.htm&quot;&amp;gt;Resume&lt;br /&gt;
&amp;lt;OPTION VALUE = &quot;quilts/quilts.htm&quot;&amp;gt;Quilt Designs by Scott&lt;br /&gt;
&amp;lt;OPTION VALUE = &quot;baby/home.htm&quot;&amp;gt;Baby Carter-Jackson&lt;br /&gt;
&amp;lt;/SELECT&amp;gt;&lt;br /&gt;
&amp;lt;INPUT TYPE=&quot;button&quot; VALUE=&quot;Go!&quot; onclick=&quot;location.href = document.Mills44.E.options[document.Mills44.E.selectedIndex].value&quot;&amp;gt;&lt;br /&gt;
&amp;lt;/FORM&amp;gt;&lt;br /&gt;
&amp;lt;noscript&amp;gt;&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;A href=&quot;index/links.htm&quot;&amp;gt;Links (PsychoBabble and others)&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;A href=&quot;psycho/psycho.htm&quot;&amp;gt;PsychoBabble Articles&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;A href=&quot;photo/portfolio.htm&quot;&amp;gt;Photographic Portfolio&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;A href=&quot;verses/verses.htm&quot;&amp;gt;Verses Veritas&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;A href=&quot;suzanne/suzanne.htm&quot;&amp;gt;From the Mind of Suzanne&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;A href=&quot;resume/resume.htm&quot;&amp;gt;Resume&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;A href=&quot;quilts/quilts.htm&quot;&amp;gt;Quilt Designs by Scott&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;a href=&quot;baby/home.htm&quot;&amp;gt;Baby Carter-Jackson&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/noscript&amp;gt;&lt;/p&gt;
&lt;p&gt;That&#039;s mine above.&lt;/p&gt;
&lt;p&gt;The difference I see between yours (with the error) and mine (which has been working for almost 3 years now) is that you have:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;document.location&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;and I have&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;location.href&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;And that I have the value=&quot;go&quot; before the JavaScript.&lt;/p&gt;
&lt;p&gt;hth,&lt;/p&gt;
&lt;p&gt;Suzanne&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;a href=&quot;http://www.zerocattle.com&quot; class=&quot;bb-url&quot;&gt;Zero Cattle&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.inforamp.net/~suzanne/&quot; class=&quot;bb-url&quot;&gt;Suzanne&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.inforamp.net/~suzanne/index/celtic.html&quot; class=&quot;bb-url&quot;&gt;Tables DeMystified&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 22 Mar 2000 05:18:00 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1013292 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/java-menu#comment-1013290</link>
    <description> &lt;p&gt;Hi Vy,&lt;/p&gt;
&lt;p&gt;  What error did you get?&lt;br /&gt;
  Did you also snip the doSel() function? If you read the explanation at the &quot;Select &amp;amp; Go Menus&quot; script, you&#039;ll see that you can have more than one menu. (My home page is evidence; 4 dropdowns, 1 function)&lt;br /&gt;
  The trick is to send &quot;this&quot; when calling the function and using different names for the select element. (as in What&#039;s New, Learning Curve, I Object, etc)&lt;br /&gt;
  BTW: why are you docWriting?&lt;/p&gt;
&lt;p&gt;Vinny&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;a href=&quot;http://members.aol.com/grassblad&quot; class=&quot;bb-url&quot;&gt;GrassBlade: cut&amp;amp;paste javascript&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 22 Mar 2000 02:31:00 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1013290 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/java-menu#comment-1013289</link>
    <description> &lt;p&gt;Vincent tried nicking your dropdown from your site but got a script error on that too.&lt;br /&gt;
I think i am doing something wrong here. All I need is a few drope down menu&#039;s that will go in a table ok. I tried using a java one but it messed up my tables. Here is the one I tried from your site:&lt;/p&gt;
&lt;p&gt;&amp;lt;form&amp;gt;&lt;br /&gt;
   &amp;lt;p&amp;gt;&amp;lt;select name=&quot;whatsNew&quot; size=&quot;1&quot;&lt;br /&gt;
                    onchange=&quot;doSel(this)&quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;option selected value&amp;gt;What&#039;s New&amp;lt;/option&amp;gt;&lt;br /&gt;
                        &amp;lt;option&lt;br /&gt;
                        value=&quot;location.href=&#039;html/selCascade1.html&#039;&quot;&amp;gt;Cascading Selects 1&amp;lt;/option&amp;gt;&lt;br /&gt;
                        &amp;lt;option&lt;br /&gt;
                        value=&quot;location.href=&#039;html/snippet4.html&#039;&quot;&amp;gt;Changing Button Values&amp;lt;/option&amp;gt;&lt;br /&gt;
                        &amp;lt;option&lt;br /&gt;
                        value=&quot;location.href=&#039;html/randBanner.html&#039;&quot;&amp;gt;Read Banner Data from File&amp;lt;/option&amp;gt;&lt;br /&gt;
                        &amp;lt;option&lt;br /&gt;
                        value=&quot;location.href=&#039;html/rolodex3.html&#039;&quot;&amp;gt;Rolodex version 3&amp;lt;/option&amp;gt;&lt;br /&gt;
                        &amp;lt;option&lt;br /&gt;
                        value=&quot;location.href=&#039;html/dHTML3.html&#039;&quot;&amp;gt;dHTML: Moving Layers&amp;lt;/option&amp;gt;&lt;br /&gt;
                    &amp;lt;/select&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
                &amp;lt;/form&amp;gt;&lt;/p&gt;
&lt;p&gt;Is there anything I can do to the original one on my site to allow ie and netscape to use it twice?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;~Vy~&lt;/p&gt;
 </description>
     <pubDate>Tue, 21 Mar 2000 09:19:00 +0000</pubDate>
 <dc:creator>vy22</dc:creator>
 <guid isPermaLink="false">comment 1013289 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/java-menu#comment-1013288</link>
    <description> &lt;p&gt;Hi Vy,&lt;/p&gt;
&lt;p&gt;   I only saw one dropdown; I did notice that you are document.writing() the list. So...if you are using the same code for the second menu (as in the same select name), you will get either an error or confusion from the browser.&lt;br /&gt;
   You might be interested in the &quot;Select &amp;amp; Go Menus&quot; script at my site.  It demonstrates 2 types of dropdowns (with &amp;amp; without go button) and discusses pros &amp;amp; cons of each.&lt;/p&gt;
&lt;p&gt;Vinny&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;a href=&quot;http://members.aol.com/grassblad&quot; class=&quot;bb-url&quot;&gt;GrassBlade: cut&amp;amp;paste javascript&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 21 Mar 2000 03:07:00 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1013288 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/java-menu#comment-1013287</link>
    <description> &lt;p&gt;The tables are all relative -- so they will stretch at higher resolutions.  If you want one to not stretch, set it with absolute pixels and leave the others to sort themselves out (no width set at all).&lt;/p&gt;
&lt;p&gt;Try this:&lt;/p&gt;
&lt;p&gt;&amp;lt;INPUT type=&quot;button&quot; value=&quot;Go&quot; onclick=&quot;location.href = document.selecter.select1.options[document.selecter.select1.selectedIndex].value&quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;For the go button to make sure it works properly.  Adding a list under it as &amp;lt;noscript&amp;gt;&amp;lt;/noscript&amp;gt; would be useful, too, so that folks without JavaScript can use the menu as well.&lt;/p&gt;
&lt;p&gt;I found I had a harder time getting the drop-downs to work in Netscape because it wasn&#039;t updating them when I refreshed (this was a while ago, though).  I notice that sometimes I have to clear the cache to get a page on my hard drive to reload properly.&lt;/p&gt;
&lt;p&gt;hth, maybe someone has a better option?&lt;/p&gt;
&lt;p&gt; &lt;img src=&quot;http://www.webmaster-forums.com/ubb/smile.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt; Suzanne&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;a href=&quot;http://www.zerocattle.com&quot; class=&quot;bb-url&quot;&gt;Zero Cattle&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.inforamp.net/~suzanne/&quot; class=&quot;bb-url&quot;&gt;Suzanne&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.inforamp.net/~suzanne/index/celtic.html&quot; class=&quot;bb-url&quot;&gt;Tables DeMystified&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 20 Mar 2000 19:49:00 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1013287 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
