breaking out of the box

P

phill.luckhurst

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>
 

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

Members online

Forum statistics

Threads
473,995
Messages
2,570,235
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top