> How does one do this (i.e. fire a url off in the background to populate > a popup)? This would be incredibly useful to me but alas I do not know > too much about javascript but am trying to learn as I get time. > > Regards > Trevor >
It is a very useful technique. I've used it for: 1) populating popups 2) updating data without leaving the page 3) logging clicks that take a user away from your site 4) sending email from html pages The best way is with frames. Have a 1 pixel high frame at the bottom of you page. Set your onChange handler function on the first popup to fire off a url in the little frame. Like parent.workFrame.location='some.tml?someparameters'; This searches the database for the values to go in the second popup, and returns javascript like thePopup=parent.mainFrame.document.formName.popupName; thePopup.options.length=0; // clear the popup <@rows> thePopup.options[<@currow>-1] = new Option(<@col 2>); thePopup.options[<@currow>-1].value = '<@col 1>'; </@rows> You can also do it without frames, but it's a bit trickier. This, and other useful tricks, may be included in the Advanced Tango Training course that Mike Young and I are organizing. There's still some seats available for the session starting on Monday in Pittsburgh. Dave. > on 6/6/02 5:23 PM, Dave Shelley at [EMAIL PROTECTED] wrote: > > > Jose, > > > > How you do this may depend on how much data you have. > > > > If it's not too much, say under 100 models, try this: > > 1) define a method in a tcf to return an array of all makes and models > > 2) call that and use the result to populate a javascript array > > 3) put distinct makes in the first popup with an onChange handler > > 4) your onChange handler loops through the javascript array and > updates the > > model popup with all the models that match the make > > > > If you have a lot of data, 100's of records or more, it's a little > trickier. > > Put an onChange handler on the 'make' popup that fires off a url in > the > > background. This returns some javascript that populates the 'models' > popup > > with all the matching models. It's a bit slower because you have to go > back > > the the server and database to populate the second popup, but still > it's > > kinda cool :) > > > > Dave. > > > >> -----Original Message----- > >> From: [EMAIL PROTECTED] > >> [mailto:[EMAIL PROTECTED]]On Behalf Of Jose Kuhn > >> Sent: Thursday, June 06, 2002 2:28 PM > >> To: Multiple recipients of list witango-talk > >> Subject: Witango-Talk: Array => Pop Up Menu > >> > >> > >> I want to create dynamic Pop up menus using Witango. Ie the user > >> selects VW > >> from the first menu and the second menu dynamically changes to > >> Golf, Jetta, > >> Passatt,...etc. > >> > >> What is the best way to handle this? > >> > >> Thanks > >> > >> Jose > >> > >> > ________________________________________________________________________ > >> TO UNSUBSCRIBE: send a plain text/US ASCII email to > [EMAIL PROTECTED] > >> with unsubscribe witango-talk in the message body > > > > > ________________________________________________________________________ > > TO UNSUBSCRIBE: send a plain text/US ASCII email to > [EMAIL PROTECTED] > > with unsubscribe witango-talk in the message body > > -- > Webologies > 150 Robinette Drive > Waynesville, NC 28786 > 828.627.1994 > > http://www.webologies.com > > __________________________________________________________________ > Karen Sympathy: "Bullwinkle, Do you know how to repell?" > Bullwinkle: " Why sure. We've been repelling audiences for years!" > __________________________________________________________________ > > ________________________________________________________________________ > TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] > with unsubscribe witango-talk in the message body > ________________________________________________________________________ > TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] > with unsubscribe witango-talk in the message body
<<attachment: winmail.dat>>
