SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Sep 2002
    Location
    Buenos Aires, Argentina
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Best approach to fill dependant data?

    I wonder which is the best way to handle situations like this: a form in which the user has to select from at least two (often tree) selects, the first one being a countries list, and the second one a cities list. Of course the contents of the second list depends on what the user selects on the first list.
    Right now I can thing of three ways to do it (with the disadvantages I can think of) :

    1) All selects in the same page, and refresh the whole page every time the user selects a country (too much to refresh every time).
    2) All selects in the same page, but the second select gets filled with the right data dynamically using JavaScript (the script has to be loaded with every possible city, would take too much to download)
    3) Every select in an individual page, and all put together with iframes (this sounds cool to me, but are iframes xbrowser compatible enough?)

    Maybe there are others ways, I don't know...
    What do you think?

  2. #2
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    Well, another way would be to use XHTML-FML or XForms.


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
  •