Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need to dynamically update form fields

    Hi all,

    I have a situation where I have a PHP app that generates a page/form for the user. The page will have a dropdown that will be populated based on data retrieved from an external source. When an item in that dropdown is selected, I need to retrieve another external data set, parse it and populate the second dropdown with the results.

    Can't use it all statically as the external data might change.

    Can I do this in Javascript - retrieve an external data set (html page) based on a user selection, parse it and populate another dropdown?

    Cheers!

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,042
    Thanks
    0
    Thanked 251 Times in 247 Posts
    Search for "double combo javascript" in google. PHP should generate all the data in a javascript array. So you should load all the data at once. If the data is too large, other alternative is this.


  •  

    Posting Permissions

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