This is my preferred way, it can be made cross browser by using ilayers in NS4. Don't use the gif thing, it's very limited. However I think their article does link to a site that shows how to do it with ilayers/iframes.
jon ----- Original Message ----- From: "Shawn Grover" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, May 16, 2002 3:25 PM Subject: RE: Running a query in javascript > Others have suggested to use the Gif datapipe, but there is another option. > > You can create an IFrame (be aware of browser issues of course) with hight > and width set to zero. Then use JS to set the location of the IFrame to a > page that does your required queries. This page can then set values on the > parent form as required. (self.parent.document.forms[0].SomeField.value = > 1;) > > I haven't used the datapipe myself yet, as my current project is IE > specific, and IFrames were previously used. So we continued that way. So, > I don't know the pros and cons on these two options. > > My thoughts... > > Shawn Grover > > -----Original Message----- > From: Bruce, Rodney S HQISEC/SIGNAL > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 16, 2002 12:51 PM > To: CF-Talk > Subject: Running a query in javascript > > > Hello all > > I am trying to run a query inside of a javascript function. > Unless there is another way of doing this. > > > Without reloading/submitting the form I need to run a query based on user > selected options > Pass these options to the query and then place the results in a select box. > > Something like: > user is looking for a car, so the user selects blue, yr 2000, 4x4. > pass options to query, then list all avaible cars in a select box for the > use to choose from. > Then the form is submitted. > > Very easy if form is submited with options , the cars are listed on next > page, but I would like not to have to submit the form more than once. > > > Was hoping someone could help me out. > Thanks for any information > Rodney > > ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

