[jQuery] Re: Clarification of the Basics

2009-05-29 Thread kiusau
First of all, I would like to thank you for responding, and it is my sincere hope that you will follow through as not all are wont. On May 29, 10:38 am, Kelly wrote: > The first situation, $.prompt(x), is just a function, attached to the > jQuery namespace. This is useful if you're creating a fu

[jQuery] Re: Clarification of the Basics

2009-05-29 Thread Kelly
They are not the same. The first situation, $.prompt(x), is just a function, attached to the jQuery namespace. This is useful if you're creating a function and you want to put it somewhere without creating a new function in the global namespace. Beyond that, it behaves as any normal function woul

[jQuery] Re: Clarification on the use of JSONP in $.ajax

2008-10-22 Thread Jonathan Sharp, Out West Media
Hi RWF, You can make a cross site call if the server knows how to speak JSONP. Remy Sharp (no relation) had a great blog post about this a while back: http://remysharp.com/2007/10/08/what-is-jsonp/ Cheers, -Jonathan On Oct 22, 2008, at 6:17 PM, RWF wrote: in the docs: http://docs.jquery.c

[jQuery] Re: clarification

2007-10-05 Thread Karl Swedberg
.parernts('.switch')[0] Sorry about the typo. Should be .parents('.switch')[0] --Karl On Oct 5, 2007, at 1:53 PM, Karl Swedberg wrote: Forgive me if this has been answered already. Seems like I'm getting emails dumped into my mail client in a random order. To use a DOM method on a jQuery

[jQuery] Re: clarification

2007-10-05 Thread Karl Swedberg
Forgive me if this has been answered already. Seems like I'm getting emails dumped into my mail client in a random order. To use a DOM method on a jQuery object, you first need to convert that object. Fortunately, it's easy to do by adding either [0] or .get (0) after the selector: