Click to See Complete Forum and Search --> : [RESOLVED] Pop Up Window
Twilite Kid 82
06-12-2007, 11:29 PM
Hey, as of now when you click the link from this code, it opens in the parent window.. I would like it to open up in a pre-defined sized window..
echo "<b><a href=\"shows.php?show=$tourdate_id\">$date $venue_city, $venue_state - $venue_name</a> </b> <br><br>"
;
bradgrafelman
06-13-2007, 12:36 AM
<a href="shows.php?show=$tourdate_id" target="_blank" onclick="window.open('shows.php?show=$tourdate_id','Show','width=300,height=200,toolbar=no,location=no,status=no,menubar=no');return false">Link</a>
As you can see, opening a new window like that will require some Javascript. I decided to code it in a way such that if a user doesn't have Javascript enabled, they can still follow the link (it will open in a new window to be handled by the browser). Doing this also allows search engines to make sense of where the link goes.
Twilite Kid 82
06-13-2007, 12:39 AM
yep, just got it 5 mins ago.. works perfectly... now onto limiting my query results :)
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.