Jon W
03-21-2009, 10:58 AM
<script type="text/javascript">
var newwindow;
function poptastic(url)
{
newwindow=window.open(url,'/controls/chat.php','height=400,width=700','resizable=no, scrolling=no');
if (window.focus) {newwindow.focus()}
}
</script>
<a href=\"javascript:poptastic('/controls/chat.php?msg_id=".$msg['msg_id']."');\" title='User ID: ".$msg['user_id']."'>
This script I found is having two problems. One is that its not working at all in IE7. And the second problem was even though the resizeable is set to no the window is still resizeable. How do I fix these problems?
And as a side question. With javascript how would I have Javascript check my database for new submission and then if there were new submission automatically show the new submissions on the page without you having to refresh?
Or is it the other way around? Because I know PHP, would you have just like a function to check the variable that is heading the data and allow it to automatically display it when something new is entered?
The reason why I'm wondering is because I'm working on a chat right now and the way I'm doing it now is having to put the chat inside of a iframe and having it to refresh the page that the chat is on every so often to show the message. I would really like to take it out of the iframe it have the chat on the same page that you are on to enter your message into the chat.
Thanks,
Jon W
var newwindow;
function poptastic(url)
{
newwindow=window.open(url,'/controls/chat.php','height=400,width=700','resizable=no, scrolling=no');
if (window.focus) {newwindow.focus()}
}
</script>
<a href=\"javascript:poptastic('/controls/chat.php?msg_id=".$msg['msg_id']."');\" title='User ID: ".$msg['user_id']."'>
This script I found is having two problems. One is that its not working at all in IE7. And the second problem was even though the resizeable is set to no the window is still resizeable. How do I fix these problems?
And as a side question. With javascript how would I have Javascript check my database for new submission and then if there were new submission automatically show the new submissions on the page without you having to refresh?
Or is it the other way around? Because I know PHP, would you have just like a function to check the variable that is heading the data and allow it to automatically display it when something new is entered?
The reason why I'm wondering is because I'm working on a chat right now and the way I'm doing it now is having to put the chat inside of a iframe and having it to refresh the page that the chat is on every so often to show the message. I would really like to take it out of the iframe it have the chat on the same page that you are on to enter your message into the chat.
Thanks,
Jon W