R2i DotNetNuke® Forum

R2i wants you to have the opportunity to ask questions, post reviews, help others or just rant and rave about DotNetNuke® or any of the R2i Modules and Skins. Our team spends hour upon hour, day after day, working on custom DotNetNuke® modules and services; please feel free to ask us anything.
 
Mapquest in description ballon
Last Post 01 Jan 1900 05:00 AM by . 5 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Informative
dfranklynUser is Offline
New Member
New Member
Posts:11

--
14 Aug 2007 04:07 PM  
I am trying to get a mapquest call in the description ballon. It will accept everthing except the "Form Action" tag. Here is the code which is the example on the mapquest site. If I take out the "Form action" tag the rest of the values are accepted but when you click the "Get Directions" button it 'of course' does not know were to go. Is there a reason GoMap wont accept the "Form Action" tag?

dfw

<form> action="http://www.mapquest.com/directions/main.adp" method="get">
<div align="center">
<input type="hidden" name="go" value="1">
<input type="hidden" name="2a" value="555 17th St">
<input type="hidden" name="2c" value="Denver">
<input type="hidden" name="2s" value="CO">
<input type="hidden" name="2z" value="80202">
<input type="hidden" name="2y" value="US">
<br>
<table border="0" cellpadding="0" cellspacing="0" style="font: 11px Arial,Helvetica;">
<tr><td colspan="2" style="font-weight: bold;"><div align="center"><a href="http://www.mapquest.com/"><img border="0" src="http://cdn.mapquest.com/mqstyleguide/ws_wt_sm" alt="MapQuest"></a></div></td></tr>
<tr><td colspan="2" style="font-weight: bold;">FROM:</td></tr>
<tr><td colspan="2">Address or Intersection: </td></tr>
<tr><td colspan="2"><input type="text" name="1a" size="22" maxlength="30" value=""></td></tr>
<tr> <td colspan="2">City: </td></tr>
<tr> <td colspan="2"><input type="text" name="1c" size="22" maxlength="30" value=""></td></tr>
<tr><td>State:</td>
<td> ZIP Code:</td></tr>
<tr><td><input type="text" name="1s" size="4" maxlength="2" value=""></td><td>
<input type="text" name="1z" size="8" maxlength="10" value=""></td></tr>
<tr><td colspan="2">Country:</td></tr>
<tr><td colspan="2"><select name="1y"><option value="CA">Canada</option><option value="US" selected>United States</option></select></td></tr>
<tr> <td colspan="2" style="text-align: center; padding-top: 10px;"><input type="submit" name="dir" value="Get Directions" border="0"></td></tr>
<input type="hidden" name="CID" value="lfddwid">
</table>
</div>
</form>
dfranklynUser is Offline
New Member
New Member
Posts:11

--
14 Aug 2007 06:51 PM  
I have also tried to do the google directions but the A HREF will not take in the descriptions of the bubble. It would be great if I can bring up a location on the map and then have a link included to get directions to that place. Has anyone else tried this?????

Here is the code I am trying.



<A HREF="http://maps.google.com/maps?f=d&hl=en&geocode=&saddr=&daddr=905+16th+St+NW,+Washington,+DC+20006&sll=37.0625,-95.677068&sspn=38.638819,81.386719&ie=UTF8&z=16&om=1">GET DIRECTIONS</A>
ewalkerUser is Offline
Basic Member
Basic Member
Posts:221

--
17 Aug 2007 04:18 PM  
a) You cannot put form tags within the body of a dnn page. This will never work because DNN write these tags for you.
b) I have just tested adding an href tag in to a bubble and I did not have any problems. What are you using to build your query? The text bubble contents is pull from the Description column in the database.

I hope this helps,
-Eric
Eric Walker - R2integrated
dfranklynUser is Offline
New Member
New Member
Posts:11

--
17 Aug 2007 04:35 PM  
Did you include the href that I referenced? We were not able to use any href with an "&" included. We had to write an asp proc to translate for us.
ewalkerUser is Offline
Basic Member
Basic Member
Posts:221

--
05 Sep 2007 11:00 PM  
The "&" character must be encoded as & in the description that comes back. Let me know if that works for you.

-Eric
Eric Walker - R2integrated
ewalkerUser is Offline
Basic Member
Basic Member
Posts:221

--
05 Sep 2007 11:01 PM  
To clarify, the ampersand should be & a m p ; (without the spaces).
Eric Walker - R2integrated
You are not authorized to post a reply.

Active Forums 4.1
 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seatle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share