Sry, last ammendment, didn't need to copy, prepend and remove; just
needed to prepend to the right div :)

On May 6, 6:35 pm, Tracy <[email protected]> wrote:
> I figured out a workaround that's a feels a little bit dirty, but
> seems to circumvent this problem.
>
> So originally, we were using a background canvas jQuery plugin that
> was using wrapInner() to wrap contents in a div. From what I could
> see, no matter which method I tried, the Google ad code didn't like
> whenever I tried to add elements and replace content into the new
> element. I'm still not sure exactly what the issue is.
>
> The solution was to add the ad code right before the closing body tag
> - so that all the processing on the divs was complete - then clone()
> the ad, copy it to an existing div where it needed to be displayed
> (prependTo()), and to remove() the ad at the bottom.
>
> Please let me know if you find a cleaner solution. Cheers.
>
> On May 6, 4:22 pm, Tracy <[email protected]> wrote:
>
> > I am getting this error too, but in our case we're adding Google Ad-
> > Sense code and wrapInner() is wrapping a div. I'm seeing this in FF3
> > on my Mac. Is there a solution?
>
> > On May 5, 2:31 pm, Pin <[email protected]> wrote:
>
> > > Hi,
>
> > > Not sure if this is a bug so I posted here, but when you have the
> > > google analytics tracking script on your page, running the following
> > > line results in a white screen and the page never loading.
>
> > > $("body").wrapInner('<div id="wrap_body"></div>');
>
> > > The same happens if you do:
>
> > > $("body").children().wrapAll('<div id="wrap_body"></div>');
>
> > > I get this bug on Firefox 3 using Windows XP
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" 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/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to