Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 08-13-2005, 03:01 PM new window
Average Talker

Posts: 25
Trades: 0
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
petre is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-13-2005, 03:40 PM
OmuCuSucu's Avatar
Vi Veri Veniversum Vivus

Posts: 1,168
Name: Dragos-Valentin
Location: Cluj-Napoca, RO
Trades: 0
first of all: always use the code or php tags PLEASE

now ...
Code:
<a href="javascript:MDM_openWindow('$CONST_LINK_ROOT/chat.php?$sess_id')"
are the vars in there php?

in case they are you should include them in the <?php ?> tags.

the rest i am too tired to follow now without the proper coloring ... sorry ... i am sure someone else will help you if you edit your post and put in the code or php tags.
__________________
.
» Please remember to add to my Talkupation if you enjoyed my post. Thank you :)
.
OmuCuSucu is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to new window
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11193 seconds with 12 queries