Results 1 to 2 of 2

Thread: Dynamic Ajax Content + Multiple Selects

  1. #1
    Join Date
    May 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamic Ajax Content + Multiple Selects

    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?

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •