Feeds:
Posts
Comments

Posts Tagged ‘jquery’

Ajax using JQuery

Using JQuery, we can simply make Ajax call. JQuery provides us simple methods to make Ajax call using GET or POST. We can use any of these HTTP methods to make Ajax request using JQuery.
1. $.get() : Load a remote page using an HTTP GET request.
Syntax: $.get(String url, Map params, Function callback) returns XMLHttpRequest
Example 1: [...]

Read Full Post »

This is a small script, which change the alt attribute of all img (images) tags on the page:
$(document).ready(function() {
$(“img”).each(function(i) {
this.alt = ‘your new alt text’;
} );
})
Another complex script, which change the alt attribute of all img (images) tags on the page, to the title of the page, if the alt attribute is not [...]

Read Full Post »

Why Jquery ?

There have been a whole bunch of posts on this blog about the differences in code size between jQuery and Prototype. The basic premise of those posts (which I agree with) is that because of the way jQuery code is structured, all sorts of typical Javascript design patterns are rendered shorter and simpler in the [...]

Read Full Post »