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>
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>