[jQuery] Replacing DOM Elements While Maintaining Child Elements

2008-07-22 Thread Chris P
Ok, I have this code (I know it's horrific). td class=ms-sbscopes ms-sbcell select class=ms-sbscopes title=Search Scope id=ctl00_PlaceHolderSearchArea_ctl01_SBScopesDDL name=ctl00$PlaceHolderSearchArea$ctl01$SBScopesDDL option value=This SiteThis Site: Hirsch Branding/option /select /td I want

[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

[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. script type=text/javascript var stickyFooter = function() {

[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. The

[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 can see it on my site (www.siolon.com). It's suppose to add

[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'); You can see it on my site (www.siolon.com). It's suppose to add