Jump to content

[SOLVED] need help figuring out a frustrating error


rndilger

Recommended Posts

hi,

 

This is the error i get

markers[i] is undefined

 

it means the array markers is not properly set or just empty

also i see this in your js

GDownloadUrl("scripts/markers.php", function(data) {

when i use

http://www.indianasheep.com/pages/scripts/markers.php

i get an 404 error page not found

 

when i use

http://www.indianasheep.com/scripts/markers.php without the pages

i see an xml.

 

so maybe using this(added slash)

GDownloadUrl("/scripts/markers.php", function(data) {

should work

Link to comment
Share on other sites

Dj Kat,

 

Thanks for the reply and I apologize for my delay (it's the holidays). I see the error you are referring to (markers is undefined, but I'm still unable to figure out why, exactly, this is the case. I used your suggestion and added the backslash to the scripts/markers.php but this didn't help. What is confusing me is the fact that right now, all the markers are shown on the map with the correct colors. So it appears that everything is working. Moreover, when you click on a map marker, it brings up information that was stored in the markers[] array, so I'm just lost.

 

Any more advice as to what is going on here?

 

As always, thanks!

 

Ryan

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.