Feedback on: Dropdown Menus #2
Technical:
Too technical
Comments:
Hello. After trying my hardest for weeks to find something relating to my problem, I believe I have found it, this site. However I don't quite understand it. I have a frames page with a drop down menu on one page. The frames page is set up so that there are directional keys on the left, then the rest of the site is on the right -- a common frames site. However, on a few of the pages i have a dropdown menu that takes you to different pages. But when i do that, it opens up a new broswer. I have found out that i need a special JavaScript applet to do it correctly. The problem is, i don't know javascript. So i cant' write it, and i can't really find anywhere that has it. I foudn this site, and i think it is what i need, but, like i siad earlier, i dont' understand it. So i guess if you could help me in what i need i would greatly appreciate it. I am also under a deadline, one comming up very very soon. So if you could kindly respond soon, I woul GREATLY appreciate it! Thank you for your tiem and effort.
James Asher
Length:
Just right
Comments:
exept the last example doesn't work on ie 5... scripting error, object does not support this property. changed syntax maybe?
Worth:
Worth reading
Comments:
I was looking for information on getting the "new option" for select boxes to work between windows (a popup window would modify the select box of the window.opener). I can get it to work on netscape but IE (3, 4, and 5)crashes. Do you have any tips on getting this type of situation to work?
Worth:
Worth reading
Length:
Just right
Comments:
I am using IE5 and the 'Amending Options' example creates several similar runtime errors. (Object doesnt support this property or method) Is this a browser issue? I am having a similar problem with some of my code.
Worth:
Worth reading
Comments:
But one more point you've skipped out,
I want to display my contents in the list box & enable the user to scroll through the list but not allow him to select or deselect the list. How u can do it?
Worth:
Very worth reading
Comments:
Hey,
I found the hints for dynamic dropdown menus very helpful and have been using them often. I found something out, though.
Instead of refreshing the screen on Netscape browsers with history.go(0), you can just do a javascript click on the new option (or any option) in the select box. This is much less visually intrusive on the client since it doesn't produce the flicker.
function addOption(object) {
var defaultSelected = true;
var selected = true;
var optionName = new Option(object.currentText.value, object.currentValue.value, defaultSelected, selected)
var length = object.selectName.length;
object.selectName.options[length] = optionName;
/*The new bit*/
object.selectName.options[length-1].selected = true; \\length has been incremented
/*End new bit*/
}
I've only tried this on Netscape 4.6 thus far. Hope this is helpful, I just thought it was slick and thought you might too.
Thanks again,
Mike
Worth:
Very worth reading
Comments:
I built several pages but never got a dropdown box to work. With the first page I had actually a code to my satisfaction...Thanks...
Worth:
Very worth reading
Length:
Technical:
Comments:
Great Read very informative. Thanks