About ajax

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sasimca007
    New Member
    • Sep 2007
    • 129

    About ajax

    Hi friends,
    I have a screen with three selection textboxes (select boxes) and a listgrid. I have a add button to add the details entered in textboxes into listgrid. when one row added, and if i select the second textbox the page refreshed and the row in the listgrid is disappearing.

    I used the ajax not to refresh but how the values of the form will be added to the listgrid? so, if i want those rows after refresh also how it is possible?
    Last edited by sasimca007; Jan 1 '08, 08:27 AM. Reason: Forgot some details
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Originally posted by sasimca007
    I have a screen with three selection textboxes (select boxes) and a listgrid. I have a add button to add the details entered in textboxes into listgrid. when one row added, and if i select the second textbox the page refreshed and the row in the listgrid is disappearing.
    How are you adding details? Using innerHTML/DOM or by submitting the form? Can you show the code for this.
    Originally posted by sasimca007
    I used the ajax not to refresh but how the values of the form will be added to the listgrid? so, if i want those rows after refresh also how it is possible?
    If you're going to use Ajax, you have to decide what kind/format of data you're going to return back to the JavaScript from the server, e.g. HTML snippet, XML or JSON. If it's HTML, there's no need to parse, otherwise you will need to parse the response.

    Comment

    Working...