Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
xml file open error in v2.100
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  14 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
BobW  
View profile  
 More options Feb 18 2008, 6:05 pm
From: BobW <bobwatson...@hotmail.com>
Date: Mon, 18 Feb 2008 15:05:42 -0800 (PST)
Local: Mon, Feb 18 2008 6:05 pm
Subject: xml file open error in v2.100
I'm using the following code to open an xml file:
      var filename = "data.xml";
      var request = GXmlHttp.create();
      request.open("GET", filename, true);

This works in version 2.99, but in version 2.100 gives a javascript
error "Access is denied" on the open command.

Has this functionality changed in v2.100?  If so, how should I change
my code for this to work?

Thanks,

Bob.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Williams  
View profile  
 More options Feb 19 2008, 12:02 am
From: Mike Williams <nos...@econym.demon.co.uk>
Date: Tue, 19 Feb 2008 05:02:56 +0000
Local: Tues, Feb 19 2008 12:02 am
Subject: Re: xml file open error in v2.100
I can't reproduce the problem. Do you have links to pages that
demonstrate the effect?

--
http://econym.googlepages.com/index.htm
The Blackpool Community Church Javascript Team


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
BobW  
View profile  
 More options Feb 19 2008, 1:32 am
From: BobW <bobwatson...@hotmail.com>
Date: Mon, 18 Feb 2008 22:32:48 -0800 (PST)
Local: Tues, Feb 19 2008 1:32 am
Subject: Re: xml file open error in v2.100
I'm working on developing the code on a local computer, so there is no
website to look at currently.

My apologies for posting the code here, but I've cut the code down to
the bare essentials needed to reproduce the problem.  There are two
files, index.html and googlemaps.js.  If the maps version is set to
2.99, then this page loads without error (provided the file "data.xml"
exists).  The page does nothing, because I've deleted all the content,
but there are no errors.  Change the version to 2.100, refresh the
page, and the "Access is denied" error occurs.

The files are as follows:

index.html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-
microsoft-com:vml" lang="en" xml:lang="en">
<!--  saved from url=(0014)about:internet -->
<head>
   <meta http-equiv="Content-type" content="text/html; charset=utf-8" /


   <meta http-equiv="Content-Language" content="en-us" />
   <script type="text/javascript" src="http://maps.google.com/maps?
file=api&v=2.99&key="></script>
</head>
<body id="body" onunload="GUnload()">
   <div id="map"></div>
   <script type="text/javascript" src="googlemap.js"></script>
</body>
</html>

googlemaps.js:
var map = new GMap2(document.getElementById("map"));
getData("data.xml");

function getData (filename) {
   var request = GXmlHttp.create();
   request.open("GET", filename, true);
   request.onreadystatechange = function() {if (request.readyState ==
4) {} }
   request.send(null);


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
BobW  
View profile  
 More options Feb 19 2008, 1:42 am
From: BobW <bobwatson...@hotmail.com>
Date: Mon, 18 Feb 2008 22:42:11 -0800 (PST)
Local: Tues, Feb 19 2008 1:42 am
Subject: Re: xml file open error in v2.100
Sorry, the second file should be called googlemap.js (not
googlemaps.js), and there is a } missing from the end of the
javascript.

On Feb 19, 7:32 pm, BobW <bobwatson...@hotmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Williams  
View profile  
 More options Feb 19 2008, 3:28 am
From: Mike Williams <nos...@econym.demon.co.uk>
Date: Tue, 19 Feb 2008 08:28:20 +0000
Local: Tues, Feb 19 2008 3:28 am
Subject: Re: xml file open error in v2.100
I don't get any errors when I run that code. I've tried 2.99, 2.100 and
2.101 in FF and MSIE.

--
http://econym.googlepages.com/index.htm
The Blackpool Community Church Javascript Team


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
BobW  
View profile  
 More options Feb 19 2008, 1:36 pm
From: BobW <bobwatson...@hotmail.com>
Date: Tue, 19 Feb 2008 10:36:00 -0800 (PST)
Subject: Re: xml file open error in v2.100
With Firefox 2.0.0.6 I get no errors.

With MSIE 7.0.5730.11 I get the error when using maps api versions
2.100-2.102 and 2.x (which is how I encountered the error).  For api
versions 2, 2.s, and 2.73 to 2.99 the error does not occur.

Since this is an access error, I tried setting all security settings
as low as possible, but that made no difference.

I have tested the code on two different computers (both running
Windows XP SP2), with the same results.

On Feb 19, 9:28 pm, Mike Williams <nos...@econym.demon.co.uk> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Williams  
View profile  
 More options Feb 20 2008, 12:17 am
From: Mike Williams <nos...@econym.demon.co.uk>
Date: Wed, 20 Feb 2008 05:17:23 +0000
Local: Wed, Feb 20 2008 12:17 am
Subject: Re: xml file open error in v2.100
Wasn't it BobW who wrote:

>With Firefox 2.0.0.6 I get no errors.

>With MSIE 7.0.5730.11 I get the error when using maps api versions
>2.100-2.102 and 2.x (which is how I encountered the error).  For api
>versions 2, 2.s, and 2.73 to 2.99 the error does not occur.

If you get the same error when you ask for v2.102, then that suggests
that there's something you're not telling us. v2.102 doesn't exist yet,
so the code fails with "GMap2 is not defined" and never gets to the part
where you try to load the data.

I suggest that you put an example that fails with "access is denied"
onto a public webspace and post a link.

--
http://econym.googlepages.com/index.htm
The Blackpool Community Church Javascript Team


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
BobW  
View profile  
 More options Feb 20 2008, 5:29 pm
From: BobW <bobwatson...@hotmail.com>
Date: Wed, 20 Feb 2008 14:29:43 -0800 (PST)
Local: Wed, Feb 20 2008 5:29 pm
Subject: Re: xml file open error in v2.100
It should have said 2.100-2.101.

In any case, I uploaded the files listed above to a temporary website
(adding a key to match).  They work fine, without any errors.

Therefore, the problem is when I'm looking at the page on my local
computers.  Since no one else can see the problem, at this stage I
give up.

On Feb 20, 6:17 pm, Mike Williams <nos...@econym.demon.co.uk> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
german  
View profile  
 More options Mar 12 2008, 2:55 am
From: german <gez...@hotmail.com>
Date: Tue, 11 Mar 2008 23:55:03 -0700 (PDT)
Local: Wed, Mar 12 2008 2:55 am
Subject: Re: xml file open error in v2.100
I also have this very same problem, have you solved this ?

thx.

On Feb 20, 3:29 pm, BobW <bobwatson...@hotmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
geocodezip@gmail.com  
View profile  
 More options Mar 12 2008, 8:34 am
From: "geocode...@gmail.com" <geocode...@gmail.com>
Date: Wed, 12 Mar 2008 05:34:42 -0700 (PDT)
Local: Wed, Mar 12 2008 8:34 am
Subject: Re: xml file open error in v2.100
On Mar 11, 11:55 pm, german <gez...@hotmail.com> wrote:

> I also have this very same problem, have you solved this ?

> thx.

> On Feb 20, 3:29 pm, BobW <bobwatson...@hotmail.com> wrote:

> > It should have said 2.100-2.101.

> > In any case, I uploaded the files listed above to a temporary website
> > (adding a key to match).  They work fine, without any errors.

> > Therefore, the problem is when I'm looking at the page on my local
> > computers.  Since no one else can see the problem, at this stage I
> > give up.

If either of you would post a link to a page that works on a live
website, but fails on your local computer, someone might be able to
look at it and tell you where you are going wrong.  Without something
to look at, we would just be guessing...

  -- Larry


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
BobW  
View profile  
 More options Mar 12 2008, 8:27 pm
From: BobW <bobwatson...@hotmail.com>
Date: Wed, 12 Mar 2008 17:27:29 -0700 (PDT)
Local: Wed, Mar 12 2008 8:27 pm
Subject: Re: xml file open error in v2.100
On revisiting this problem, I can make the "Access is denied" error go
away by changing the following browser setting (in IE7):
   Go into the Tools menu
   Then Internet Options
   Click on the Advanced tab
   Find "Enable native XMLHTTP support"
   (towards the bottom of the list)
   Unselect this option.

Make this change at your own risk.  I wouldn't be surprised if
unselecting this option has consequences for other things.

My understanding is that the GXmlHttp function implements XMLHTTP
across different browsers.  The error occurs for me only in IE7, while
IE6 and Firefox 2 are both fine.  Something changed in API v2.100,
presumably within GXmlHttp, that meant the IE7 native XMLHTTP function
no longer works on a local host, at least under some circumstances.
What the change was, or what the circumstances are, I do not know.

On Mar 12, 7:55 pm, german <gez...@hotmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
visualeyesations@yahoo.co m  
View profile  
 More options Mar 13 2008, 9:22 am
From: "visualeyesati...@yahoo.com" <visualeyesati...@yahoo.com>
Date: Thu, 13 Mar 2008 06:22:12 -0700 (PDT)
Local: Thurs, Mar 13 2008 9:22 am
Subject: Re: xml file open error in v2.100
I also have the same problem with my example page as on

http://groups.google.com/group/Google-Maps-API/browse_thread/thread/f...

eventhough it still works on the web,  markers and select boxes wont
appear when page is opened localy with IE anymore, since a couple of
days with an "access denied" error. - (they still open with firefox)

i dont think is a google maps update issue since i am using v=2. The
latest days indeed microsoft released some updates which i applied. I
am not sure yet if its just a loading from .xml issue

On Mar 13, 2:27 am, BobW <bobwatson...@hotmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pamela (Google Employee)  
View profile  
 More options Mar 13 2008, 4:15 pm
From: "pamela (Google Employee)" <pamela....@gmail.com>
Date: Thu, 13 Mar 2008 13:15:28 -0700 (PDT)
Local: Thurs, Mar 13 2008 4:15 pm
Subject: Re: xml file open error in v2.100
Hi all--

An internal developer also noticed this bug and it has been filed
internally. I've logged it in the public issue tracker here:
http://code.google.com/p/gmaps-api-issues/issues/detail?id=226

Click the star to be notified of changes.

Workaround is to test locally in IE6 or Firefox, or hard-code to a
version below 2.100. Apologies for the inconvenience.

- pamela

On Mar 13, 6:22 am, "visualeyesati...@yahoo.com"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
wrighty  
View profile  
 More options Mar 14 2008, 6:29 am
From: wrighty <nsfrank...@gmail.com>
Date: Fri, 14 Mar 2008 03:29:59 -0700 (PDT)
Local: Fri, Mar 14 2008 6:29 am
Subject: Re: xml file open error in v2.100
Hi Thanks for that.

Please note that testing locally in IE6 or FireFox is not always an
option.
Although the fix works for web servers, Desktop apps will be broken by
the "Enable native XMLHTTP support", if the desktop app loads map data
from a local XML file.
If you are using an app that loads xml from local files, you will have
no choice but to disable the "Enable native XMLHTTP support" option.
Google please bear this in mind when producing a fix. (Not all Google
map apps run from web servers, many tracking desktop apps run from
local machines outside of any web servers)

Regards

Nick

On Mar 13, 8:15 pm, "pamela (Google Employee)" <pamela....@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »