Passing form variables to new window created by JavaScript

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 37359
interpreted = N
texte = MacOS 9.1, WebSTAR 4.4, WebCat 4.0.2rc1 patched First off, I suck at JavaScript. It's on the list of things to learn more about.That being said, I have a part of a site that shows local movie listings. Users can search by theater or by movie. They select a movie or a theater from a selection list and click on the submit button. If I just have it go another page in the same window, it works just fine --- the the variables get passed.BUT, if I try to do it via a new window created via a JavaScript function, the formvariables are NOT passed to the new window where they are needed for a search.Is there a way to pass select option values to a new window created with JavaScript? I searched the archives, but I couldn't find anything exactly on point or that I understood enough to modify to my needs. Below is the code for one of the forms:
[search db=admin/listing.db&eqFIELD1datarq=4&asFIELD3sort=1] [/search]
I'd just put the variable in the URL I'm passing to the JS function, but it depends on the selected option. I can't figure out how to get the value of the selected option and insert it into a JS function. Any help would be greatly appreciated.Thanks,Steven -- Steven Jarvis Web Developer sjarvis@nwaonline.net NWAonline.net ------------------------------------------------------------- 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:

    
  1. Re: Passing form variables to new window created by JavaScript (Andrew Simpson 2001)
  2. Passing form variables to new window created by JavaScript (Steven Jarvis 2001)
MacOS 9.1, WebSTAR 4.4, WebCat 4.0.2rc1 patched First off, I suck at JavaScript. It's on the list of things to learn more about.That being said, I have a part of a site that shows local movie listings. Users can search by theater or by movie. They select a movie or a theater from a selection list and click on the submit button. If I just have it go another page in the same window, it works just fine --- the the variables get passed.BUT, if I try to do it via a new window created via a JavaScript function, the formvariables are NOT passed to the new window where they are needed for a search.Is there a way to pass select option values to a new window created with JavaScript? I searched the archives, but I couldn't find anything exactly on point or that I understood enough to modify to my needs. Below is the code for one of the forms:
[search db=admin/listing.db&eqFIELD1datarq=4&asFIELD3sort=1] [/search]
I'd just put the variable in the URL I'm passing to the JS function, but it depends on the selected option. I can't figure out how to get the value of the selected option and insert it into a JS function. Any help would be greatly appreciated.Thanks,Steven -- Steven Jarvis Web Developer sjarvis@nwaonline.net NWAonline.net ------------------------------------------------------------- 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/ Steven Jarvis

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:

Complex search (2002) URGENT: NO BUG, woFIELDdata & FIELDword=ww (2002) F3 crashing server (1997) FYI: virus alert (1996) Separate SSL Server (1997) Re:Emailer and encryption (1997) Pirated WebCat? NOT... (2003) EXPR text bug? (2000) Make sure I understand this??? (1997) Add to Cart & List of Products (1997) WebDNA's current version? (2003) [WebDNA] High-profile WebDNA sites? (2008) japanese characters (1997) Not really WebCat (1997) Need relative path explanation (1997) Can't Update records (1997) WebCatalog Technical Reference (1997) Upgrading old WebCat Database Files (1997) WC1.6 to WC2 date formatting (1997) Adding Multiple Items to Shopping Cart from a Results page (1997)