Validating link to Street Map

This is a discussion on "Validating link to Street Map" within the Web Page Design section. This forum, and the thread "Validating link to Street Map are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 21st, 2006, 09:46
Up'n'Coming Member
Join Date: Jul 2005
Location: uk
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Validating link to Street Map

Hi

Have a link to a map generated by www.streetmap.co.uk on a site. It works fine but the link does not validate.

Code: Select all
<body>
<a href="http://www.streetmap.co.uk/streetmap...181595&A=Y&Z=1" target="_blank">Click
for map</a>
</body>
Have tried multimap and get the same problem.
Very annoying as the rest of the site now validates.
Any help yes please.

Cyberseed
Reply With Quote

  #2 (permalink)  
Old Aug 21st, 2006, 13:23
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,761
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Validating link to Street Map

I had to use google maps for a project and I wrote a little piece of PHP to dynamically create the URLs based on information in a DB and strip out some white space etc. This may help you be able to do something to parse the URL into something the validator likes.
Code: Select all
<?php
$str = $row_mem_list['address'];
$str = preg_replace('/ /', '+', $str);
$city = $row_mem_list['city'];
$city = preg_replace('/ /', '+', $city);
?> 
      <li class="directions"><a target="_blank" href="http://maps.google.com/maps?f=q&hl=en&q=<?php echo $str; ?>,+<?php echo $city; ?>,+<?php echo $row_mem_list['state']; ?>+<?php echo $row_mem_list['zip']; ?>">Get Directions</a></li>
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)

Last edited by moojoo; Aug 21st, 2006 at 16:12.
Reply With Quote
  #3 (permalink)  
Old Aug 21st, 2006, 14:31
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Validating link to Street Map

Without seeing the page I'm guessing you are coding to xhtml strict in which case it will complain about the '&' symbols in the url.

Need to change those to '&amp;'.
Reply With Quote
  #4 (permalink)  
Old Aug 21st, 2006, 16:07
Up'n'Coming Member
Join Date: Jul 2005
Location: uk
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Validating link to Street Map

Quote:
Originally Posted by ukgeoff View Post
Without seeing the page I'm guessing you are coding to xhtml strict in which case it will complain about the '&' symbols in the url.

Need to change those to '&amp;'.
Thanks ukgeoff it now validates - a simple fix
Reply With Quote
Reply

Tags
validating, link, street, map

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help validating Oak Web Page Design 11 Feb 5th, 2008 09:55
Street Fighter: The later years. minute44 Webforumz Cafe 3 Dec 20th, 2007 14:21
Google maps street view welshstew Webforumz Cafe 17 Dec 4th, 2007 19:32
Yikes. I need help validating! Vik Web Page Design 8 Apr 28th, 2005 18:03


All times are GMT. The time now is 23:36.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43