[jQuery] Re: Using jQuery without ready()

2008-03-07 Thread RobG
On Mar 5, 7:33 am, MorningZ <[EMAIL PROTECTED]> wrote: > A good trick for that is to hide the content you are manipulating, and > then for the last line of the Ready() event, do a ".show()" and now > the only thing the user will see is styled and complete elements And if scripting isn't support

[jQuery] Re: Using jQuery without ready()

2008-03-07 Thread fetis
moving to the end of ready() isn't solution. we'll have flickering anyway. i'm not learning jQuery, i'm just using it. we can use simple JS in described way and I just want to know could we do same with jQuery. if it has some onload actions inside thier core, then we can't. it's question for jQue

[jQuery] Re: Using jQuery without ready()

2008-03-04 Thread MorningZ
A good trick for that is to hide the content you are manipulating, and then for the last line of the Ready() event, do a ".show()" and now the only thing the user will see is styled and complete elements I think what people are trying to get through to you, and i wholeheartedly agree, is that it

[jQuery] Re: Using jQuery without ready()

2008-03-04 Thread fetis
> I guess the question is: what are you trying to gain by NOT wrapping > it in document.ready? I'm using jQuery for styling some elements, like first menu item, selected item etc. When I run script right after this items it look like they already have such style. When I move script in ready event

[jQuery] Re: Using jQuery without ready()

2008-03-03 Thread Hamish Campbell
In that limited case, I supposed you don't 100% have to, but it's still a **really** good idea. First of all, you want your page to load before executing scripts. There is nothing worse that JS failing half way through a page load, it's faster to execute jQuery after the DOM has loaded, you can p

[jQuery] Re: Using jQuery without ready()

2008-03-03 Thread Jeffrey Kretz
om [mailto:[EMAIL PROTECTED] On Behalf Of fetis Sent: Monday, March 03, 2008 1:55 PM To: jQuery (English) Subject: [jQuery] Re: Using jQuery without ready() On Mar 3, 5:24 am, the_woodsman <[EMAIL PROTECTED]> wrote: > To my knowledge, the main motivation for using ready and similar is &g

[jQuery] Re: Using jQuery without ready()

2008-03-03 Thread fetis
On Mar 3, 6:20 am, Hamish Campbell <[EMAIL PROTECTED]> wrote: > http://docs.jquery.com/How_jQuery_Works#Launching_Code_on_Document_Ready But I'm not needed in code that running after page loaded. I just want to add some class (for example) to already loaded element. Have I wrap it into ready() ev

[jQuery] Re: Using jQuery without ready()

2008-03-03 Thread fetis
On Mar 3, 5:24 am, the_woodsman <[EMAIL PROTECTED]> wrote: > To my knowledge, the main motivation for using ready and similar is > that otherwise, you have to pay close attention to where your scripts > are included in your page to ensure everything that the script relies > on has already been add

[jQuery] Re: Using jQuery without ready()

2008-03-03 Thread the_woodsman
To my knowledge, the main motivation for using ready and similar is that otherwise, you have to pay close attention to where your scripts are included in your page to ensure everything that the script relies on has already been added to that page. For example, if your script affects all .someClass

[jQuery] Re: Using jQuery without ready()

2008-03-03 Thread Hamish Campbell
http://docs.jquery.com/How_jQuery_Works#Launching_Code_on_Document_Ready On Mar 3, 10:21 am, fetis <[EMAIL PROTECTED]> wrote: > Hi, all. > I often use jQuery outside ready() function. Like this > > some html > >  $("#a").some actions > > > Have this way some hidden troubles or it's ok such usin