[jQuery] Problem with Safari 3.2.1

2009-03-12 Thread fetis
Hi, all. This simple code doesn't work for me div id=a style=background: red div id=b style=height: 20px; background: green/div /div ... $(function(){ $(#a).css(padding-right, 100px); }) If I move it outside ready event it works ok. If I put it another handler, onclick for example, it

[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

[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 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()

[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 added to

[jQuery] Using jQuery without ready()

2008-03-02 Thread fetis
Hi, all. I often use jQuery outside ready() function. Like this div id=asome html/div script $(#a).some actions /script Have this way some hidden troubles or it's ok such using?