Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with new window

Status
Not open for further replies.

mailerman

Technical User
Jan 2, 2007
29
0
0
SE
i got helped here ( ) to open a picture in a new window, hte original code is bellow and the JS code i got is under it, the problem i have now is that the new window picture wont open and i wonder why :(

ORIGINAL CODE

Code:
    if ( $row['picture'] != '' ) {
        echo '<a href="visabild.php?id=' . $row['id'] . '">';
        echo '<img width="125" src="' . $row['picture'] . '"></a>';
    }

NEW CODE

Code:
 echo '<a href="#" OnClick="window.open(location,"width=XXX,height=YYY")>';
        echo '<img width="125" src="' . $row['picture'] . '"></a>';
 
sorry i didint explain what i needed.

i have this asp/php script showing pictures (ORIGINAL CODE) on my page and wonder how i can make visabild.php open in a new window, i tryed putting in target_blank but that just makes the php code fail on me :/ so if anyone could help me make it open the imiage in a new window with a specific window higth & witdt i would be very thankfull.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top