Chat smileys approach... Possible?
Chat smileys approach... Possible?
The chat program we're making would definately look more cool if we could support smileys, but i don't have any idea of how to do this. Actually i've got 2 ideas, but none of them seems reliable enough... The first one would be to use a WebGadget, but we have a problem here... How can we add a new line to the contained page without having to refresh it each time an user sends a message? This would be the fastest way, and there is an alternative to this, using an EditorGadget, but I really can't figure out how to add the graphics to a specific location in the text (on the fly).
Is this possible in the first place? I would really appreciate any idea or code example. If it is too hard to make i'll quit trying to make this part.
Thanks in advance !
Is this possible in the first place? I would really appreciate any idea or code example. If it is too hard to make i'll quit trying to make this part.
Thanks in advance !
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
-
White Eagle
- Enthusiast

- Posts: 215
- Joined: Sun Jan 04, 2004 3:38 am
- Location: Maryland
Wouldn't this work?How can we add a new line to the contained page without having to refresh it each time an user sends a message?
http://www.purebasic.fr/english/viewtopic.php?t=16837
Last edited by White Eagle on Thu Oct 05, 2006 11:30 am, edited 1 time in total.
-
White Eagle
- Enthusiast

- Posts: 215
- Joined: Sun Jan 04, 2004 3:38 am
- Location: Maryland
-
White Eagle
- Enthusiast

- Posts: 215
- Joined: Sun Jan 04, 2004 3:38 am
- Location: Maryland
-
White Eagle
- Enthusiast

- Posts: 215
- Joined: Sun Jan 04, 2004 3:38 am
- Location: Maryland
- Joakim Christiansen
- Addict

- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
-
White Eagle
- Enthusiast

- Posts: 215
- Joined: Sun Jan 04, 2004 3:38 am
- Location: Maryland
- Joakim Christiansen
- Addict

- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
You mean something like this?
Each time you add text to the editorgadget use that line.
Code: Select all
SendMessage_(GadgetID(#Main_Chat),#EM_SCROLL,#SB_BOTTOM,0)I like logic, hence I dislike humans but love computers.