Archive for February, 2010

innerHTML removes attribute quotes in Internet Explorer

After losing 2 hours for an unknown XML parsing error, I have discovered that the results of innerHTML in Internet Explorer are wrong.

1
2
3
4
5
6
7
8
// Original Source code of document
<div id="container">container</div>
// Result of innerHTML in document.getElementById('content')

//Firefox
<div id="container">container</div>
//Internet Explorer
<DIV id=container>container</DIV>

The solution: innerXHTML

1
2
var container = document.getElementById('container');
var code = innerXHTML(container);

Download innerxhtml

Purepdf Flash/Actionscript library for creating PDF files

purepdf is a porting of the java iText library. purepdf is a complete pdf library for actionscript. It supports almost all the pdf features.

  • added example for creating alpha gradient colors.
  • support for pdf viewers display options
  • alpha transparency
  • layers and layers membership
  • support for pdf text rendering.
  • tables ( nested tables, page split tables, table with images, etc…)
  • slide show
  • page transitions
  • annotations
  • patterns, shadings patterns (linear and gradient), spot colors, rgb color and cmyk color
  • linear and radial gradients with alpha
  • forms (user input forms, textfields, combo box, list, checkbox).
  • paragraphs, phrases, chunks for text manipulation
  • image patterns
  • lists
  • basic and advanced paths
  • images ( png, tif, jpeg, bitmapdata, gif, animated gifs)
  • afm, otf, pfm, ttc and ttf fonts (embedded and not embedded)
  • metadata, page header and footers
  • external, internal links
  • barcodes creation ( ean-ucc 13, ucc-12, ean-ucc-8, upc-e, pdf 417, ean supplements)
  • unicode, cjk fonts
  • file attachments
  • arabic RTL writing ( still under revision.)
  • javascript
  • multi column text
  • page labels
  • vertical text
  • and most of the pdf features…

More info at google project code page: http://code.google.com/p/purepdf/

UKI Simple UI Kit for complex web apps

Uki is a fast and simple JavaScript user interface toolkit for desktop-like web applications.

Link:http://ukijs.org/