开发者

Jquery history - Ajax navigation - How to make url request and search request?

I'm using the Jquery history exemple: mikage.to/jquery/jquery_history.html

I don't really know how to make a search query using a search box form and how to create开发者_高级运维 a search link like:

mysearch.php?search=search+term&submit=1

Normal link are usually as follow: load 3

It's probably adding code to the function in the main page but i'm not to familliar with javascript

Thank you for your help


If you have a form already, you can do something like:

var dataString=$("#searchForm").serialize();
$.ajax({
  type: "GET",
  url: getString,
  data: dataString,
blablahblah

Your question is a bit vague though, but serialize will create the parameters string for you.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜