1 Reply Latest reply on Oct 2, 2009 6:34 AM by GArlington

    simple jquery ajax

    matthisco

      HI Folks,

      Could soemone please post the code for a simple ajax query. Where the user submits a variable to a database, and gets a loading graphic while their waiting.

      I can't understand the examples I can find online.

      Many thanks

        • 1. Re: simple jquery ajax
          GArlington

          Simple AJAX query using...?

           

          General concept is simple:

          1) you create request (post or get) in JavaScript

          2) you submit your request to the server (specifying the JavaScript function that will get the response) and display "Please, wait..." (or graphocs or whatever you want)

          3) once the processing function specified in step 2 gets the data it can remove/hide the "Please, wait..." and display data...

           

          The actual scripts will depend on what you want to use... You can write it yourself in JavaScript using

          XMLHttpRequest

           

          http://www.w3schools.com/Ajax/Default.Asp