Link to home
Start Free TrialLog in
Avatar of zzhang2006
zzhang2006Flag for United States of America

asked on

Auto submit a form that launches a PHP scripts using Ajax/Javascript

I;d like this simple "chatting" site to work, but the messages update only if you hit "run php" to submit the form.  I don't know Ajax that well. But I tried to  get  some simple JavaScript to work, so that  the form is submitted, say, every few seconds by itself. But no luck. From this link and if you view the source, you can clearly see what I am trying to do. The  Java/Ajax section was from some random place, but it wasn't as simple as I expected.

http://cs330.blueearthconnections.org/Ze/Spring2016/page_with_use_php.html

If you follow this link and type something in the slot and hit "run php", you will see what I am trying to accomplish but without luck yet.
Please offer some suggestions, sample code or fixes will be highly appreciated.

Thanks in advance
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

What is the question?
SOLUTION
Avatar of srihari chander
srihari chander
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zzhang2006

ASKER

Thanks guys! I will try all of them.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you all for the help!
Thank you all for the helps!

Ze