DMXzone Google Maps Support Product Page


Maps, directions, autocomplete not working when included into parent page

Reported 28 Apr 2014 14:17:47
has this problem
28 Apr 2014 14:17:47 Jim Shafor posted:
I recently purchased the Google Maps, Autocomplete, and Directions add on. I have been able to get the map with marker and directions to work properly on the source page; however, when I include that page on the main template, it does not show the map, nor does the Search (autocomplete) function work. When I call the source page (contact include page), the map works as it should. I have scrubbed this to the best of my ability and cannot figure it out. Can you please help? (autocomplete, map, directions do not display or function)

work (direct link to "contact page", everything works as it should)

I'm stumped and really appreciate your help!


Replied 28 Apr 2014 22:37:59
28 Apr 2014 22:37:59 Jim Shafor replied:
I have repeated the problem on another page (but still haven't figured out the answer to fix it).

When I created another map on a different "includes" page, and called that includes file, it doesn't show that map either. However, when I pull that includes page into the browser by itself (outside the parent page), it displays the map as it should . . . so I'm pretty sure it must have something to do with the <head> on the parent page . . . just can't figure out what . . . but still trying.

Thanks again in advance for your help in helping me to get this working . . .
Replied 20 May 2014 14:49:08
20 May 2014 14:49:08 Jim Shafor replied:
SOLUTION / PROBLEM FIXED: Hey gang, Miro from tech support nailed this (in no time I might mention) . . . here's the solution:

I pulled a map with auto complete (included page) into my main page. My main page was using the Nivo slider so it loaded the jquery pack: <script type="text/javascript" src="../ScriptLibrary/jquery-latest.pack.js"></script> in the head.

Because my map page was created using the DMXzone extension, it called for the same file in the header (<script type="text/javascript" src="../ScriptLibrary/jquery-latest.pack.js"></script>.

Niro identified that it was loading this script a second time (from the included map page) which caused the problem. I removed the script from the head of my included page a whola!, it works as it should!

Great job Niro! He provided this solution before I could take three sips of my coffee during a tech chat session - that's what I call customer service!

On a side note, I have many extensions from DMXzone and from their competitors. I say this honestly: DMXzone extensions are far better than the other extensions I've used because they're lean, easy to use, and won't lock up Dreamweaver.

Replied 28 Jul 2014 16:13:19
28 Jul 2014 16:13:19 Charles Browne replied:
That's an interesting point. Is there a recommended sequence of links for Dmxzone extensions together with all the other linked files? I am sure I am getting the same problem with the google maps/Ajax auto/Directions.

Reply to this topic