473,394 Members | 1,740 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Error in open

67
I'm trying to open up a connection in javascript for a GET request, but I keep getting the following error:
[Exception..."'Permission denied to call method XMLHttpRequest.open' when calling method: [nsiDOMEventListener::handleEvent]"' nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"
location: "<unknown>" data:no]
does anyone know what this error means and how I might be able to fix it?
Jul 2 '07 #1
2 1842
praveen2gupta
201 100+
I'm trying to open up a connection in javascript for a GET request, but I keep getting the following error:
[Exception..."'Permission denied to call method XMLHttpRequest.open' when calling method: [nsiDOMEventListener::handleEvent]"' nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"
location: "<unknown>" data:no]
does anyone know what this error means and how I might be able to fix it?

Hi,

The object XMLHttpRequest should be used by creating an object of this XMLHttpRequest. This is an browser dependent Object. After that you should call open method with the object name. You are using The XMLHttpRequest directly. pay attension on it.
You can use following code for help

Expand|Select|Wrap|Line Numbers
  1. <script language = "javascript">
  2. var HttpObj = false;
  3.     if (window.XMLHttpRequest) 
  4.     {
  5.         HttpObj = new XMLHttpRequest();
  6.     } 
  7.     else if (window.ActiveXObject) 
  8.     {
  9.         HttpObj = new ActiveXObject("Msxml2.XMLHTTP");
  10.  
  11.     }
  12.  
  13.     function getData(dataSource, divID)
  14.     {
  15.         if(HttpObj) 
  16.         {
  17.             var obj = document.getElementById(divID);
  18.             HttpObj.open("GET", dataSource,true);            HttpObj.onreadystatechange = function()
  19.             {
  20.                 if (HttpObj.readyState == 4 && HttpObj.status == 200) 
  21.                 {
  22.                     obj.innerHTML = HttpObj.responseText;
  23.  
  24.                 }
  25.             }
  26.             HttpObj.send(null);
  27.         }
  28.     }
  29.  
  30.  
write your problem in more details so that i can help you.
Jul 3 '07 #2
Person
67
I'm doing that almost exactly. The only difference is that I'm setting a request header in my code. I'm thinking it's the url I'm trying to establish a connection to that's the problem. I'm trying to get information from google spreadsheets, specifically the url: "http://spreadsheets.google.com/feeds/cells/o11550855343635452373.7973043625436209949/od6/private/full".
If, based on this information, anyone could help me I'd very much appreciate it.
Jul 3 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: John F Dutcher | last post by:
Can anyone comment on why the code shown in the Python error is in some way incorrect...or is there a problem with Python on my hoster's site ?? The highlites don't seem to show here...but line...
2
by: Fuzzyman | last post by:
I've written a CGI proxy that remotely fetches web pages. I use the urlopen function in CLientCookie which replaces (and ultimately uses) the urlopen function in urllib2. What I'd like to do is...
2
by: Chuck Martin | last post by:
I am having a most frustrating problem that references, web searches, and other resources are no help so far in solving. Basically, I'm trying to design a pop-up window to be called with a funciton...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
6
by: aomighty | last post by:
I wanted to write the following code: import shelve try: db = shelve.open(file, "r") except SomeError: print "Oh no, db not found" Only, I'm not sure what SomeError should be. I tried...
8
by: sara | last post by:
I have a report that runs fine with data. If there is no data, I have its NO Data event sending a MsgBox and cancelling the report. Then it seems I still get the 2501 message on the Open Report...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
0
by: .nLL | last post by:
Erorr is --------------------- Microsoft VBScript runtime error '800a0046' Permission denied /a.asp, line 3 -----------------------
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.