Re: OT: JavaScript question
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 38716
interpreted = N
texte = >I have this script which I got off some scripts site. It is a pop-up menu>that automatically takes you to the URL specified in the option tag of the>menu. I want to make a change to this code so that I can use it for MULTIPLE>pop-up menu's on the same page. At this point, to get it to work the select>must be named 'site'. How do I change this to have that part of the script>be passed from the pop-up so that it is a more 'generic' function?Don't use a function. Just use this in your popup menu:onChange=location.href=this.options[this.selectedIndex].value;-- ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Ljusa Idéer AB S-211 37 Malmoe Fax +46 40 97 99 77 Sweden http://www.ljusaideer.se-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>I have this script which I got off some scripts site. It is a pop-up menu>that automatically takes you to the URL specified in the option tag of the>menu. I want to make a change to this code so that I can use it for MULTIPLE>pop-up menu's on the same page. At this point, to get it to work the select>must be named 'site'. How do I change this to have that part of the script>be passed from the pop-up so that it is a more 'generic' function?Don't use a function. Just use this in your popup menu:onChange=location.href=this.options[this.selectedIndex].value;-- ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Ljusa Idéer AB S-211 37 Malmoe Fax +46 40 97 99 77 Sweden http://www.ljusaideer.se-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Christer Olsson
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
[HIDEIF] inside [FOUNDITEM] (1997)
[Capitalize] (1998)
frames & carts (1997)
Searching multiple Databases (1997)
WebCat2: Items xx to xx shown, etc. (1997)
Nested vs conditional (1997)
Here's an example of an applet in a tpl (1997)
Authorize Net??? (2002)
Uploading out of FMP (2001)
WebCat2b12 CGI Mac -- Problems propagating the cart through frames...still (1997)
FEW QUESTIONS (1997)
Running 2 two WebCatalog.acgi's (1996)
Virtual hosting and webcatNT (1997)
problem with dates, NT version (1997)
test (2000)
Problems getting parameters passed into email. (1996)
Bug Report, maybe (1997)
locking variables? (2000)
OT - Public Upload Security (2002)
Shipping by order total (2003)