Hi JD,
In your success callback, you have access to ajax options through the
this keyword, so you can get the full URL by doing this within the
success callback:
alert(this.url+'?'+this.data);
peter
on 15/07/2009 13:30 Mean Mike said::
if you just need to see what your posting and what url its going too
why not just view it in httpfox ?
On Jul 15, 6:54 am, JD <odonovan.jo...@gmail.com> wrote:
Hi Guys,
This is probably a very simple question, i'm new to JQuery but I
can't find the solution.
I create an AjaxReqest with a url and some post data. Is there any way
that i can alert out the URL which is then generated in the call.
Example
url:www.yahoo.com/login
postdata: username=user password=pass
Creates something along the lines
ofwww.yahoo.com/login?username=user&password=pass
Obviously the real calls are much more complex.
I have read somewhere that the argument to the onSuccess function
should expose a .url function but this doesn't seem to work.
Any help is appreciated.
Thanks
JD