Thanks Dave!
var newElement = $("", opener.document).text("Mod State");
$(opener.document).find("#injectHere").append(newElement);
works great in MSIE7 & FF3.
On Mar 10, 5:47 pm, Dave Methvin
wrote:
> Try this:
>
> $("", opener.document)
>
> That way it will create the li element in t
Try this:
$("", opener.document)
That way it will create the li element in the right document.
http://docs.jquery.com/Core/jQuery#htmlownerDocument
Same behavior -- which is a "No such interface supported" exeception
on this WinXP/IE7.0.5730.13 machine. The $(newElement).appendTo($
(opener.document).find("#injectHere")) permutation also behaves in
this way.
On Mar 10, 8:48 am, Joseph Le Brech wrote:
> What about something like this?
>
> $(
What about something like this?
$($(opener.document).find("#injectHere")).append(newElement);
> Date: Tue, 10 Mar 2009 08:32:28 -0700
> Subject: [jQuery] .append misbehavior in MSIE7 with cross-window element
> injection
> From: nekura.n...@gmail.com
> To: jquery-en@googlegroups.com
>
>
4 matches
Mail list logo