Skip to main content
Inspiring
September 28, 2009
Question

simple jquery ajax

  • September 28, 2009
  • 1 reply
  • 520 views

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

This topic has been closed for replies.

1 reply

October 2, 2009

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