[jQuery] Exists a Video LightBox plugin?

2009-10-08 Thread Celso
I need put a video (preference "flv") in a non-obstrusive pop-up. Anyone knows a plugin for this? Thanks, Celso

[jQuery] Re: Notre Dame Inspired Jquery -- Exists?

2009-10-06 Thread Jon Banner
one of the carousel plugins could do it for you. http://sorgalla.com/jcarousel/ http://www.gmarwaha.com/jquery/jcarousellite/ depending on your project specific needs. best. Jon 2009/10/6 Kevin Jones > > bump > > On Oct 1, 10:43 am, Kevin Jones wrote: > > http://www.nd.edu/ > > > > Their ho

[jQuery] Re: Notre Dame Inspired Jquery -- Exists?

2009-10-05 Thread Kevin Jones
bump On Oct 1, 10:43 am, Kevin Jones wrote: > http://www.nd.edu/ > > Their homepage has a carousel-ish type of feature. Does anyone know if > this exists already with a jQuery plugin? I don't know if our project > has the allotted time for me to make one from scratch, so I was > curious if it ex

[jQuery] Notre Dame Inspired Jquery -- Exists?

2009-10-01 Thread Kevin Jones
http://www.nd.edu/ Their homepage has a carousel-ish type of feature. Does anyone know if this exists already with a jQuery plugin? I don't know if our project has the allotted time for me to make one from scratch, so I was curious if it existed or could be easily adapted from somewhere else. If

[jQuery] Exists

2008-10-28 Thread shapper
Hello, I have the following: if (subject == '---') { if(!$('label[for="Subject",class="Error"]').length) { $('#Subject').parent().after('Required field'); } } I need to check if a label with for="Subject" and class="Error" exists: if(!$('label[for="Subject",class="Error"]').l

[jQuery] Re: JQuery "exists" - anything in core or a plugin that does this?

2008-08-22 Thread moester
I think this is a valid request and the apply() plugin might be what you're looking for. http://plugins.jquery.com/project/jquery_apply

[jQuery] Re: JQuery "exists" - anything in core or a plugin that does this?

2008-08-22 Thread Balazs Endresz
perhaps: jQuery.fn.exists=function(fn){ if(this[0]) fn(this) return this } On Aug 22, 3:45 pm, James <[EMAIL PROTECTED]> wrote: > The use case I was looking at was along the lines of: > > $("div#navigator").exists(function(matches) { >   $.getScript("scripts/navigator.js", function() { >    

[jQuery] Re: JQuery "exists" - anything in core or a plugin that does this?

2008-08-22 Thread James
The use case I was looking at was along the lines of: $("div#navigator").exists(function(matches) { $.getScript("scripts/navigator.js", function() { matches.makeNavigator(); }); }); Regards, James On Aug 22, 2:25 pm, James <[EMAIL PROTECTED]> wrote: > OK fair point. To me though: > >

[jQuery] Re: JQuery "exists" - anything in core or a plugin that does this?

2008-08-22 Thread James
> > Brandon's point is that the "if" is implicit.  You can do this > regardless of whether or not there are any images on the page: > > $('img').doSomething(); Yes that's fine - but doSomething() has to be defined as a method on the jQuery object. I want to call an anonymous method (or one define

[jQuery] Re: JQuery "exists" - anything in core or a plugin that does this?

2008-08-22 Thread Mike Alsup
> OK fair point. To me though: > > $("img").exists(function(matches) { > > }); > > is a bit more of an elegant solution and a bit more readable (and > saves you repeating the selector that might be quite long), but that's > probably because $(img).length > 0 doesn't sound particularly > intuitive

[jQuery] Re: JQuery "exists" - anything in core or a plugin that does this?

2008-08-22 Thread James
OK fair point. To me though: $("img").exists(function(matches) { }); is a bit more of an elegant solution and a bit more readable (and saves you repeating the selector that might be quite long), but that's probably because $(img).length > 0 doesn't sound particularly intuitive to me. I guess if

[jQuery] Re: JQuery "exists" - anything in core or a plugin that does this?

2008-08-22 Thread Brandon Aaron
Is there a particular method/plugin you are wanting to write this for? Most jQuery methods and plugins operate on 0 or more matched elements. -- Brandon Aaron On Fri, Aug 22, 2008 at 7:54 AM, James <[EMAIL PROTECTED]> wrote: > > Hi, > > I can't seem to find anything that does the following: > > $

[jQuery] Re: JQuery "exists" - anything in core or a plugin that does this?

2008-08-22 Thread MorningZ
a quick plugin to do a simple if statement? if ($(img).length > 0) { $(img).doSomething(); }

[jQuery] JQuery "exists" - anything in core or a plugin that does this?

2008-08-22 Thread James
Hi, I can't seem to find anything that does the following: $("img").exists(function(matches) { /* do something with matches */ }); the difference between "exists" and "each" being it is only run once and supplies all the matches as an argument. The long-hand way of doing this is something alo