Sagewire Logo

trying to write instant messenger in php/ajax

2 Message(s) by 2 Author(s) originally posted in php language


From: John Doe Date:   Monday, October 22, 2007
Here's my issue: I have an instant messenger type feature for my site, its
basically an ajax IM feature. I run with a mysql backend on the site, I have
a div on my main page that runs a JAVAscript timer to load the php page via
ajax every 15 seconds which checks the "ping user" table to see if the user
has any chat requests, then echoes them to a div on the page. what I REALLY
want to do is have the ajax page see if there is a ping for the user, and if
so, pop up a JAVAscript alert or somethign to let the user know he has a
chat request. I tried just echo'ing the JAVAscript to do an alert(); , or
even a window.open. It works if I just run the script by itself, but when it
runs in the div on my main page, I get the rest of the feedback (it displays
the message I echo'ed that said "youve got mail", but the alert box doesnt
pop up. Anyone have any idea what Im doing wrong? I have been googling for 3
days straight and going crazy, never thought to check the groups before.


From: Ian Hobson Date:   Tuesday, October 23, 2007
wrote in message:
JAVAscript stuff
This is still NOT related to php!



Next Message: PHP cannot see MySQL!!!!!!!!



Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional