Target

Discussion in 'Javascript' started by phill.luckhurst@googlemail.com, Jun 18, 2007.

  1. Guest

    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";
    }
     
    , Jun 18, 2007
    #1
    1. Advertising

  2. Evertjan. Guest

    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)
     
    Evertjan., Jun 18, 2007
    #2
    1. Advertising

  3. On Jun 18, 2:50 am, ""
    <> 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";
    }
     
    scripts.contact, Jun 18, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jim Butler
    Replies:
    1
    Views:
    590
    seeni
    Nov 14, 2003
  2. Roman S. Golubin

    Re: Addin - context menu - target project name

    Roman S. Golubin, Nov 14, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    773
    seeni
    Nov 14, 2003
  3. Replies:
    0
    Views:
    671
  4. ssmith
    Replies:
    1
    Views:
    2,596
    ssmith
    Mar 28, 2005
  5. mohit
    Replies:
    0
    Views:
    564
    mohit
    Jan 23, 2008
Loading...

Share This Page