Replies Back to Article
MapQuest Window
I get this error:
Error Type:
Microsoft VBScript compilation (0x800A03EA)
Syntax error
/hepatitis2k2/supportgroups/viewgroup.asp, line 354, column 15
This is the line:
<a href="javascript:jm_MapQuest('US','<%= <%=(rsSupport.Fields.Item("MeetLocation").Value)%> %>','<%= <%=(rsSupport.Fields.Item("MeetCity").Value)%> %>','<%= <%=(rsSupport.Fields.Item("MeetState").Value)%> %>','<%= <%=(rsSupport.Fields.Item("MeetZip").Value)%> %>');">Directions</a>
Here try this code:
<a href="javascript:jm_MapQuest('US','<%= (rsSupport.Fields.Item("MeetLocation").Value)%>','<%= (rsSupport.Fields.Item("MeetCity").Value)%>','<%= (rsSupport.Fields.Item("MeetState").Value)%>','<%= (rsSupport.Fields.Item("MeetZip").Value)%>');">Directions</a>
Should work fine notice in your original code you had "<&=<&=" and "%>%>". You only need one of each no double.
HTH,
Respectfully and Happy Holidays,
-Greg Van Horn
<company> VHE Designs</company>
<services> ASP, SQL, VB, eCommerce, Hosting</services>
<web> http://www.vhedesignsweb.com </web>
<phone> 908.832.3082 </phone>
Hmm, did you get it fixed with Gregs suggestion? I'm curious as to wether this is a reocurring bug...
well, I'm currently working on another extension that builds on this one, it will support all Server models, and also addresses in the US, and Europe (that's the plan at least ;) ) so if I can avoid a bug in that one, it would be great
I installed the extension, and i can see it in the Extension Manager, but it is no where to be found on the server behaivors menu ... maybe a bug .. i tried reinstalling it again .. didnt work.
A.
hmm, thats quite odd... when you reinstalled it, did you uninstall it first?
if you didn't, I suggest trying that.
Can anybody write this extension for Java Script. This would absolutely rule!!!!
Will this be available in Javascript any day soon ?
Aleks
Sorry guys, I did not test it before I posted it here last time. Just use this one instead of the above. All you need to do is copy and paste the code below into Ultradev 4 or better and preview it in your browser. You can also add a recordset to the page aswell. Make sure you are connected to the net when you preview it. fanpilot@yahoo.com
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset="iso"-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form name="dd" action="http://us.rd.yahoo.com/maps/mapsdd/submit/*-http://maps.yahoo.com/dd_result") method="get"target="map" onsubmit="window.open('', 'map', 'width=600,height=500,status=no,toolbar=yes,resizable=yes,scrollbars=yes')">
<p align="center"> </p>
<p align="center"><font face="Arial, Helvetica, sans-serif"><b><font size="5" color="#006699">MAPPING
PAGE</font></b></font></p>
<p> </p>
<div align="center"></div>
<table width="69%" border="0" align="center">
<tr>
<td width="49%" bgcolor="#CCCCCC">
<div align="center"><font face="Arial, Helvetica, sans-serif"><b><font color="#FFFFFF">Start:</font></b></font><font face="Arial, Helvetica, sans-serif" size="2" color="#FFFFFF"><b>
5700 Melrose Ave.</b></font></div>
</td>
<td width="51%" bgcolor="#009933">
<div align="center"><b><font face="Arial, Helvetica, sans-serif" color="#FFFFFF">End:<font size="2">Your
recrodset item goes here!</font></font></b></div>
</td>
</tr>
</table>
<p align="center"> </p>
<p align="center">
<input type="submit" name="Submit" value="GET MAP">
</p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"><font color="#CC0000">Note:</font><font color="#CC0000"> Make
sure the computer you are using to view this page with, is connected to the
internet!</font></p>
<table width="12%" border="0" align="center">
<tr>
<td width="35%">
<input type="hidden" name="addr" value="5700 Melrose Ave.">
</td>
<td width="30%">
<input type="hidden" name="csz" value="90038-3808">
</td>
<td width="35%">
<input type="hidden" name="country" value="us">
</td>
</tr>
</table>
<table width="12%" border="0" align="center" height="21">
<tr>
<td>
<input type="hidden" name="taddr" value="605 Olympic Blvd. ">
</td>
<td>
<input type="hidden" name="tcsz" value="90015">
</td>
<td>
<input type="hidden" name="tcountry" value="us">
</td>
</tr>
</table>
<p align="center"> </p>
</form>
</body>
</html>
I am using the MapQuest Window extension and it installs and works fine. However, my ASP page has some additional Javascript image swaps. The image swap script runs fine, until you click the MapQuest Window, then the image swap script will not run correctly (my "onclick" events no longer work). It's like the MapQuest Window affects the image swap script.
Has anyone experienced this problem? Is there a priticular order that I should arrange my JS functions within my ASP page?
Thx, Mark Gwaltney
Problem solved. The the link below:
Thx,
Mark