Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Simple Popup wont work in Explorer?!?

    Hello,

    I am very new to Javascript, just learning. So I created a popup window with a resizable window. It works in Safari and Netscape but not in Explorer. Any ideas why this may be happening and how to troubleshoot it?

    Here is the code I am using:



    <script LANGUAGE="JavaScript">
    function popup(FILE, FEATURES) {
    CONTENT = "<HTML><HEAD><TITLE>Horse Head</TITLE></HEAD>" + "<BODY><CENTER><FORM><INPUT TYPE='BUTTON' VALUE='Close'" + "onClick='window.close()'></FORM><P><IMG SRC='" + FILE + "' BORDER=0>" + "</CENTER>"+* "</BODY></HTML>";
    pop = window.open("","",FEATURES);
    pop.document.open();
    pop.focus();
    pop.document.write(CONTENT);
    pop.document.close();

    }
    </SCRIPT>


    * *<tr>
    * ** ** ** ** ** ** ** *<td align="right" width="160"><img src="images/ipod1.gif" alt="" width="49" height="107" border="0"><br></td>
    * ** ** ** ** ** ** ** *<td align="left" class="F2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LISTEN TO BEATHUSTLER RADIO ON YOUR iPOD!<br>
    * ** ** ** ** ** ** ** *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    * ** ** ** ** ** ** ** *<A HREF="javascript:void(0)" onClick="window.open('http://www.beathustler.com/podcast.html', 'pleasework',*
    & #39;width=640,height=480,toolbar=1,scrollbars=1,screenX=100,screenY=100,left=100
    ,top=100')">CLICK HERE TO LEARN HOW</a></td>
    * ** ** ** ** ** ** *</tr>



    And here is the page where it appears:

    http://beathustler.com/radiofix2.html

    Thanks very much for any help you can offer!

    -Jessica

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Add resizable=1 in the window features.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #3
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry if I didnt make myself clear. The javascript popup is not working at all. It is not that is doesnt resize the window. The issue is that no window pops up in the first place (only in Explorer). It works fine in Safari and Netscape. Any ideas why this may be happening?

    -Jessica

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Quote Originally Posted by JessicaM
    Sorry if I didnt make myself clear. The javascript popup is not working at all. It is not that is doesnt resize the window. The issue is that no window pops up in the first place (only in Explorer). It works fine in Safari and Netscape. Any ideas why this may be happening?

    -Jessica
    Are you using IE 6 XP SP2? Probably it is being blocked by the popup blocker. It works for me in IE 6 in Win2K.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #5
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I am using IE 5.2 for the Mac.

    I looked through the preferences but dont see where you unblock the popup blocker option....such a basic point I know but I cant find the setting anywhere...


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •