Page 1 of 1

view request url sent via ajax??

Posted: Tue Jul 06, 2010 1:30 am
by rupam_jaiswal
Hi,
Excuse me if similar issue has been posted earlier.
Am using ajax, calling url

function getFeedWithComments(table,feed_id_1,page,cpage,hashval){
url = 'file1.php?action=feeds_comments&output=xml&table='+table+'&feed_id='+feed_id_1+'&page='+page+'&comment_page='+cpage;
if(hashval){
url+= '&hashval=f'+hashval+'_c';
}
createXHR();
sendRequest(url);
}

I can get the url called by either putting alert OR using live http headers but my client is not a savvy.

I want him to view the current request url sent but how??
What will be the easiest way for this?

Thanks in advance.
Regards

Re: view request url sent via ajax??

Posted: Sat Jul 17, 2010 6:11 am
by DaiLaughing
That doesn't look much like the AJAX I use so this may not be much use!

If I understand the question you just need to show the url which was sent on the page. Can't you just either:

1) change the value of an existing HTML element with innerHTML to show the latest URL
2) add a new element using appendChild