PDA

View Full Version : Dynamic Ajax Content + Multiple Selects



rane
05-19-2006, 07:05 AM
Heya,

i loved the Dynamic Ajax Content in which i used the <select> version of it to load external asp pages. However, i was wondering if its possible to combine this script with the multiple selects script?

Example:

1st <select> contains cars (bmw, honda, peugeot etc.)
when i choose honda, it should load honda.asp inside the div container PLUS...change the 2nd <select> to contain the honda models (civic etc.)

If i then choose Civic from the 2nd <select>...it should load the hondacivic.asp file into the container...and then change the 3rd <select> to new values

etc.etc.

is that possible?

djr33
05-19-2006, 07:17 AM
Assuming there is no specific conflict between the scripts (just having them exist on the same page), then all you need to do is use the inner-most select as the one that relates to the ajax script.
Basically... rather than just using the normal select, use the 3rd one.

That should do what you want.

Since you didn't link to the script and I'm headed out at the moment, I'm not sure what the exact command is... but I'm guessing onChange for the select. Just use that on the inner most one.

Again, I'm not sure on this, but it should probably work. Someting along these lines, anyway.