• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

simple jquery ajax

Explorer ,
Sep 28, 2009 Sep 28, 2009

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

TOPICS
Advanced techniques

Views

458

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 02, 2009 Oct 02, 2009

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation