undefined: undefined('Permission denied to call method XMLHttpRequest.open')

17 views
Skip to first unread message

sam

unread,
Jun 17, 2008, 5:40:09 PM6/17/08
to JavaScript Project Generator
Hi,
First off, thanks for the hard work on this project, its great. Im
trying to test some simple ajax stuff using jquery, along the lines
of :

$.get("http://localhost:4000/accounts/23.xml", function(data){
alert("Data Loaded: " + data);
});

and I get the following in my test output:

undefined: undefined('Permission denied to call method
XMLHttpRequest.open')

Any clue what i may be doing wrong?

Nic Williams

unread,
Jun 17, 2008, 5:43:21 PM6/17/08
to javascript-pro...@googlegroups.com
You may need to mock out the ajax handler so that the call is never made, but specifically, I'm not sure why you get that error. Sorry.

Nic
--
Dr Nic Williams
* Learn TextMate for Rails2 - http://peepcode.com/products/textmate-for-rails-2 *
Training in Ruby/Rails/JavaScript - http://drnicacademy.com
Fun with Ruby/Rails/Javascript - http://drnicwilliams.com
Photos of our new daughter & family- http://flickr.com/photos/drnic
Reply all
Reply to author
Forward
0 new messages