SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    getting sub categories from javascript without refreshing page

    Hello all,
    I have a select (combo) listing the main categories. When i select one particular category then i need to populate another select (combo) list with its (selected main category's) sub categories without page refresh (probably with javascript and PHP).
    Please share your ideas if anyone has known to it.

    Thanx in adavance.

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Either prepopulate JavaScript arrays in the page with all the submenus values and display the appropriate ones when a main category is chosen, or go and fetch the data from the server via XMLHttpRequest calls.


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
  •