On Mon, Apr 19, 2010 at 7:32 AM, ES
<emstolfo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
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 ------------------------
hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.