|
Hi,
I want to open a chat room in a new window using:
|<a href="javascript:MDM_openWindow('$CONST_LINK_ROOT/chat.php?$sess_id')" cl***="memlogin">My Chat Room</a>
but the window I get depends on the computer used to open it. On one computer I got a full window but not resizable and shifted 2" to the right. On another one I got a small, resizable window that had to be manually adjusted to see the content.
I tried to enter some features (width, heigh, resizable) but it is not working. The window will not open at all.
What I want to obtain when I click on this link is either a full, resizable window not shifted to the right (like a new Internet window) or even better a resizable, half window (from the left side of the screen to the middle of the screen on the full height of the screen with the full content inside) regardless of the computer used.
Another problem is that sometimes the window is blocked and I get the message "Pop up window blocked". Do you know how can I solve this problem? I know how to do it on my own computer but I would like to solve the problem for all users that can access my chat room.
The chat file may be useful. It is:
<?php
include('db_connect.php');
include('session_handler.inc');
# generate a unique chat login ID
$query="SELECT mem_userid,mem_username FROM members WHERE mem_userid = '$Sess_UserId'";
$retval=mysql_query($query,$link) or die(mysql_error());
$sql_array = mysql_fetch_object($retval);
mysql_close($link);
?>
</tr>
<tr><td><applet
codebase="http://client1.sigmachat.com/current/"
code="Client.cl***" archive="scclient_en.zip"
width=700 height=430 MAYSCRIPT>
<param name="room" value="106402">
<param name="cabbase" value="scclient_en.cab">
<param name="username" value="<?php print("$sql_array->mem_username"); ?>">
</applet></td>
</tr><br>
<br>
<tr >
<td align=center><a href="#" onClick="javascript:window.close()"><?php echo GENERAL_CLOSE ?></a></td>
</tr>
Thank you,
Peter
|