iamnoah / writeCapture

Utility to assist the Ajax loading of HTML containing script tags that use document.write. Mailing List: http://groups.google.com/group/writecapturejs-users
http://iamnoah.github.com/writeCapture
Other
241 stars 38 forks source link

document.createElement AND document.getElementById #15

Closed beest closed 14 years ago

beest commented 14 years ago

I've got a script that uses document.createElement and then applies attributes and HTML to the element. However, I think that later on it also relied on getElementById (via the proxy) to change this element. When a script works like this, could the resulting element be incorrect?

FYI - I'm testing with the Twitter Profile widget at http://twitter.com/goodies/widget_profile, and trying to insert this dynamically into a page.

Thanks for any help you can provide here!

Simon

beest commented 14 years ago

OK - I need to apologise again, because I hadn't noticed the writeOnGetElementById property. I've set this to true and all works OK now.

This is a kick ass library - thanks for the hard work!

Simon @ BaseKit

iamnoah commented 14 years ago

Glad it worked out!