Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

acme (189)

  (email not shown publicly)

Leon Brocard (aka acme) is an orange-loving Perl eurohacker with many varied contributions to the Perl community, including the GraphViz module on the CPAN. YAPC::Europe was all his fault. He is still looking for a Perl Monger group he can start which begins with the letter 'D'.

Journal of acme (189)

Monday January 16, 2006
06:51 AM

Disable XMLHTTPRequest

[ #28367 ]

Dear Lazyweb, I have a website which uses XMLHTTPRequest. I can test it by hand in Firefox, I can test it without JavaScript in Firefox, but I can't test it with JavaScript but without XMLHTTPRequest. Is there an easy way to do this, short of recompiling Firefox?

Many thanks, I shall owe you a drink...

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • What I normally do is isolate all uses to a single function and then mock it out during testing the non-JS version.

    Failing that - I guess doing

    window.XMLHttpRequest = nil
    will probably do the job?