Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 602707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:51:04+00:00 2026-05-13T16:51:04+00:00

Update: Thanks for the responses so far. To clarify, I’m not really looking for

  • 0

Update: Thanks for the responses so far. To clarify, I’m not really looking for a logger, but more of a debugger/tracer — I want a dump of every piece of JavaScript that executed and when it executed. I tried Venkman earlier today but it isn’t very stable. My theory is that something is going wrong deep in the Dojo code, or even the Firefox code.

This only happens in Firefox 3.5 – 3.6 when Firebug is disabled (or just not installed).

Basically, I’m sending an AJAX request in Dojo 0.4.3 (I know!) using dojo.io.bind (now deprecated!). If you’re familiar, it’s using dojo.io.XMLHTTPTransport as the transport. Now, basically the way it works is that it sends the XHR and then has a watcher function called startWatchingInFlight that gets called every 10ms to check on the XHR’s readyState property. When the property is 4, it does a bunch of stuff:

dojo.io.XMLHTTPTransport = new function () { /* I know, I know. I would never do this */
  // somewhere in XMLHTTPTransport ...
  this.startWatchingInFlight = function () {
    // alert('watching...');
    if (!this.inFlightTimer) {
      this.inFlightTimer = setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();",10);
    }
  };

  this.watchInFlight = function () {
    // alert('a glance');
    // do a bunch of stuff...
    var tif = foo(); // well, never mind how we get it but it's the object in flight
    // tif.http is the XHR object
    if (4 == tif.http.readyState) {
      // call some stuff
    }
  }

  this.bind = function (args) {
    // somewhere in XMLHTTPTransport.bind ....
    this.startWatchingInFlight();
    http.send(query); // Again, http is the already-opened XHR object
    // and so on
  }
}

Now, here’s the fun part! If I were to uncomment those two alerts up above, when this code is executed I would only get one alert: ‘watching…’. Something happens in the 10ms before the first call to watchInFlight that prevents it from being called. (EDIT: I’ve also used logging statements instead of alerts to the same effect.)

So, what I need is a way to trace the JavaScript thread to see what is blocking the first call to watchInFlight. Though, if you have a solution to the above problem, I’ll also take that.

Restrictions: I cannot use another library unless you can get it to play nice with Dojo 0.4.3 (I think I just threw up a little in my mouth…I’m kidding. Dojo has always been a good library).

Any help would be very appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T16:51:05+00:00Added an answer on May 13, 2026 at 4:51 pm

    Thanks, all, for your answers. Venkman ended up being the tool I used to step through the code and led me to understand what the problem was. Or, rather, is. For those that are interested, my issue is caused by a Firefox bug: 496087. This bug may also be involved: 501501. It looks like setTimeout and setInterval are a bit broken when used between frames in Firefox 3.0.10+.

    Venkman is pretty handy, but a little unstable. I occasionally get errors that say that data is missing in the execution stack.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATE: Thanks to everyone for the responses. I didn't realize document.write() was deprecated. Add
Update: Thanks for the suggestions guys. After further research, I’ve reformulated the question here:
Update: giving a much more thorough example. The first two solutions offered were right
Update : Looks like the query does not throw any timeout. The connection is
Update: Now that it's 2016 I'd use PowerShell for this unless there's a really
At the moment, our application uses the Trident Win32 component, but we want to
Update: Solved, with code I got it working, see my answer below for the
Update: Check out this follow-up question: Gem Update on Windows - is it broken?
UPDATE: Focus your answers on hardware solutions please. What hardware/tools/add-in are you using to
UPDATE - A comprehensive comparison, updated as of February 2015, can be found here:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.