handle large data by ajax

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • smartic
    New Member
    • May 2007
    • 150

    handle large data by ajax

    i need to allow the user to select a top level category from one select box and to automatically populate the sub-category.. etc how can i handle big data like eBay in select tags how can i do that with easy way?
  • smartic
    New Member
    • May 2007
    • 150

    #2
    handle large data by ajax

    i need to allow the user to select a top level category from one select box and to automatically populate the sub-category.. etc how can i handle big data like eBay in select tags how can i do that with easy way?
    example image:

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Threads merged. Please do not double-post.

      Moderator.

      Comment

      • Amzul
        New Member
        • Oct 2007
        • 130

        #4
        you can try spry framework of macromedia
        for builedin funcitons if you working with dreamweaver

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          Originally posted by smartic
          i need to allow the user to select a top level category from one select box and to automatically populate the sub-category.. etc how can i handle big data like eBay in select tags how can i do that with easy way?
          Since you want achieve this via Ajax and you haven't specified any framework, and assuming you know how to use Ajax, all you need is to pass the top level category as a parameter to a server-side script which runs a query and gets all the sub-categories. These can be output as XML or using a suitable delimiter. On the client-side on receiving the response, parse it to get all the categories. You can use the add() method, or the options[] array to insert a new option.

          Make an attempt and if you get stuck, post your code.

          Comment

          • jcumoletti
            New Member
            • Apr 2008
            • 6

            #6
            i have sone something similar. if you are just html and javascript on the client side you need to have the ajax return either the outterHTML of the select you are working with (innerHTML if FireFox) you cant return objects to add to the select because IE cant handle that much manipulation.

            Comment

            • acoder
              Recognized Expert MVP
              • Nov 2006
              • 16032

              #7
              Originally posted by jcumoletti
              if you are just html and javascript on the client side you need to have the ajax return either the outterHTML of the select you are working with (innerHTML if FireFox)
              ...or innerHTML for all browsers
              Originally posted by jcumoletti
              you cant return objects to add to the select because IE cant handle that much manipulation.
              Strings should be OK, which can be added as option objects/elements.

              Comment

              Working...