IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

My Chat Program


TheDarkHacker
no avatar
Super Member
*********
Group: Members
Posts: 206
Joined: 6-October 09
From: somewhere where arent others
Member No.: 89,308
myCENT:81.53



Post #1 post Oct 7 2009, 01:51 PM
I want to show you my new project,chatting.I am sorry because it is on Macedonian but the idea is that what i want to show you.

I haven't domain so i needed to use free-frame domain www.ndvf.tk The script is working on this way:

1.First JavaScript need to use AJAX to connect with PHP.Then PHP checks how much chat is written.If there are more then 10 lines it starts new page,to prevent scrolling.
2.If PHP checks that there aren't 10 lines it shows everything what is stored in one file with the chatting history.
3.When you click on the button to write message JavaScripts send the username and message to PHP
4.PHP is storing the message to the file with history.

This project is open-source and you can see the script for ajax in the ajax.js file.Remember all that 200 lines aren't written by me,that 200 lines are to make AJAX working.Last lines,with comment //zapocnuvanje na chatot (starting chat) are written by me.The PHP script is not open-source and its hidden.If some user wants it,i will give him
Go to the top of the page
+Quote Post
mahesh2k
no avatar
Trap Grand Marshal Member
***********
Group: Members
Posts: 1,138
Joined: 23-January 05
From: Valley of Darkness
Member No.: 3,388
myCENT:92.80



Post #2 post Oct 7 2009, 02:47 PM
Why don't you give your chat programs URL ? Is it not hosted on any free server yet ? Try uploading it on some free hosting sites. We'll give you feedback if you give us URL of chat program. and almost forgot, welcome to TP17.
Go to the top of the page
+Quote Post
TheDarkHacker
no avatar
Super Member
*********
Group: Members
Posts: 206
Joined: 6-October 09
From: somewhere where arent others
Member No.: 89,308
myCENT:81.53



Post #3 post Oct 8 2009, 03:20 PM
QUOTE (mahesh2k @ Oct 7 2009, 03:47 PM) *
Why don't you give your chat programs URL ? Is it not hosted on any free server yet ? Try uploading it on some free hosting sites. We'll give you feedback if you give us URL of chat program. and almost forgot, welcome to TP17.

You didn't see the link www.ndvf.tk?If not read again biggrin.gif
Go to the top of the page
+Quote Post
phpphp
no avatar
Advanced Member
*******
Group: Members
Posts: 110
Joined: 15-December 08
From: Sweden
Member No.: 74,657
myCENT:29.59



Post #4 post Oct 8 2009, 03:57 PM
I just tested your chat box. First thing is you haven't make good interface. you should make table or something to make a sofisticated interface and secondly you need to use pagination to show history after 10 posts. there are many ways for the pagination. the simplest way is use some classes widely available on different website.
Go to the top of the page
+Quote Post
TheDarkHacker
no avatar
Super Member
*********
Group: Members
Posts: 206
Joined: 6-October 09
From: somewhere where arent others
Member No.: 89,308
myCENT:81.53



Post #5 post Oct 8 2009, 04:22 PM
QUOTE (phpphp @ Oct 8 2009, 04:57 PM) *
I just tested your chat box. First thing is you haven't make good interface. you should make table or something to make a sofisticated interface and secondly you need to use pagination to show history after 10 posts. there are many ways for the pagination. the simplest way is use some classes widely available on different website.

Sorry i removed that 5 php lines that make history dissapear.After you post i added the code and it works now...For the design i know.I am not good with that thing but i don't want to use free css html templates because my web-site will be the same like others with that template.This wasn't to show you my design skills it was to show you my php chat program.If somebody wants to give him the script i will add new features and admin panel.This was just a project to show that AJAX can make connection with PHP and that PHP chat can work without refreshing site,without forms submiting
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No new   45 jacob 17,495 5th November 2009 - 05:00 AM
Last post by: Soviet Rathe
No New Posts   1 SamiFX 1,144 6th May 2007 - 06:03 PM
Last post by: hitmanblood
No New Posts   10 wassie 6,241 16th June 2006 - 05:04 AM
Last post by: OpaQue
No New Posts 4 spyshow 6,578 21st September 2004 - 03:19 AM
Last post by: Spectre
No New Posts 13 spyshow 7,282 29th September 2004 - 10:40 PM
Last post by: odomike
No New Posts 4 Saint_Michael 3,941 29th September 2004 - 08:52 PM
Last post by: alperuzi
No New Posts 2 2091 4,066 9th October 2004 - 08:13 AM
Last post by: 2091
No new   24 mayank 3,128 5th September 2009 - 04:19 PM
Last post by: iG-Jeff
No new 227 nicky1 53,322 2nd April 2009 - 10:19 AM
Last post by: random truth
No new   20 Travis18520 7,493 5th May 2009 - 04:46 PM
Last post by: iG-GenerationGirl
No New Posts   11 cse-icons 16,245 12th July 2008 - 07:55 PM
Last post by: iGuest-Giri
No New Posts   1 Bullseye 3,183 6th November 2004 - 04:04 PM
Last post by: Bullseye
No New Posts   3 -Dex- 2,376 13th November 2004 - 10:11 AM
Last post by: -Dex-
No New Posts   0 winsonfeel 2,046 4th December 2004 - 07:44 PM
Last post by: winsonfeel
No New Posts 1 khmerneed 2,672 15th December 2004 - 04:23 PM
Last post by: krap


 



RSS Open Discussion Time is now: 24th November 2009 - 09:24 PM

Web Hosting Powered by ComputingHost.com.