This discussion is closed.
AT82
Badges: 0
Rep:
?
#1
Report Thread starter 15 years ago
#1
I'm having to write a chatroom from scratch. I've got a basic engine working but it needs refining. The page refrehses every 3 seconds which is not enough as its not real time. However if it automaticaly referehses like it does now every 3 seconds this will waste bandwidth.

For this reason does anybody know of a javascript that will test for the enter key being pressed and then refresh?
0
EI_123
Badges: 0
Rep:
?
#2
Report 15 years ago
#2
(Original post by amazingtrade)
I'm having to write a chatroom from scratch. I've got a basic engine working but it needs refining. The page refrehses every 3 seconds which is not enough as its not real time. However if it automaticaly referehses like it does now every 3 seconds this will waste bandwidth.

For this reason does anybody know of a javascript that will test for the enter key being pressed and then refresh?
Do you mean to refresh the WHOLE web page?
Are you writing an applet or what?
0
Sire
Badges: 0
Rep:
?
#3
Report 15 years ago
#3
(Original post by amazingtrade)
I'm having to write a chatroom from scratch. I've got a basic engine working but it needs refining. The page refrehses every 3 seconds which is not enough as its not real time. However if it automaticaly referehses like it does now every 3 seconds this will waste bandwidth.

For this reason does anybody know of a javascript that will test for the enter key being pressed and then refresh?
Is this for some coursework? Otherwise I'd have to suggest a decent irc network. Not Dal.net, IrCQNet, EfNet etc. One of the smaller ones would do you well. If it is coursework, what are the spefics of the exercise?
0
AT82
Badges: 0
Rep:
?
#4
Report Thread starter 15 years ago
#4
Hiya no I am writing an SUK replica chat program. I've got it working I just need to work out how to get the page to fresh only when the user types in their next message. It will also refresh every 20 seconds as well (this bit I have already done).

Alternativly does anybody know any free IRC applets without banner adds and stuff?
0
EI_123
Badges: 0
Rep:
?
#5
Report 15 years ago
#5
(Original post by amazingtrade)
Hiya no I am writing an SUK replica chat program. I've got it working I just need to work out how to get the page to fresh only when the user types in their next message. It will also refresh every 20 seconds as well (this bit I have already done).

Alternativly does anybody know any free IRC applets without banner adds and stuff?
I'm sorry but I still don't know if you Are you writing an applet.

I don't know any but if you want I can help you, especially if you tell me what language are you using.
0
elpaw
Badges: 15
Rep:
?
#6
Report 15 years ago
#6
(Original post by Eternal Idol)
I don't know any but if you want I can help you, especially if you tell me what language are you using.
I think the language is self-evident as it is the title of the thread.
0
EI_123
Badges: 0
Rep:
?
#7
Report 15 years ago
#7
(Original post by elpaw)
I think the language is self-evident as it is the title of the thread.
Oh yes!!!!

I forgot that you could write an irc client in javascript...
:rolleyes:
0
AT82
Badges: 0
Rep:
?
#8
Report Thread starter 15 years ago
#8
(Original post by Eternal Idol)
I'm sorry but I still don't know if you Are you writing an applet.

I don't know any but if you want I can help you, especially if you tell me what language are you using.
Lol sorry, I'm not coding it in Java, I'm doing it ASP. This what I have so far.

http://www.robertson-i.co.uk/suk/chat.asp
0
EI_123
Badges: 0
Rep:
?
#9
Report 15 years ago
#9
(Original post by amazingtrade)
Lol sorry, I'm not coding it in Java, I'm doing it ASP. This what I have so far.

http://www.robertson-i.co.uk/suk/chat.asp
No problem but I can't help, I don't know a **** of ASP, sorry.
:cool:
0
AT82
Badges: 0
Rep:
?
#10
Report Thread starter 15 years ago
#10
(Original post by Eternal Idol)
Oh yes!!!!

I forgot that you could write an irc client in javascript...
:rolleyes:
Lol its not in javascript either, the whole thing is in ASP. I know its not the best way of doing it but its the only way I know how without using 3rd party services.
0
EI_123
Badges: 0
Rep:
?
#11
Report 15 years ago
#11
(Original post by amazingtrade)
Lol its not in javascript either, the whole thing is in ASP. I know its not the best way of doing it but its the only way I know how without using 3rd party services.
It was sarcasm because this guy doesn't know anything of programming and anyway he talks like Keving Mitnick.

The only serious way to do it is Sockets.
0
elpaw
Badges: 15
Rep:
?
#12
Report 15 years ago
#12
(Original post by Eternal Idol)
It was sarcasm because this guy doesn't know anything of programming and anyway he talks like Keving Mitnick.

The only serious way to do it is Sockets.
why dont you do it in assembly then, seeing as thats all you ever talk about
0
EI_123
Badges: 0
Rep:
?
#13
Report 15 years ago
#13
(Original post by elpaw)
why dont you do it in assembly then, seeing as thats all you ever talk about
"I think the language is self-evident as it is the title of the thread."

At least I know what I'm talking about Mr Genius.
I can do it in Assembly, isn't that hard.

Try to do it in JavaScript ...
0
AT82
Badges: 0
Rep:
?
#14
Report Thread starter 15 years ago
#14
(Original post by Eternal Idol)
It was sarcasm because this guy doesn't know anything of programming and anyway he talks like Keving Mitnick.

The only serious way to do it is Sockets.
Lol I guess we can't all be programmers, it did get me confused as how the hell you could write a chat program in using a client side langauge.
0
Sire
Badges: 0
Rep:
?
#15
Report 15 years ago
#15
Well, first problem is the username changing. Second is the list reverting to the top with each post. A few things to be worked on, but what refresh rate are you going for? people chat on IrCQNet with a 3-9second lag rate.

It doesn't really seem like Javascript though. Been ages since I've used it, but looks so different to what I remember. Then again, I've never tried to programme the stuff.
0
elpaw
Badges: 15
Rep:
?
#16
Report 15 years ago
#16
(Original post by Eternal Idol)
"I think the language is self-evident as it is the title of the thread."

At least I know what I'm talking about Mr Genius.
I can do it in Assembly, isn't that hard.
so why the hell was amazingtrade ven talking about javascript?
0
AT82
Badges: 0
Rep:
?
#17
Report Thread starter 15 years ago
#17
All I need to solve my problem is a simple javaescript that says:

if enter is pressed then refresh.


You can't do that in ASP because it won't be real time. If I can get that working I can get the chat working properly without eating all my bandwidth.
0
EI_123
Badges: 0
Rep:
?
#18
Report 15 years ago
#18
(Original post by amazingtrade)
Lol I guess we can't all be programmers, it did get me confused as how the hell you could write a chat program in using a client side langauge.
Isn't that hard being a programmer, you are in the right path, in a couple of years you gonna be an excellent one if you keep this pace.

The client-server paradigm; you make an application that can connect (ex. mIRC) to a server (ex. ircd). The client and server exchange messages by TCP/IP.
0
EI_123
Badges: 0
Rep:
?
#19
Report 15 years ago
#19
(Original post by elpaw)
so why the hell was amazingtrade ven talking about javascript?
I don't know, that's why I've asked it.
Happy?
0
AT82
Badges: 0
Rep:
?
#20
Report Thread starter 15 years ago
#20
(Original post by elpaw)
so why the hell was amazingtrade ven talking about javascript?
Because although the program is in ASP, I need to use a client side language to refresh the page when the user pressed the enter key. This way I don't need the automatic update.
0
X
new posts
Back
to top
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

Why wouldn't you turn to teachers if you were being bullied?

They might tell my parents (2)
9.52%
They might tell the bully (4)
19.05%
I don't think they'd understand (3)
14.29%
It might lead to more bullying (7)
33.33%
There's nothing they could do (5)
23.81%

Watched Threads

View All