Brian LePore's Work

Mozilla Search Plugins

Mozilla (all versions) Sidebars

Opera/Mozilla 1.5+/Firebird/Firefox Sidebars

JavaScript

To DOM

To DOM accepts a string and attempts to convert it into an array of DOM objects. This offers an alternative method of changing content of an element, rather than using innerHTML. There is an example of To DOM available. In this test, an Ajax call is made to the server which serves up a paragraph, a form, and then a final element. This is particularly useful because:

When you try to import responseText into the innerHTML of an element, and the responseText contains forms, or the element is a form, Explorer throws an error.