www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > JavaScript

    JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...)

     
     
    Thread Tools Rate Thread Display Modes
    Prev Previous Post   Next Post Next
      #1  
    Old 05-26-2008, 12:29 AM
    sosuke sosuke is offline
    Registered User
     
    Join Date: Mar 2006
    Posts: 3
    Angry reliable html to string via Javascript

    I have tried to search for a solution to this problem before posting here but anything related to strings kicks back a million reference pages and when I start trying to get any more specific everything I find is about writing to the DOM when I need to just read it out!

    I was using innerHTML and passing it through as well formatted XML to Flash for parsing. This was working great in Firefox and I thought I was nearly finished when I had the bright idea of testing in IE7. FAIL! Malformed XML could not be parsed.
    IE7:
    Code:
    <DIV id=projects>
    FF:
    Code:
    <div id="projects">
    How can I get the equivalent string return for my HTML structure in IE7? innerHTML is not going to work as IE7 is stripping information and reformatting my text.

    This is a sample of what I am using now:
    Code:
    document.getElementById("pageContainer").innerHTML
    Reply With Quote
     

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 01:25 PM.



    Acceptable Use Policy

    Internet.com
    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.