CLiown
CLiown

Reputation: 13843

Calling PHP in jQuery

I have a site where you click on a product name and it launches a URL with a filter and it returns forum posts relevant to that product name:

E.g. www.google.com/product?=blah

Instead of having to navigate to this URL is it possible to launch it in a DIV dynamically rather than the user having to click a link. Looking to develop a dashboard type view.

Upvotes: 0

Views: 103

Answers (2)

thecodeassassin
thecodeassassin

Reputation: 836

its easy :)

$.get('ajax/test.html', function(data) {
  $('.result').html(data);
  alert('Load was performed.');
});

see more here http://api.jquery.com/category/ajax/

Upvotes: 1

Pablo Santa Cruz
Pablo Santa Cruz

Reputation: 181280

You need AJAX. You can use JQuery to perform AJAX queries to a PHP website.

Upvotes: 1

Related Questions