Unable to get FrontPage to create "+" is hyperlink parameter

M

Michael Edwards

I am trying to use mapquest's LinkFree service whereby a user clicks on a
url and is passed to mapquests map site with the address shown on a map.
Mapquest requires that the parameters not contain spaces and that the spaces
should be replaced with a "+" such that the string "Oakland Park" becomes
"Oakland+Park".

The data fields include a field "VenueCityMap" that has the converted string
"Oakland+Park"; however, when FrontPage converts the parameter into the URL,
it changes the "+" to "%5F" such that the parameter is now "Oakland%5FPark"
and is unuseable.

I've searched MSDN and find nothing. Anybody know how I can fix this?

Please understand that the parameters and url are not pasted into the html
code, this is an asp page linked to a database where the parameters are
stored. The actual html is:

<td><font size="1"><a
href="http://www.mapquest.com/maps/map.adp??city=<%=FP_FieldURL(fp_rs,"Venue
CityMap")%>&amp;state=<%=FP_FieldURL(fp_rs,"VenueState")%>&amp;address=<%=FP
_FieldURL(fp_rs,"VenueStreetMap")%>&amp;zoom=5"><!--webbot


Sincerely,
muDDfish Mike
http://www.kingmuddfish.com
 
T

Thomas A. Rowe

You need to leave the space in the field, then when you dynamically create
the link, do the following:

<%=replace(ListingRS("PropertyCity"), " ", "+")%>

Where

ListingRS = the recordset name
"PropertyCity" = the database fieldname

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top