DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Anthony Peters . Guest

    HTML from a String


    This sounds like it should be simple but...

    On the client side in script I have a string containing HTML.
    This is not the HTML of the page that's displayed to the user,
    it's a whole different html document.

    I want to instantiate some object i.e the HTMLDocument, HTMLWindow2
    etc, and assign it this string, so that I can then have it print
    the HTML, as it would appear in a browser.

    Basically, I'm trying to print documents from the client side, without
    the user needing to physically load the document onto the screen.

    I'm not haveing any luck with the Microsoft HTML Objects.
    I'll consider any Client side language, or other object models.



  2. #2
    Joe Fawcett Guest

    Re: HTML from a String

    I too am sure there must be a better way but what we do is open IE with a
    blank page and then document.write the string over it. You can then call
    the print method.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center