[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-08 Thread Alex Weber
Thanks Karl! Unfortunately I havan't yet become a huge adopter of "progressive enhancement"/"graceful degrading" :) i just assume that users have js (and cookies for that matter) enabled... lol it works most of the time and i haven't really had to do any mission critical stuff yet :) thx for the

[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-08 Thread Karl Swedberg
On Oct 8, 9:14 am, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Hi Alex, > > Often, if you're hiding information on page load, you'll want to have   > that information available upon some user interaction. Hiding that   > information with CSS would make the information unavailable to anyone   > who

[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-08 Thread Karl Swedberg
Hi Alex, Often, if you're hiding information on page load, you'll want to have that information available upon some user interaction. Hiding that information with CSS would make the information unavailable to anyone who has JS off but CSS on. Probably not a huge percentage of users, but i

[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-08 Thread Alex Weber
Just a random question here: why would you hide the element with jQuery as opposed to using CSS? (on pageload that is...) On Oct 7, 5:50 pm, "John D." <[EMAIL PROTECTED]> wrote: > Ok I found the culprit. There was a JavaScript for our Google site > search. Commenting it out solves the problem. >

[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-07 Thread John D.
Ok I found the culprit. There was a JavaScript for our Google site search. Commenting it out solves the problem. It's a Coldfusion page. I'm not sure why this bit of JavaScript, which is included at the bottom of the page is causing the problem. Shouldn't the paragraph hide before the site sear

[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-07 Thread Brandon Aaron
Make sure your styles are included before the script tags. Is this happening in a particular browser? -- Brandon Aaron On Tue, Oct 7, 2008 at 1:58 PM, John D. <[EMAIL PROTECTED]> wrote: > > Hmm...I'm still having trouble with this. > > my showHide script is as follows: > > $(document).domready(fu

[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-07 Thread John D.
Hmm...I'm still having trouble with this. my showHide script is as follows: $(document).domready(function() { $('body').addClass('jsEnabled'); // let css know js is enabled $('p.firstparagraph').hide() $('#showh1').click(function(){ $('p.firstparagraph').show(200); }); $('#hid

[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-07 Thread Nabha
Installed the plugin, and it works great! I'm using it just as you suggested. For those who find this later, you'll want to "minify" the javascript file: http://www.digitaloverload.co.uk/jsmin/ And this is code you can copy and paste (has a fixed typo): $(document).domready(function() { $('

[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-07 Thread Nabha
Dear Brandon, Those are both great tips, and make for a perfect combination together. I look forward to trying these things out. Thank you for sharing your knowledge... Very sincerely, Nabha

[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-06 Thread Brandon Aaron
Actually it is located at: http://brandonaaron.net/jquery/snippets/domready/jquery.domready.js :) -- Brandon Aaron On Mon, Oct 6, 2008 at 8:09 PM, Brandon Aaron <[EMAIL PROTECTED]>wrote: > The document ready function in 1.2.6 was updated to wait on styles. This is > a good thing sometimes but ot

[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-06 Thread Brandon Aaron
The document ready function in 1.2.6 was updated to wait on styles. This is a good thing sometimes but other times it causes said flickers. On a few recent projects I packaged up the old ready function as domready so that I could avoid the flickers. You can find the code here: http://brandonaaron.n

[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-06 Thread John D.
I too am looking for an accessible solution as I've run into this same problem using the following: $(document).ready(function() { $('p.firstparagraph').hide() $('#hideh1').click(function(){ $('p.firstparagraph').hide(200); }); $('#showh1').click(function(){ $('p.firstparagr

[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-06 Thread John D.
Hi, I've been running into the same problem with the following: $(document).ready(function() { $('p.firstparagraph').hide() $('#hideh1').click(function(){ $('p.firstparagraph').hide(200); }); $('#showh1').click(function(){ $('p.firstparagraph').show(200); }); }); p.fi