how to refresh html page using ajax after each action

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nirmalsingh
    New Member
    • Sep 2006
    • 218

    how to refresh html page using ajax after each action

    i am using ajax+c#+Mysql. with a table,textbox and save button. everything was inserted in database and loaded in table but the problem at rare timings i have to refresh html page to view saved data in table. plz help me to resolve this bug..
  • steven
    New Member
    • Sep 2006
    • 143

    #2
    The idea is that you don't refresh the page at all. That's the entire point of using Ajax techniques in the first place.

    You say that you're using "Ajax + C# + MySQL". Ajax isn't a language. It's a technique using a set of existing technologies and languages, such as Javascript, XML, server side languages, CSS, DHTML etc etc... The idea is that, once you have run your Javascript ajaxy code, your server script responds to the Javascript and then you edit the webpage using DOM methods to insert the result, response or new data.

    Good Ajax starter:
    http://www-128.ibm.com/developerworks/views/web/libraryview.jsp ?search_by=Mast ering+Ajax

    If you know how to use Javascript to alter the DOM, then you're set. If not, I would study Javascript before continuing on your Ajax quest.

    Comment

    Working...