On Mon, Apr 19, 2010 at 7:32 AM, ES <[email protected]> wrote: > how do I insert html into a window? This doesn't seem to work:
You have four problems here: 1) this is a Rails mailing list -- find a JavaScript list for this question 2) "doesn't seem to work" -- http://catb.org/~esr/faqs/smart-questions.html > var testwindow = window.open ("", "mywindow", > "height=800,width=400,location=no,scrollbars=yes"); > var el = testwindow.document.createElement('div'); 3) creating an element doesn't insert it into the DOM > el.innerHTML = content; 4) content is apparently undefined. HTH, -- Hassan Schroeder ------------------------ [email protected] twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

