SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Nov 2004
    Location
    Philippines
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Realtime Select or Pulldown

    Hello there, can anyone here experience about my problem????

    the problem is i want to allows users to select a world region in first pulldown and then a second pulldown menu changes with the countries in that particular region.

    examble if i select the world region(Asia) in first pulldown, automatically the second pulldown shows only the corresponding countries(such as Japan, China, Philippines, etc.....)



    thanks in advance.....

  2. #2
    SitePoint Wizard swdev's Avatar
    Join Date
    Oct 2004
    Location
    UK
    Posts
    1,053
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have a look at this thread http://www.sitepoint.com/forums/showthread.php?t=218572
    I posted some pseudo-code as to how I would do it. I have not implemented this.
    I don't know if it would meet your realtime requirements.

  3. #3
    eschew sesquipedalians silver trophy sweatje's Avatar
    Join Date
    Jun 2003
    Location
    Iowa, USA
    Posts
    3,749
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The problem with this kind of an issue it that it is client side. i.e. if you want the values to changes without submitting a new page, there can be no interaction with PHP.

    Take a look at JPSpan for a robust solution to the javascript <==> php issue.

    HTH
    Jason Sweat ZCE - jsweat_php@yahoo.com
    Book: PHP Patterns
    Good Stuff: SimpleTest PHPUnit FireFox ADOdb YUI
    Detestable (adjective): software that isn't testable.


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
  •