开发者

interpreting ajax code

I have traced some ajax stuff and I am trying to figure out what it means. I was hoping to translate it into a url but it seems to involve some Get request based on searched I did.

An help appreciated.

**new Ajax.Request(fspring.baseURL+"search/getProfileResults",
  {parameters:{ajax:1,q:_4,page:_5},onStatOK:function(_6){    var _7=new Element("div");

I thought it 开发者_JAVA百科would be the baseURL in this case

http://helloworld.com/search/getProfileResults and I know it needs two parameters


fspring.baseURL could be anything, so I can't really help you there. It doesn't ring a bell to me for any particular Javascript library.

The parameters object will be converted by Prototype into a querystring, in this case it'll look something like this:

http://helloworld.com/search/getProfileResults?ajax=1&q=_4&page=_5

Except _4 and _5 will be replaced with the variable contents.

An easier way to figure out what's going on would be to just open up the page in Firebug and look in the Console to see what the AJAX query was.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜