wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Tracking XMLHTTPRequest Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Tracking XMLHTTPRequest" Watch "Tracking XMLHTTPRequest" New topic
Author

Tracking XMLHTTPRequest

Al Gettier
Greenhorn

Joined: Nov 16, 2005
Posts: 8
I would like to track whether any scripts loaded with a page are sending and receving data to the web server from my script that is loaded.

I can't figure a way to do it, does anyone have any ideas?
Sanjiv Jivan
Ranch Hand

Joined: Nov 03, 2005
Posts: 52
If you're using IE, then you can run Fiddler (www.fiddlertool.com) which allows you to monitor http traffic.

If you're using Firefox, you can use this GreaseMonkey script :
http://blog.monstuff.com/archives/000252.html

Hope this helps,
Sanjiv
Al Gettier
Greenhorn

Joined: Nov 16, 2005
Posts: 8
Actually, what I want to do is send data to the webserver via a cookie. I am keeping counts of some of the events on the web page, like mouse clicks. And I am putting that info in a cookie.

But I need to know if/when the data in the cookie was actually sent as part of another script's AJAX calls.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tracking XMLHTTPRequest
 
Similar Threads
How many Java Classes can be loaded
Want to instance a class on startup of tomcat in the JVM that will be used for JSP
Hiberate: Help with lazy initialization
Filters
static block and Loading of native library