
December 30th, 2002, 03:30 AM
|
|
Junior Member
|
|
Join Date: Dec 2002
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
targeting frames in chat script
I started with the "A MySQL Driven Chat " article and progressed on from there in an attempt to integrate a chat with my bulletin board.
I have uploaded a copy of the basic starting script and its output to the web at: URL
I have tried to syntax highlight it as best I can.
Things are going ok login and log out with database references now work, but now I want to add a third frame to store a list of users currently in chat.
I can add the frame (called usernames) and using javascript document.write, I can even write to it. The problem is, the refresh command continually repeats the javascript usernames and so it is rather a useless way of doing it.
I am a newbie in both PHP and JS, but could someone please explain in a simply way how the script given in the article above puts each bit of code in whichever frame. From there I am sure I can work out the rest. But for the life of me I cannot see why the input text and button is in the bottom frame and the posts are in the top frame even though obviously they are.
I have searched the net looking for "targeting frames" with php but have got nowhere fast. Even the php manual hardly mentions frames.
Please help before I go crazy
Thanks
Dave
Last edited by usdr : December 30th, 2002 at 06:02 AM.
|