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

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 07-02-2010, 12:04 PM   PM User | #1
sagardash
New Coder

 
Join Date: Apr 2010
Posts: 11
Thanks: 5
Thanked 0 Times in 0 Posts
sagardash is an unknown quantity at this point
Detecting idle time when there is no http request

Hi

i want to find out the idle time when there is no http request is going on...
i dont want to track any mouse or key board events... i dont want that...

i read these thread but it is only about screen idle time
http://www.codingforums.com/showthre...t=33068&page=2

i am trying to track the time when
there is no transaction going between client and server and no http request is sending .


if i will get that time then that time i can use to load my additional javascript files... so further transaction of user will become speed up....

i appreciate your help
THANKS
sagardash is offline   Reply With Quote
Old 07-02-2010, 02:43 PM   PM User | #2
Dean440
Regular Coder

 
Join Date: Dec 2009
Posts: 115
Thanks: 2
Thanked 10 Times in 10 Posts
Dean440 is an unknown quantity at this point
JavaScript is an event-driven language. You're able to easily create code that responds to certain events.

For what you need, you're probably going to need to use the XMLHttpRequest object (which is the heart of AJAX). XHR has readyState and onreadystatechange properties that can give you information on where data is in the process of being sent/received, or if there's been any requests to begin with.
Dean440 is offline   Reply With Quote
Users who have thanked Dean440 for this post:
sagardash (07-06-2010)
Old 07-06-2010, 07:07 AM   PM User | #3
sagardash
New Coder

 
Join Date: Apr 2010
Posts: 11
Thanks: 5
Thanked 0 Times in 0 Posts
sagardash is an unknown quantity at this point
Thanks for your reply...

can u please tell me
how to track POST/GET request like when the requests are sending from client to server...
sagardash 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 07:15 PM.


Advertisement
Log in to turn off these ads.