Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Apr 2003
    Location
    Montreal, QC
    Posts
    340
    Thanks
    3
    Thanked 2 Times in 2 Posts

    Finding the URL of an XMLHttpRequest object?

    Hi,

    Is it possible to find what URL was last used to make a request with an XMLHttpRequest object? I've been looking in documentation but can't seem to find a place where it says if this is possible.

    Thanks,

    John
    Search for Laughter or Just Search?
    GiggleSearch.org
    Blog: www.johnbeales.com
    All About Ballet: www.the-ballet.com

  • #2
    Senior Coder
    Join Date
    Nov 2006
    Posts
    1,000
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I see that there is a property called channel in the XHR object in FireFox. Unfortunately I did some tests and it gives a permission denied error when I try to actually read it.

    uncaught exception: Permission denied to get property XMLHttpRequest.channel

    Bummer.

    david_kw

  • #3
    Regular Coder
    Join Date
    Apr 2003
    Location
    Montreal, QC
    Posts
    340
    Thanks
    3
    Thanked 2 Times in 2 Posts
    Strange. It's something you would think you would be able to find out.

    I guess I'll have to propogate it in an external variable, unless there's a way to add properties to built-in objects.
    Search for Laughter or Just Search?
    GiggleSearch.org
    Blog: www.johnbeales.com
    All About Ballet: www.the-ballet.com

  • #4
    Regular Coder
    Join Date
    Apr 2003
    Location
    Montreal, QC
    Posts
    340
    Thanks
    3
    Thanked 2 Times in 2 Posts
    Actually, you can add properties to built-in objects:
    http://developer.mozilla.org/en/docs...tion:prototype

    I'll have to make it work in IE6, but that's a start
    Search for Laughter or Just Search?
    GiggleSearch.org
    Blog: www.johnbeales.com
    All About Ballet: www.the-ballet.com


  •  

    Posting Permissions

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