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 3 of 3
  1. #1
    New Coder
    Join Date
    Apr 2010
    Posts
    11
    Thanks
    5
    Thanked 0 Times in 0 Posts

    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
    Another Re-Direct Question

    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

  • #2
    Regular Coder
    Join Date
    Dec 2009
    Posts
    115
    Thanks
    2
    Thanked 10 Times in 10 Posts
    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.

  • Users who have thanked Dean440 for this post:

    sagardash (07-06-2010)

  • #3
    New Coder
    Join Date
    Apr 2010
    Posts
    11
    Thanks
    5
    Thanked 0 Times in 0 Posts
    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...


  •  

    Posting Permissions

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