J
John Doe
Heres what I am trying to do:
I have a div on my web site that runs a little php page via ajax with a
javascript timer every 15 seconds or so. I can get the php page to load up
the database i made, see if there are any chat requests, and if so, echo
them to the div in a little box. What I was trying to do was to jsut have a
little alert('chat request from so and so'); execute when it finds a chat
request. However no matter what I try, I cannot get the javascript to run
inside the div. If i just run the little .php file i can get the popups to
display, but once its called through ajax it ceases to pop up. I have been
googling for days now and going crazy, hoping maybe someone in here could
point me in the right direction.
thanks!
I have a div on my web site that runs a little php page via ajax with a
javascript timer every 15 seconds or so. I can get the php page to load up
the database i made, see if there are any chat requests, and if so, echo
them to the div in a little box. What I was trying to do was to jsut have a
little alert('chat request from so and so'); execute when it finds a chat
request. However no matter what I try, I cannot get the javascript to run
inside the div. If i just run the little .php file i can get the popups to
display, but once its called through ajax it ceases to pop up. I have been
googling for days now and going crazy, hoping maybe someone in here could
point me in the right direction.
thanks!