Another IE Problem - Wont pop up on click

Soldato
Joined
1 Dec 2003
Posts
2,818
Location
Liverpool
Hey,

Adding a little nifty thing here, which works in FF. Just wont 'pop-up' in IE :)

IE gives this error;


Here is what i have (including on line 8)

PHP:
function privChat() 
{ 
var xOffSet = (screen.width - 225) / 2;
var yOffSet = (screen.height - 500) / 2;
var features = 'width=600,height=500,toolbar=0,directories=0,menubar=0,status=0,location=0,scrollbars=0,resizable=1';
var winName = ' + proID + ';
var chatUrl = 'http://'+location.hostname+'/chat/private.php?m='+proM+'&u='+proU;
myWin = window.open(chatUrl,winName,features);

}

The page code that causes the error where the pop up...should pop up (lol) is:

PHP:
{if $is_online == 1}
    <script language="JavaScript">
    <!--
    var proM = "{$user->user_info.user_username}";
    var proU = "{$owner->user_info.user_username}";
    var proID = "{$owner->user_info.user_id}";
    // -->
    </script>
    <script language="JavaScript" type="text/javascript" src="chat/one2one/init.js"></script>

      <tr>
      <td class='profile_menu1'><a href="javascript:privChat();"><img src='./images/icons/browsefriends16.gif' class='icon' border='0'>Chat To Me!</a></td>
      </tr>
    {/if}

Ideas guys? :-)
 
Back
Top Bottom