Add color of color picker into db

Last post 05-31-2009 11:47 AM by richard112. 4 replies.

Sort Posts:

  • Add color of color picker into db

    05-31-2009, 10:10 AM
    • Member
      52 point Member
    • richard112
    • Member since 11-30-2008, 4:23 AM
    • Posts 346

    Hi, i have a chat app and wanted to use the color picker to let users change their text font.

    Ive seen examples of it on pages and such, but havent really seen it been used with the db.

    So i wanted to know if its possible to get the text from the textbox and and the selected color of the colorpicker, and insert it into the database, so when the data is retreived, the color of the text will be there

    Anyone know how to do this?

    Thanks

  • Re: Add color of color picker into db

    05-31-2009, 10:39 AM
    • All-Star
      98,279 point All-Star
    • mbanavige
    • Member since 11-06-2003, 1:29 PM
    • New England, USA
    • Posts 10,359
    • Moderator
      TrustedFriends-MVPs

    instead of using the colorpicker,you might be better off trying the HTMLEditor

    http://www.asp.net/ajax/AjaxControlToolkit/Samples/HTMLEditor/HTMLEditor.aspx 

    this includes a color picker and generates the necessary html markup to display the text in that color

    Mike Banavige
    ~~~~~~~~~~~~
    Need a site code sample in a different language? Try converting it with: http://converter.telerik.com/
  • Re: Add color of color picker into db

    05-31-2009, 10:47 AM
    • Member
      52 point Member
    • richard112
    • Member since 11-30-2008, 4:23 AM
    • Posts 346

    Hi, thats a very good idea.

    But one thing, is a HTML editor really suitable for a chatroom?

    E.g the size and all.

  • Re: Add color of color picker into db

    05-31-2009, 10:57 AM
    Answer
    • All-Star
      98,279 point All-Star
    • mbanavige
    • Member since 11-06-2003, 1:29 PM
    • New England, USA
    • Posts 10,359
    • Moderator
      TrustedFriends-MVPs

    for a chat type usage, you might not want all the features offerred by the control.  you might consider using a lighter representation of the editor:

    http://www.asp.net/ajax/AjaxControlToolkit/Samples/HTMLEditor/OtherSamples/Lite.aspx
    http://www.asp.net/AJAX/AjaxControlToolkit/Samples/HTMLEditor/OtherSamples/LiteNoBottom.aspx

     

    Mike Banavige
    ~~~~~~~~~~~~
    Need a site code sample in a different language? Try converting it with: http://converter.telerik.com/
  • Re: Add color of color picker into db

    05-31-2009, 11:47 AM
    • Member
      52 point Member
    • richard112
    • Member since 11-30-2008, 4:23 AM
    • Posts 346

    Ok, ill simply remove a few button so that its suitable for chat

    Thanks for your help.

Page 1 of 1 (5 items)