Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Target

Reply
Thread Tools

Target

 
 
phill.luckhurst@googlemail.com
Guest
Posts: n/a
 
      06-18-2007
Where do I add target = '_blank' to this code for field_2?

{
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";
}

 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      06-18-2007
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote on 18 jun 2007 in
comp.lang.javascript:

> Where do I add target = '_blank' to this code for field_2?
>
> {
> 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";
>}


This is NOT javascript.

If you show the resulting html + javascript code
by view sourcing on the browser, we could perhaps help.

target = '_blank' is not javascript either,
but htm to <a ... > or <form ... >

Are you sure this is the right NG for your Q?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
 
Reply With Quote
 
 
 
 
scripts.contact
Guest
Posts: n/a
 
      06-18-2007
On Jun 18, 2:50 am, "(E-Mail Removed)"
<(E-Mail Removed)> wrote:
> Where do I add target = '_blank' to this code for field_2?
>
> {
> 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";}


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

 
Reply With Quote
 
 
 
Reply

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in setting Target Node and Target Tree Property mohit ASP .Net 0 01-23-2008 05:41 AM
FF 1.0.4 Frame Target Problem Stephen Chalmers Firefox 0 05-23-2005 12:01 AM
[XML Schema] Including a schema document with absent target namespace to a schema with specified target namespace Stanimir Stamenkov XML 3 04-25-2005 09:59 AM
Save target as... SightSeer Firefox 1 10-24-2004 11:13 PM
Re: Addin - context menu - target project name Jim Butler ASP .Net 1 11-14-2003 03:44 PM



Advertisments