Tuesday, 1 April 2014

Ajax calm modernise with id parameter

I'm perplexing to emanate a duty that get component value from symbol and
emanate ajax request. At a beggining 'id' is lifeless so a JS duty next
should use 'id=1' though when we click on a symbol with e.g. value "2"
duty should bucket "includes/agallery.php?id=2" to my #agallery. var id
= 1; $('#agallery').html('Downloading...'); // Show "Downloading..."
// Do an ajax ask $.ajax({ url: "includes/agallery.php?id="+id
}).done(function(data) { // information what is sent behind by a php page
$('#agallery').html(data); // arrangement information });

No comments:

Post a Comment