Replies Back to Article

MapQuest Window

Can't get it to work.
December 21, 2001 by George Drake

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>

RE: Can't get it to work.
December 25, 2001 by Gregory Van Horn

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>

RE: Can't get it to work.
December 26, 2001 by Joel Martinez

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

Extenion Manager
January 1, 2002 by Alejandro Mucino

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.

RE: Extenion Manager
January 2, 2002 by Joel Martinez

hmm, thats quite odd... when you reinstalled it, did you uninstall it first?

if you didn't, I suggest trying that.

Java Script
February 17, 2002 by stephan siebenbrunner

Can anybody write this extension for Java Script. This would absolutely rule!!!!

Java Script version
February 26, 2002 by Alejandro Mucino

Will this be available in Javascript any day soon ?

Aleks

Works perfectly- ThanX
March 9, 2002 by G Ether
I would have never gotten this right myself. Glad I came to this site. I have looked all over for the informaton to cobble something togeather myself and Im glad I dont have to. It took a total of 3 minuted to get this working in a existing record set. Cool
RE: Can't get it to work.
October 18, 2003 by Jim Stevesn
I does not work, "thats  for sure"!
RE: RE: RE: MY SCRIPT WORKS GREAT.
October 18, 2003 by Jim Stevesn

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">&nbsp;</p>
  <p align="center"><font face="Arial, Helvetica, sans-serif"><b><font size="5" color="#006699">MAPPING
    PAGE</font></b></font></p>
  <p>&nbsp;</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">&nbsp;</p>
  <p align="center">
    <input type="submit" name="Submit" value="GET MAP">
  </p>
  <p align="center">&nbsp;</p>
  <p align="center">&nbsp;</p>
  <p align="center">&nbsp;</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">&nbsp;</p>
</form>
</body>
</html>

Using MapQuest Window
July 24, 2004 by Mark Gwaltney

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

comment and question
November 18, 2004 by Alice Erickson
This is a great extension - easy to set up and works well. One thing that I wonder about is that MapQuest's rules for free linking disallow opening a new browser window for the map. Has anybody had any problems with using this popup extension? Has MapQuest told anybody to cease and desist? Any thoughts from anybody?