[jQuery] Re: [ANN] Simple focusFirst and ajaxLinkBind Plugins
On Apr 28, 2008, at 10:47 AM, Jörn Zaefferer wrote: s.ross schrieb: The files are available -- without git -- on github. If you don't want to clone them, just browse to them and download what you want. http://github.com/sxross/jquery_plugins/tree/master Does that work ok? That works, though it gives me a tar.gz file, which is rather annoying to extract on windows. I like plain js files or a zip archive. For a few more plugin authoring tips: http://docs.jquery.com/Plugins/Authoring http://www.learningjquery.com/2007/10/a-plugin-development-pattern Jörn Yes, I am becoming aware of some of the plugin-writing issues. These two were extracted from some of my code and were not scoped correctly. I've remedied that, but had not pushed the changes out to github. I did that push just now, so if you want to look, feel free. In terms of the tar.gz, because these are extremely small plugins, I recommend you not use "download" and instead browse directly to the file. That way you can select and copy. I've noticed that this is a common way for jQuery plugins to be distributed (copy/paste). Steve
[jQuery] Re: [ANN] Simple focusFirst and ajaxLinkBind Plugins
s.ross schrieb: The files are available -- without git -- on github. If you don't want to clone them, just browse to them and download what you want. http://github.com/sxross/jquery_plugins/tree/master Does that work ok? That works, though it gives me a tar.gz file, which is rather annoying to extract on windows. I like plain js files or a zip archive. For a few more plugin authoring tips: http://docs.jquery.com/Plugins/Authoring http://www.learningjquery.com/2007/10/a-plugin-development-pattern Jörn
[jQuery] Re: [ANN] Simple focusFirst and ajaxLinkBind Plugins
Yes. That creates a single scope for all the plugin code and allows you to use $() inside that scope. Handy when the next user comes along that doesn't use the $() alias for jQuery() (e.g., because they also use Prototype or another library), while keeping the plugin code tight. Scott On Sun, Apr 27, 2008 at 8:25 PM, s.ross <[EMAIL PROTECTED]> wrote: > Righto. Also, there might be some benefit in wrapping w/ > (function($) { > // stuff > })(jQuery); > > Yes? > > I have a couple of extend's to do that will make things work much more > nicely. > > Thx for the comments. > > > On Apr 27, 2008, at 5:23 PM, Scott Trudeau wrote: > > > To be a little more specific, for example, do this: > > var e = $('form input:visible'); > > Not: > > e = $('form input:visible') > > > On Sun, Apr 27, 2008 at 8:11 PM, Mike Alsup <[EMAIL PROTECTED]> wrote: > > > > > > Comments welcome! > > > > I'd recommend not using global vars. Both of those plugins are doing > > so. > > > > > > -- > -- > Scott Trudeau > scott.trudeau AT gmail DOT com > http://sstrudeau.com/ > AIM: sodthestreets > > > -- -- Scott Trudeau scott.trudeau AT gmail DOT com http://sstrudeau.com/ AIM: sodthestreets
[jQuery] Re: [ANN] Simple focusFirst and ajaxLinkBind Plugins
Righto. Also, there might be some benefit in wrapping w/ (function($) { // stuff })(jQuery); Yes? I have a couple of extend's to do that will make things work much more nicely. Thx for the comments. On Apr 27, 2008, at 5:23 PM, Scott Trudeau wrote: To be a little more specific, for example, do this: var e = $('form input:visible'); Not: e = $('form input:visible') On Sun, Apr 27, 2008 at 8:11 PM, Mike Alsup <[EMAIL PROTECTED]> wrote: > Comments welcome! I'd recommend not using global vars. Both of those plugins are doing so. -- -- Scott Trudeau scott.trudeau AT gmail DOT com http://sstrudeau.com/ AIM: sodthestreets
[jQuery] Re: [ANN] Simple focusFirst and ajaxLinkBind Plugins
To be a little more specific, for example, do this: var e = $('form input:visible'); Not: e = $('form input:visible') On Sun, Apr 27, 2008 at 8:11 PM, Mike Alsup <[EMAIL PROTECTED]> wrote: > > > Comments welcome! > > I'd recommend not using global vars. Both of those plugins are doing so. > -- -- Scott Trudeau scott.trudeau AT gmail DOT com http://sstrudeau.com/ AIM: sodthestreets
[jQuery] Re: [ANN] Simple focusFirst and ajaxLinkBind Plugins
> Comments welcome! I'd recommend not using global vars. Both of those plugins are doing so.
[jQuery] Re: [ANN] Simple focusFirst and ajaxLinkBind Plugins
The files are available -- without git -- on github. If you don't want to clone them, just browse to them and download what you want. http://github.com/sxross/jquery_plugins/tree/master Does that work ok? On Apr 27, 2008, at 3:56 PM, Jörn Zaefferer wrote: s.ross schrieb: Comments welcome! Please provide something else then just a git link, eg. a simple download. Its fine that you use git as your source control system, but please don't assume everyone else does, too. Jörn
[jQuery] Re: [ANN] Simple focusFirst and ajaxLinkBind Plugins
s.ross schrieb: Comments welcome! Please provide something else then just a git link, eg. a simple download. Its fine that you use git as your source control system, but please don't assume everyone else does, too. Jörn