Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-01-2007, 10:10 PM   PM User | #1
johnnyb
Regular Coder

 
Join Date: Apr 2003
Location: Montreal, QC
Posts: 340
Thanks: 3
Thanked 2 Times in 2 Posts
johnnyb is an unknown quantity at this point
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
johnnyb is offline   Reply With Quote
Old 05-02-2007, 06:22 AM   PM User | #2
david_kw
Senior Coder

 
Join Date: Nov 2006
Posts: 1,000
Thanks: 0
Thanked 0 Times in 0 Posts
david_kw will become famous soon enough
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
__________________

www.eXfer.net
david_kw is offline   Reply With Quote
Old 05-02-2007, 03:42 PM   PM User | #3
johnnyb
Regular Coder

 
Join Date: Apr 2003
Location: Montreal, QC
Posts: 340
Thanks: 3
Thanked 2 Times in 2 Posts
johnnyb is an unknown quantity at this point
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
johnnyb is offline   Reply With Quote
Old 05-02-2007, 03:50 PM   PM User | #4
johnnyb
Regular Coder

 
Join Date: Apr 2003
Location: Montreal, QC
Posts: 340
Thanks: 3
Thanked 2 Times in 2 Posts
johnnyb is an unknown quantity at this point
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
johnnyb is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:27 PM.


Advertisement
Log in to turn off these ads.