Posted 26 October 2006 - 06:24 PM
Posted 26 October 2006 - 06:32 PM
Posted 26 October 2006 - 06:54 PM
Posted 26 October 2006 - 07:56 PM
when someone sends a message when they click send will it have to go to a script to get transfered over? and then redirected back to the page? how would that work?
Hope this helps.
Posted 26 October 2006 - 08:01 PM
Posted 26 October 2006 - 08:38 PM
What I did was initiate the request element every time the form was submitted or enter key pressed. The request sent the line of chat to a PHP script which writes it too a flat file, while a different request element checks the flat file for changes. If a change happened, a line difference calculation occurs and PHP returns all lines submitted since the last change.
If you want to circumvent the AJAX process, just split a page into two frames. In one frame, make a page that auto or meta-refreshes at a set interval, and in the other frame, create a basic form that posts information to a database whose action property is itself. Thats about as basic as PHP applications get.
Student of: Ubuntu6 | Java | C | VB.NET | ASP.NET
Developer: Roddzilla Webstudios, Burrson CG, DVIDSHUB, The Four Nations
Student: Georgia Tech, Georgia Tech College of Computing
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users