jQuery AJAX GET method


syntax

$.get(
	"http://www.somedomain.com/myscript.php",
	"{id:100}",
	function(data) { alert(data); },
	"text"
);

eg:
$.get('aj_lang_id.php', function(data){
if (data=="1"){
location.reload();
} else {
alert("Could not change to selected language");
}
});

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s