469,955 Members | 2,494 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,955 developers. It's quick & easy.

cant get javascript to work on ajax page.

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!
Oct 22 '07 #1
3 1256
John Doe meinte:
Heres what I am trying to do:
[something]

If you'd provide a URL or some code snippets, one might be able and
tempted to help.

Gregor
--
http://www.gregorkofler.at ::: Landschafts- und Reisefotografie
http://www.licht-blick.at ::: Forum für Multivisionsvorträge
http://www.image2d.com ::: Bildagentur für den alpinen Raum
Oct 22 '07 #2
Gregor Kofler wrote:
John Doe meinte:
>Heres what I am trying to do:

[something]

If you'd provide a URL or some code snippets, one might be able and
tempted to help.
Tempted, but will not yield ;-)
SCNR

PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Oct 22 '07 #3
On 22 Oct, 06:38, "John Doe" <d...@dad.cogwrote:
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!
You are a real multi-posting pest!

Oct 23 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.