Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sync cf_twoselectsrelated with data selected

Status
Not open for further replies.

theogary

Programmer
Mar 3, 2003
99
US
cf_twoselectsrelated does what it is advertised to do but I have 1 issues. How do you set cf_twoselectsrelated to the current parameters that were choosen by the prior page. Example

select 1 state = NY select 2 city = Bronx

when you query the database with city , state

cf_twoselectsrelated displays unrelated data. I want cf_twoselectsrelated to display

select 1 NY and select 2 Bronx

that I selected
 
For quick and dirty, theogary, I'd write some Javascript toward the bottom of the action template that sets the selected attribute for each of the dropdowns. It would do this by looping through the select box object and matching the option value with the passed value. ColdFusion would pass the value into the script, which would then run after it was passed back to the browser.

Sorry I don't have time to write this as I have to go back to doing stuff I get paid for.



Phil Hegedusich
Senior Web Developer
IIMAK
-----------
Boy howdy, my Liberal Studies degree really prepared me for this....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top