Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: Dropdown Menus #2

Feedback on: Dropdown Menus #2

Sent by James Asher on February 06, 1999 at 11:59:12: - feedback #80

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



Sent by vesa-matti hyppönen on April 25, 1999 at 11:49:37: - feedback #173

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?



Sent by Charles Ragan on January 14, 2000 at 09:09:41: - feedback #736

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?


Sent by Judith Gedye on January 31, 2000 at 07:03:24: - feedback #776

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.


Sent by Vishwaroopa Chary on August 15, 2000 at 13:40:43: - feedback #1629

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?


Sent by Mike Jones on December 29, 2000 at 17:11:34: - feedback #2188

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


Sent by Michael on September 24, 2002 at 17:21:34: - feedback #4167

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...


Sent by Aiden Doyle on Thursday November 15, 2007 at 21:50:05 - feedback #5146

Worth:
Very worth reading

Length:

Technical:

Comments:
Great Read very informative. Thanks




©2018 Martin Webb