|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Populate 2nd Select w/o reloading page
Hi,
I've been searching the forums for a bit of code (maybe Javascript) that will help me populate a select list using a variable pulled from another select list without refreshing the entire page. I need to pull the values in the second select list from a database based on search criteria from the first select list. I don't know how to get past the stateless nature of HTML. I'm developing this app using javascript and php for extremely low-bandwidth users and I'm stumped on this one! Please Help! |
|
#2
|
|||
|
|||
|
You will probably need another round trip to the server. Pass the first selection back to an asp page using your querystring or a hidden form field, do the next db query and send a new page back to the client.
There are some MS only solutions that may work for you if you can restrict to IE only users. Look at the MS xmlHTTP object. |
|
#3
|
|||
|
|||
|
I've looked into MS XML as you said, but I don't think it can be implemented on a server running php / mysql. Any other options?
|
|
#4
|
|||
|
|||
|
Here is an option of filling the second box without a refresh. Look in the attached Zip file here.
ASPMAN
__________________
If you ask a question you are a fool for a second. But if you dont ask, you are a fool for a life time. |
|
#5
|
|||
|
|||
|
Thanks Doug and ASPMAN, will be able to go from here I think!
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Populate 2nd Select w/o reloading page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|