Quantcast
Viewing latest article 8
Browse Latest Browse All 10

jQuery Ajax: request content by using $.get

Using jquery: jQuery Ajax: request content by using $.get on newest questions tagged jquery – Stack Overflow in order to avoid that the webpage is fully reloaded whenever an internal link is clicked, I’m using jQuery and AJAX. $(".ajax").click(function(e){ e.preventDefault(); // do not follow link var requestPage = "content.php?" + jQuery(this).attr('href').split("?")[1]; $.get(requestPage, function(data){ $("#content").html(data); }); [...]

Viewing latest article 8
Browse Latest Browse All 10

Trending Articles