[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread skimber
On Apr 16, 2:36 pm, Joel Birch <[EMAIL PROTECTED]> wrote: > Yes there are always exceptions, which is I have been wracking my > brain trying to think of the one ones that apply here, so thanks for > your input Dan. I use JS/jQuery inline when I'm working on a dynamic PHP site with an include

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread wls
> However, I am trying to add an additional $(document).ready(function() > {}); in the middle of the document (i.e. inline) but it is not working > and i don't know why. I don't believe that you're going to find behavior chained. Doing so raises the interesting question of does your second funct

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread Dan G. Switzer, II
>:) I'm always amazed how much an emoticon can affect the meaning of a message. I sent a sarcastic message to a friend once--which was the norm for us, but left off the ;) emoticon. He got really upset with me (he was having a bad day as it was.) The fact that I forgot the emoticon made him proba

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread Andy Matthews
:) -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan G. Switzer, II Sent: Monday, April 16, 2007 8:34 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: New to jQuery and struggling >You should be able to use jQuery inline, but

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread Andy Matthews
Sniff sniff... I'll just go play on the Prototype mailing list now. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan G. Switzer, II Sent: Monday, April 16, 2007 8:34 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: New to jQuer

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread Joel Birch
On 16/04/2007, at 11:34 PM, Dan G. Switzer, II wrote: PS - This really isn't addressed to Andy, just a general note. Sometimes we developers get too stuck on following "golden rules" and we end up making our code harder to work with. So if you find you have to go to long lengths to code a c

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread Dan G. Switzer, II
>You should be able to use jQuery inline, but you might want to ask yourself >WHY you want to use it inline. The power of jQuery is that it can affect >EVERY part of the document from just one spot. I'd recommend rethinking >your code so as to remove the need for inline JS. While that is generall

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread Dan G. Switzer, II
>Can jQuery be used inline? It definitely can be. My guess is you're running into an error. Are you using any JS debuggers to help you out. Firebug for Firefox is highly recommended. MS also has a script debugger for IE--but it's not as intuitive as Firebug. -Dan

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread Andy Matthews
query-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, April 16, 2007 5:59 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: New to jQuery and struggling Thanks for the help. Moving into the head does work, but keeping it inline doesn't. Can

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread Joel Birch
On 16/04/2007, at 8:58 PM, [EMAIL PROTECTED] wrote: Can jQuery be used inline? jQuery can be used inline (maybe not the 'document ready' function it seems though). However, one of the cool things about jQuery is that due to the strength of its selector engine (using CSS to target element

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread [EMAIL PROTECTED]
Thanks for the help. Moving into the head does work, but keeping it inline doesn't. Can jQuery be used inline? Fam Joel Birch wrote: On 16/04/2007, at 7:36 PM, fambizzari wrote: However, I am trying to add an additional $(document).ready(function() {}); in the middle of the document (i.e.

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread Joel Birch
On 16/04/2007, at 7:36 PM, fambizzari wrote: However, I am trying to add an additional $(document).ready(function() {}); in the middle of the document (i.e. inline) but it is not working and i don't know why. Does it work if you move the inline $(document).ready(function(){}); into the head