Results 1 to 2 of 2

Thread: view request url sent via ajax??

  1. #1
    Join Date
    May 2009
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default view request url sent via ajax??

    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

  2. #2
    Join Date
    Jul 2006
    Posts
    497
    Thanks
    8
    Thanked 70 Times in 70 Posts

    Default

    Does this feature need to be available in the production code? If so, I would add a query or hash part to the URL to enable it so ordinary users don't have to be aware of it.

    But to get the URL on the page, I would absolutely position a span with a red background and white text near an element that is intuitively associated with the request. Or, if that introduces way too much complexity for a maintenance feature, just put the span in one of the window's corners.
    -- Chris
    informal JavaScript student of Douglas Crockford
    I like wikis - a lot.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •