Appcelerator Dynamic Code + IE = Be careful

So you want to insert widget code using element.innerHTML in IE? That’s fine, but wrap the string you’re innerHTMLing in a call to “Appcelerator.Compiler.addIENameSpace(string).”  Why?  When inserting XML into IE’s DOM, you need to prefix it w/ “<?xml:namespace prefix = app ns = “http://www.appcelerator.org” />” so IE knows what to do.  It sort of makes sense, actually, but we’re all spoiled by Firefox and the like.

0 Responses to “Appcelerator Dynamic Code + IE = Be careful”


  1. No Comments

Leave a Reply