Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
http://www.w3schools.com/Ajax/Default.Asp