Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

addeventlistener which listens for a XMLHttpRequest

Building a firefox toolbar

2:49 am on Jul 1, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:July 5, 2003
votes: 0


I am building a firefox toolbar for one of my websites. The site allows you to create your own lists, and this is done using ajax and the XMLHttpRequest.

I have set up a firefox toolbar and want to have an addEventListener which listens to see if the a web page calls XMLHttpRequest and I need to be able to parse that url, so I can dynamically update the toolbar.

Does anyone know how I can do this? The only help I have found so far just reads the doc.location.href on a page load, and that is not what I need.

Thanks in advance.

8:35 am on July 1, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 15, 2004
votes: 0

Wrap up your HTTPReq calls inside a function that also iniatates whatever action you would like to take when a request is made.