Forum Moderators: coopster

Message Too Old, No Replies

Can't open a new fullscreen popup from another popup window

         

outdoorxtreme1

2:57 pm on Aug 11, 2006 (gmt 0)

10+ Year Member



I can't seem to make a fullscreen popup from a page that is already a fullscreen popup. What I want to do is open another fullscreen popup window from a current fullscreen popup that has the link in it. The link that comes up is [somesite.com...]

Here is a sample of the code I am working with. Does anyone see anything wrong?

echo '<html>';
echo '<head>';
echo '<script type="text/javascript" src="/uploads/File/Javascripts/new_window_max.js"></script>';
echo '</head>';
echo '<body>';
echo '<a href=\"javascript:void(0);\" onclick=\"fullScreen(\'/uploads/File',$row['map'],'\');\">Map</a><br>';
echo '</body>';
echo '</html>';

dreamcatcher

3:19 pm on Aug 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

No need to escape double quotes if you are echoing within apostrophes. Change this line:

echo '<a href=\"javascript:void(0);\" onclick=\"fullScreen(\'/uploads/File',$row['map'],'\');\">Map</a><br>';

to this:

echo '<a href="javascript:void(0);" onclick="fullScreen(\'/uploads/File',$row['map'],'\');">Map</a><br>';

dc

outdoorxtreme1

3:21 pm on Aug 11, 2006 (gmt 0)

10+ Year Member



Thanks a lot. That worked.