Adding Emoticons to ASP.NET Chat application that uses Remote Scripting

Discussion in 'ASP .Net' started by JM, Sep 21, 2005.

  1. JM

    JM Guest

    Hi,

    I made an ASP.NET chat application using remote scripting, so that the
    entire page does not refresh when new messages arrive. The client-side
    has a timer that accepts new messages every 5 seconds. All it does is
    concatenate the new message to the existing chat message string. Now I
    want to add emoticons just like MSN and Yahoo! Messenger. Can you guys
    please give me an idea on how to make this work? Is it possible to
    integrate graphics to string on Javascript?


    Thanks,

    JM
     
    JM, Sep 21, 2005
    #1
    1. Advertising

  2. JM

    Mr Newbie Guest

    You could encode the graphic in say Base64 or whatever and concatenate this
    to your message,and then decode. However, I would rather suggest that a more
    sensible way to do this is to concatenate a code string which correspends to
    the appropiate graphic and have your application interpret this on render.


    "JM" <> wrote in message
    news:...
    > Hi,
    >
    > I made an ASP.NET chat application using remote scripting, so that the
    > entire page does not refresh when new messages arrive. The client-side
    > has a timer that accepts new messages every 5 seconds. All it does is
    > concatenate the new message to the existing chat message string. Now I
    > want to add emoticons just like MSN and Yahoo! Messenger. Can you guys
    > please give me an idea on how to make this work? Is it possible to
    > integrate graphics to string on Javascript?
    >
    >
    > Thanks,
    >
    > JM
    >
     
    Mr Newbie, Sep 21, 2005
    #2
    1. Advertising

  3. JM

    Guest

    Load all the emotion images on your chat server. and use the <img
    src-"emotion.jpg"></img> to display with appropriate height and width.

    Regards ,
    C#, VB.NET , SQL SERVER , UML , DESIGN Patterns Interview question book
    http://www.geocities.com/dotnetinterviews/
     
    , Sep 21, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Xavier MT
    Replies:
    2
    Views:
    549
    Guest
    Aug 13, 2003
  2. Dexter
    Replies:
    3
    Views:
    1,086
    Jeff @ Dart
    Jan 16, 2005
  3. Patrick Olurotimi Ige

    Adding Emoticons to page

    Patrick Olurotimi Ige, May 16, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    364
    Patrick Olurotimi Ige
    May 16, 2005
  4. Replies:
    0
    Views:
    2,203
  5. Terry Reedy
    Replies:
    2
    Views:
    972
    Tim Jarman
    Dec 11, 2004
Loading...

Share This Page