troubleshooting Question

What's wrong with the order of my code?

Avatar of Daniish
DaniishFlag for United Kingdom of Great Britain and Northern Ireland asked on
Web Languages and StandardsJavaScript
18 Comments3 Solutions204 ViewsLast Modified:
Hello,

I'm experiencing the following error, reported by Firebug:
poi_markers has no properties
http://www.globexposure.net/index_overlay.php
Line 178

I understand that this is being caused by the fact that 'poi_markers' is not defined until my getMarkers() function and that i'm trying to use it beforehand (please see Line 156 in the attached file), however, having tried the similar ideas given in this question:
https://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_23387042.html
.. i'm still having no luck.

Could someone please take a look at the attached file and let me know how i need to modify the order of my code to avoid this problem?


Thank you for your attention & support
index-overlay.php.txt
ASKER CERTIFIED SOLUTION
HonorGod
Software Engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 3 Answers and 18 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 18 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros