[jQuery] Replacing DOM Elements While Maintaining Child Elements

2008-07-22 Thread Chris P
Ok, I have this code (I know it's horrific). This Site: Hirsch Branding I want to alter this so the becomes a (I don't need to maintain the classes) and the with a while maintaing the select control. I figured it's done with replaceWith but I can't maintain the select.

[jQuery] Re: Refactoring Functions

2008-06-04 Thread Chris P
> Better yet, change line second line of stickFooter function to: > > var height = $(document).height() - 341; > > And remove the third line entirely. > > Carl Thanks for responding Carl. This is what I ended up using as you prescribed. var stickyFooter = function() { var height =

[jQuery] Refactoring Functions

2008-06-04 Thread Chris P
I wanted a script that would make a sticky footer, and it worked perfectly with this (where 341 is the elements to offset). var height = $(document).height(); var height = height - 341; $('#footer').css('margin-top', height); Then I want this code to re-run on browser resize. I also want to ref

[jQuery] Re: jQuery Not Adding Class/Attributes in IE

2008-05-28 Thread Chris P
> I'm with Karl. I remember IE dying on me when I tried to set an > expando called 'all', go figure... > > So.. use another attribute, jQuery.data or try setAttribute. > Not sure whether it will fail as well or not. Sorry for the spamming of the list. I actually figured out why it didn't work.

[jQuery] Re: jQuery Not Adding Class/Attributes in IE

2008-05-27 Thread Chris P
Anyone? On May 26, 8:32 pm, Chris P <[EMAIL PROTECTED]> wrote: > Hello all, > > For some reason this is not working in IE but fine in Safari/FF. > > jQuery('ul.nav a').addClass('scrollover').attr('type','scrollover'); > > You

[jQuery] Re: jQuery Not Adding Class/Attributes in IE

2008-05-27 Thread Chris P
Anyone on this? On May 26, 8:32 pm, Chris P <[EMAIL PROTECTED]> wrote: > Hello all, > > For some reason this is not working in IE but fine in Safari/FF. > > jQuery('ul.nav a').addClass('scrollover').attr('type','scrollover'); > &g