Results 1 to 4 of 4

Thread: DOM Elements to Rich Text

  1. #1

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,714

    DOM Elements to Rich Text

    I have a website that I'm using to build scripts for businesses.

    What it does is create DOM elements dynamically to display the script. The following would be an example of some dynamically generated HTML:
    Code:
    <ul class="ui-sortable ui-selectable">
        <li class="ui-state-default ui-widget-content">
            <span class="person">Caller:</span>
            Hi is this [name]?
        </li>
        <li class="ui-state-default ui-widget-content">
            <span class="person">Prospect:</span>
            Yep, sure is.</li>
        <li class="ui-state-default ui-widget-content">
            <span class="person">Caller:</span>
            My name is [name] and I'm calling from XYZ company.</li>
        <li class="ui-state-default ui-widget-content">
            <span class="person">Prospect:</span>
            Bruh... I don't care.
        </li>
    </ul>
    What I am wanting to do is convert the way that it looks on screen with all of the sytling into a RichTextFormat file so that the user can download and save it for offline use. Is there any way that I can do this?
    Last edited by dday9; May 30th, 2017 at 10:54 AM.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  2. #2
    Superbly Moderated NeedSomeAnswers's Avatar
    Join Date
    Jun 2002
    Location
    Manchester uk
    Posts
    2,660

    Re: DOM Elements to Rich Text

    Please Mark your Thread "Resolved", if the query is solved & Rate those who have helped you



  3. #3
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: DOM Elements to Rich Text


    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  4. #4

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,714

    Re: DOM Elements to Rich Text

    Wow! Both of these seem to do what I want. I'll look into both and see what I decide.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width