[jQuery] Re: Use my plugin fn without $('') selector

2009-07-30 Thread publicJorn
$('').plugin() return this.each(function(i, elem){ // here you can return each }); } This is handy, cause now you can also call your plugin's functionality from javascript, instead of directly from an event. On 30 jul, 11:23, publicJorn wrote: > Hi all, I'm kinda new

[jQuery] Use my plugin fn without $('') selector

2009-07-30 Thread publicJorn
Hi all, I'm kinda new to these forums, but I was hoping someone could help me out here.. I've been making plugins in a particular format that suits me really well. But now I want to be able to run it without using the jquery selector. Kind of like you can use: $('p').each(function(){}) ; I want t

[jQuery] Re: jQuery.support -- No direct support for IE6 detection

2009-04-14 Thread publicJorn
Obviously I agree that IE6 should be banned. But since most big corporations (and clients) still use it, I as a front-end developer find that we need to keep supporting it. But indeedly, conditional statements are once again the key. Add this to the head of your page: This adds the classname .i