Print Page | Close Window

WebAssist Google maps ext

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=939
Printed Date: 21-April-2025 at 8:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: WebAssist Google maps ext
Posted By: crusty
Subject: WebAssist Google maps ext
Date Posted: 07-July-2007 at 5:28am

I am tyring to use the Google Map extension form WebAssist in a Content page called 'Contact Us'. the URL is:

http://www.fivecentlemonade.com/store/pc/viewContent.asp?idp age=2

My issue is that the map is not showing up. If you click and drag over the page you can see the footprint though.

I am pretty sure the issue is that I do not have the script tags that need to go in the header of the page. Maybe my limited ASP knowledge is at play too.

In order for the extension to work, the following script tags need to go in the header of the page:

<script type="text/javascript" src="../../google_javascript/wagt_map_2.js">/*wagt*/</ script>
<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=AB QIAAAAh_ptJzv7MbJv0kklJOTNkxRig9N4vCQrONC7sB9mJVqu_I1yPBR7BE 3IrV9vaZ4qMh1TDrmfP-afWw">/*wagt*/</script>


and then the following line goes in the body where the map should appear ont he page:

<div id="wagt_map_2" style="width: 500px; height: 300px;"></div>

Now I am pretty sure the problem is that the 'div' tag can not find the associated JS file. This is eihter becuase it can not see the associated <script> tag in the header or I do not have the js directory (google_javascript/wagt_map_2.js) in the right palce or I am not pointing correctly to it.

I tried placing the <script> tags in the store/pc/header.asp but still no map. Is that going to work with the ProductCart content pages? Would the 'idpage=2' be able to see the script tags in the header? Is there another place I should put the script tags?

Now I was using a releative path in the <script> tag to point to the google_javascript/wagt_map_2.js DIR (src="../../google_javascript/wagt_map_2.js">). Would that be correct for the 'idpage=2' content? The directory is in the root directory. In another words, is the content pages created in the control panel in the same directory as the store/pc/viewContent.asp?

thanks in advance for your help.

Crusty

Miami




Replies:
Posted By: Tzur-pc
Date Posted: 09-July-2007 at 11:23pm

Hi,

I also need to know how to change the "idpage=x" to page name such as aboutUS or contactUs and on and on.......




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net