You are here: breaking out of the box « HTML « IT news, forums, messages
breaking out of the box

Posted by phill.luckhurst@googlemail.com on 06/18/07 11:00

Where do I add <code>target = '_blank' </code> to this code for
field_2?

The code below opens a box in a google map and displays some data
read
from a MySql table within. The map is displayed in an iFrame(I know,
not the best way to do it). At the moment, clicking on the generated
link in the box causes the resulting webpage to open in the iFrame.
Instead I would like it to open in a new page.


Can you tell me where I am going wrong?


<code>
{
echo "var point = new GLatLng(" . $row['field_5'] . "," .
$row['field_4'] . ");\n";
echo "var marker = createMarker(point, '" .
addslashes($row['field_1']) . "<br /><a href=\"" .
$row['field_2'] . "
\">". $row['field_2'] ."</a><br .>" . $row['field_3'] . "',4);
\n";
echo "map.addOverlay(marker);\n";
echo "\n";


</code>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация