It could be that in IE, setting the id property doesn't set the id attribute
(this is true with many dot properties). You could use .set('id',
'contentClone').On Fri, Jun 24, 2011 at 12:35 AM, CRUSH <[email protected]> wrote: > Hey, > I have been debugging this for a couple of days and I'm stuck. The > animation works fine on every browser except IE. IE7 gives errors. To > see what I'm talking about go here: > http://brph.crushdev.com/project_gallery > and click the right arrow. It works great everywhere but IE. > > Here is the relevant code: > :::: before request :::: > var content = $('content'); > var contentClone = > content.clone(true,true).inject(content,'before'); > contentClone.id = 'contentClone'; > contentClone.fade(0.4); > > :::: on request complete :::: > $('contentClone').dispose(); > > That last line is where it's getting hung up. The selector isn't > finding the new element or something. > > I tried removing the "true,true" from the clone function but then it > actually works great the first time and then it actually crashes IE > after the second click. > > I just can't figure out what IE wants me to do... Any help would be > greatly appreciated!!!!!
