| | |
Help with a search form/page
Please support our ColdFusion advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2005
Posts: 2
Reputation:
Solved Threads: 0
need help with a search form i've been asked to do for a friend.
i've done forms in the past, but not one like this. there will be 2 pick
lists on this form. to keep things simple, the database has 2 fields: main_heading, and sub_heading. I can generate the first pick list by using a select distinct to get a unique listing...but the second pick list has to be generated by what is choosen in the first. can i do that on the same page ?
thanks. !!
scott
i've done forms in the past, but not one like this. there will be 2 pick
lists on this form. to keep things simple, the database has 2 fields: main_heading, and sub_heading. I can generate the first pick list by using a select distinct to get a unique listing...but the second pick list has to be generated by what is choosen in the first. can i do that on the same page ?
thanks. !!
scott
You could use iframe to do that, or XMLHTTP.
Those two are what I know, but for sure there are other alternatives.
With iframe, at the onchange of the first list, you call a jscript function.
In the jscript function, you create an iframe and therefore, direct the iframe to another cfm page. In that cfm page, you cfquery or whatever, to get the second list that you wanted. You could fill in the second list with parent.document.yoursecondlist with its values.
I hope I'm not confusing you.
If you understand the logic properly, this is not tough to do.
Those two are what I know, but for sure there are other alternatives.
With iframe, at the onchange of the first list, you call a jscript function.
In the jscript function, you create an iframe and therefore, direct the iframe to another cfm page. In that cfm page, you cfquery or whatever, to get the second list that you wanted. You could fill in the second list with parent.document.yoursecondlist with its values.
I hope I'm not confusing you.
If you understand the logic properly, this is not tough to do.
"Study the past if you would define the future" - Confucius
![]() |
Similar Threads
- Search Results By Page Rank (Search Engine Optimization)
- problems with google search form (HTML and CSS)
- google search form: directions? (HTML and CSS)
- Need Help Creating a Search Page (ColdFusion)
- updating 2 HTML tables on one PHP page (PHP)
- force Search Page to return no records on open (ASP)
Other Threads in the ColdFusion Forum
- Previous Thread: Posting News according to today's date
- Next Thread: Coding for drop down boxes
| Thread Tools | Search this Thread |





