jquery quick ajax primer

Post

In the past I have shown you how to do a quick ajax call to update a html element on the page using prototype.

Here is a similar example but using jquery ( for all you who use jquery over prototype ).

[code]
function superButtonClick() {
$('#id_of_the_element').load(
'/backend_page.php?the_variable_name=the_variable_value'
);
}
[/code]

It is pretty simple to use the load function on any element. There are a few other jquery ajax functions that are useful when wanting to do a post or handle return data; perhaps we will discuss these type of jquery calls in the future.

Comments

Leave a comment

November 2026
Sun
Mon
Tue
Wed
Thu
Fri
Sat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Share