Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

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.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Aug 21st, 2006, 10: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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Aug 21st, 2006, 14:23
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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>
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)

Last edited by moojoo; Aug 21st, 2006 at 17:12.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Aug 21st, 2006, 15:31
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
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;'.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Aug 21st, 2006, 17: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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
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 10:55
Street Fighter: The later years. minute44 Webforumz Cafe 3 Dec 20th, 2007 15:21
Google maps street view welshstew Webforumz Cafe 17 Dec 4th, 2007 20:32
Yikes. I need help validating! Vik Web Page Design 8 Apr 28th, 2005 19:03


All times are GMT. The time now is 19:34.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8