Optimalworks Ltd web design, SEO, training and consultancy 

the site completely surpassed my expectations GT, AutoDirector, we build websites that work, my website is great - I love it MP, XL Autos, reach more customers, make more sales, it's more than I ever could have expected LM, Trade Cars UK, we can help your business grow, 99% of business now comes from my website GV, Bash Events, promoting standards throughout the web industry, your contribution added a level of quality we would otherwise have struggled to achieve PS, Hemsley Fraser
  1. home
  2. Services
  3. Portfolio
  4. Contact us
  5. blog

BetterInnerHTML v1.15 update - an innerHTML alternative

written by Craig, 14 May 2008

We’ve just released version 1.15 of BetterInnerHTML. This fixes a minor bug that prevented strings of 2 characters being generated.

Visit the BetterInnerHTML download page…

What is BetterInnerHTML?

BetterInnerHTML is an alternative to the innerHTML DOM method. Like innerHTML, you can pass a string of HTML and have it rendered somewhere on the page. However, it uses standard DOM node insertion methods that prevents the problems associated with innerHTML.

What’s more - it’s free. We don’t charge a penny for it, although we’re always willing to accept donations if you find it useful.

For more information and technical details, please refer to innerHTML: the ultimate alternative solution.

BetterInnerHTML has been incredibly popular and has been used to fix issues in many systems. We hope you find it useful and appreciate everyone’s feedback.

  • categories: free download, javascript
  • tags: ajax, dom, download, html, javascript, standards, xml
  • trackback: http://www.optimalworks.net/blog/2008/web-development/javascript/betterinnerhtml-115update/trackback
  • bookmark: del.icio.us, digg, facebook, reddit, Furl, Spurl, Blinklist, Slashdot, Technorati, Yahoo!

4 comments:

  1. 20 May 2008 Max commented

    Does the latest version handle all of the IE bugs with .setAttribute() ? I see logic in the code to handle class, for, and events but there is a pile more broken attributes see Bug 242.

  2. 27 May 2008 Craig commented

    It should work: anything with ‘on’ at the start of the attribute is converted to a real event.

  3. 14 July 2008 Adam commented

    I’m trying to insert a simple javascript function that alerts when a button is clicked. The script and the button are inserted into the div using BetterInnerHTML - firefox 3 of course works great. IE 7 says unexpected call to method or property access on char 968

    I could send the test code if you want to try it. Would love to find a fix for this.

    Adam

  4. 15 July 2008 Craig commented

    Hi Adam.

    Are you using the latest version? That issue was fixed from v1.1 and you can see it working on the download page (click the first CLICK HERE, then click “list item 3″).

    If that doesn’t fix it, then send me your code and I’ll take a look.

add your comments
please enter your name
please enter your email address - it will not be published anywhere
please enter your website address
please enter your comments (all are moderated and checked for spam)
  • next article: JavaScript session variables without cookies 
  • previous article: Mini servers: the next big thing? 
search
  • all popular (5)
  • courses (1)
  • general (3)
  • hardware (1)
  • software (27)
    • blogs (1)
    • free download (6)
    • web browsers (11)
    • web servers (2)
  • web development (34)
    • accessibility (4)
    • ajax (1)
    • css (2)
    • graphic design (4)
    • html (1)
    • javascript (7)
    • php (4)
    • seo (2)

tags

  • accessibility
  • ajax
  • apache
  • award
  • computing
  • css
  • design
  • developers
  • dom
  • download
  • editor
  • firefox
  • funny
  • graphics
  • hardware
  • html
  • ie
  • javascript
  • opera
  • php
  • png
  • portfolio
  • review
  • safari
  • security
  • seo
  • server
  • software
  • spam
  • ssl
  • standards
  • wordpress
  • xml
  1. site map
  2. home
  3. Services
  4. Portfolio
  5. Contact us
  6. blog
  7. RSS feed
  8. project survey

XHTML 1.0 | CSS 2.1 | WAI AAA | printer-friendly

©2008 Optimalworks Ltd, Devon, UK. Registered in England and Wales No. 5922205.

This page can be viewed at http://www.optimalworks.net/blog/2008/web-development/javascript/betterinnerhtml-115update