Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Would I be able to do this using AJAX?
Old 12-12-2010, 09:49 PM Would I be able to do this using AJAX?
Average Talker

Posts: 23
Trades: 0
Would it be possible to have 2 website users talking back and forth via a "private message" type system. Obviously that is possible but here is where AJAX comes in.. Would I be able to have a "message(0)" and then as soon as a user sends the person a message it changes to "messages(1)" or 2 messages.. "messages(2)"? All this being done in real time without a page refresh.

Or even better.. a Java type chat applet without using java and just using AJAX.

(btw please dont tell me AJAX is not a language I know its just type of style like XHTML).
__________________

Please login or register to view this content. Registration is FREE


Pinned Love - Immortalize your love on the internet!
chrisx17x2008 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-12-2010, 11:35 PM Re: Would I be able to do this using AJAX?
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
Yes it is possible. I'm sure a google search will turn up plenty of ajax chat scripts.

By the way ajax isn't a 'type of style like XHTML'. XHTML is a markup, ajax is a technique.
http://en.wikipedia.org/wiki/Ajax_(programming)
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 12-13-2010, 12:10 AM Re: Would I be able to do this using AJAX?
Average Talker

Posts: 23
Trades: 0
thanks. Would it be realistic to do it or would it kill the site speed?
__________________

Please login or register to view this content. Registration is FREE


Pinned Love - Immortalize your love on the internet!
chrisx17x2008 is offline
Reply With Quote
View Public Profile
 
Old 12-13-2010, 12:29 AM Re: Would I be able to do this using AJAX?
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
That's difficult to say. Every message a user sends is an additional request that the server has to process so for a large number of users the number of requests can be very demanding on the server. The number of requests can be reduced if some form of buffering is implemented. In addition to this the script must poll the server in order to determine if there is a message waiting for the user.

In my opinion there is no reason why such a script would necessarily require a prohibitive amount of resources.

Whether or not it is reasonable to include a chat feature for your site depends on the number of users that are going to be using it, how well the script is implemented, and the load your server can handle.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 12-13-2010, 02:53 PM Re: Would I be able to do this using AJAX?
Average Talker

Posts: 23
Trades: 0
alright thanks =) i will attempt it.
__________________

Please login or register to view this content. Registration is FREE


Pinned Love - Immortalize your love on the internet!
chrisx17x2008 is offline
Reply With Quote
View Public Profile
 
Old 12-22-2010, 12:33 AM Re: Would I be able to do this using AJAX?
Banned

Posts: 36
Name: flemming
Trades: 0
Well here are lot of AJAX chat scripts and lot of people are using the scripts. I do not think so it will effect the speed of website. But for this you should confirm from any expertise.
flemming is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Would I be able to do this using AJAX?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26817 seconds with 12 queries