General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 30th, 2002, 03:30 AM
usdr usdr is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 3 usdr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
  #2  
Old December 30th, 2002, 12:12 PM
crazytrain81 crazytrain81 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 232 crazytrain81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
well, each frame has it's own page as a source. this isn't specific to what you're doing but standard. you just write a php file, usersOnline.php, that lists out online users from the db...

simply put a <meta http-equiv="refresh" content="5"> tag in the html for that page, and it will refresh the list every 5 seconds.

if that doesn't help, give me some more specific info

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > targeting frames in chat script


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway