jquery data change

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pradeepjain
    Contributor
    • Jul 2007
    • 563

    jquery data change

    Hi ,
    i use jquery along with php for a ma applications.It s like i have a list of products in a page say like

    filter1[drop down] filter2[drop down]
    <div id='change'>
    1.
    2.
    3.
    </div>
    these list of products are dynamically generated from DB. So like when there is any change in the drop downs i go to a page and rebuild the page there and using .html(data) i replace the id{change} . Is this the rite way to do. or any other better methods
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Depends what you're generating. I couldn't say there are better methods, but there are alternative methods.

    Comment

    • pradeepjain
      Contributor
      • Jul 2007
      • 563

      #3
      Can i know what are those alternate methods.


      I am just trying to display the results from db query .Thats it.

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Alternative methods, not necessarily better.

        1. Load all the data on page load and store in an array or some other structure and then access the corresponding data
        2. Use json or xml

        Comment

        Working...