开发者

Calling PHP in jQuery

开发者 https://www.devze.com 2023-01-10 16:07 出处:网络
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:

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 la开发者_JAVA百科unch it in a DIV dynamically rather than the user having to click a link. Looking to develop a dashboard type view.


its easy :)

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

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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消