Jump to content

Help in putting a YM-style chat applet in a website using only PHP...

- - - - -

  • Please log in to reply
6 replies to this topic

#1
PC_flea

PC_flea

    Newbie

  • Members
  • PipPip
  • 12 posts
I've scoured the web looking specifically for sample scripts or code that makes a chat applet in a site using only PHP.

I want to make it YM-style - where you put in smileys, and when you pick an online visitor/user, you can click on his name then a pop-up window appears where you can chat with that person privately. Also, there a group chat window in it.

It drives me crazy to look at the other tutorials since you have to have AJAX and Javascript installed for that sort of applet to run.

Does anyone of you out there where I can get resources for that concern?
I hope they not only provide the source code with comments in it, but even discussions and explanations on why this is done and how it works...

But if you do know, I'd be grateful for any info that you can share:D

Thanks for reading this post - I hope I didn't bother you guys...Pardon if I sound so desperate:crying:

#2
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
  • Location:Karlstad, Sweden
  • Programming Language:C, Java, C++, C#, PHP, JavaScript, Pascal
  • Learning:Java, C#
It does requires Javascript and for having the javascript to work as you wish, use the AJAX methods of JavaScript. AJAX is a way to use Javascript, not something own you "install". You don't install javascript either, as it's part of the browser, where it can be enabled or disabled. Default is enabled, but some users, authorities, employers etc can turn it off due to security reasons.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#3
PC_flea

PC_flea

    Newbie

  • Members
  • PipPip
  • 12 posts
Thanks for that pointer - in that case, do you know of any resources that will help me with that project (detailed tutorials and source code)?
Or do you know of anyone here in this site that can help me with it?

#4
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
  • Location:Vancouver, Eh! Cleverness: 200
It looks like we've a nice tutorial on an AJAX chat here that is fairly commented:
http://forum.codecal...php-jquery.html

Feel free to experiment with it, it seems to be well written.

jQuery is a Javascript framework that can make working with AJAX and the alike a lot easier, so you need not manually write code to perform AJAX queries or whatnot. You could certainly learn jQuery, there is even a huge demand for it online often in jobs.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#5
PC_flea

PC_flea

    Newbie

  • Members
  • PipPip
  • 12 posts
In that case, is there a sort of Visual jQuery and AJAX editor software that you can recommend?

One more thing: when a chat user clicks on a online user's name to pull up a window for a private chat, is it a matter of repeating the same lines of code (in the tutorial you recommended) to make a new window and a new session for just the two users?
I hope you got what I meant - if only I detailed in further...

#6
rhossis

rhossis

    Learning Programmer

  • Members
  • PipPipPip
  • 46 posts
Hi, you could check out Wavemaker.

#7
PC_flea

PC_flea

    Newbie

  • Members
  • PipPip
  • 12 posts
I checked Wavemaker's site and from what I read, it only supports Javascript.
I'm looking for Sigma Visual JS - it's not pulling up its official site.

I'm planning to put up this chat applet into my website using PHP - you guys probably know of something else right?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users