473,382 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 1350
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: paul | last post by:
Hi All, We have a small dilemma. We have the following page: http://giggsey.com/m00Cow.php (don't ask about the content) that we want to turn into an interactive application for some new intake...
2
by: Nathan Sokalski | last post by:
I am moving my website from my machine to my webhost, and need some help with what extra files I need to include due to the fact that I used AJAX in my site. Everything on the site is obviously...
5
by: HockeyFan | last post by:
We have an update panel that has a gridview with checkboxes and other items in each row. We went to the RowCreated event in the codebehind, to set an attribute on a checkbox in each row, to...
6
by: John Doe | last post by:
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.