Hi Keith,
Can you post the code for all the 9 drop down lists in your page or the page itself. I'm going out now but if nobody has solved it for you by the time I get back I will look at it for you.
Cheers,
stevey
Hello
I've been trying for four days straight to fix a problem with the dropdown lists on my page, and I feel like I'm going insane!![]()
On each page there are nine drop down lists on the right hand side, showing mobile phone models. I have called each list a different FORM NAME, eg. NokiaModels, SamsungModels. Here is an example:
All the other nine drop down lists are exactly the same. However, the above Nokia list falls over when I select something from the list. I get the following error code:Code:<form name="NokiaModels"> <p align="center"> <img border="0" src="images/nokia.jpg" alt="Nokia Mobile Phone Deals" width="88" height="19"></a><br> <select style="font-size: 12px; color: #333399; font-family: Verdana; background-color: #ffffff" name="menu" onChange="location=document.NokiaModels.menu.options[document.NokiaModels.menu.selectedIndex].value;" size="1"> <option>Pick A Model</option> <option value="1100.html">1100</option> <option value="7250.html">7250</option> <option value="6600.html">6600</option> </select> </form>
The interesting thing is.... even if I remove the above drop down list, and move one below (ie. Samsung Models) into its place... then THAT drop down list seems to give the same error! I've also tried renaming them and but I cannot seem to find the reason for the first drop-down list always throwing up this problem.Line: 291
Char: 1
Error: 'document.NokiaModels.menu' is null or not an object
Code: 0
Anyone any ideas on this? I've tried searching this forum and the web but with no luck!![]()
Thanks,
Keith
Hi Keith,
Can you post the code for all the 9 drop down lists in your page or the page itself. I'm going out now but if nobody has solved it for you by the time I get back I will look at it for you.
Cheers,
stevey
stevey
Stevey,
Thanks very much for your help with this - I have sent you a PM with the full code.
Keith
Hi Keith,
Cheers for the code. Your problem is you haven't included the closing </form> tag for your other form object named "form1" at the top of your page. Once you implement this you'll find it's all working fine.
As the yanks say, "Have a nice day!"![]()
Cheers,
stevey
stevey
Stevey,
As I say while jumping up and down... "You da man!"![]()
Geez one little tag was all that was needed...thank you so much! I can finally finish the rest of the site now!!
Keith
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks