[jQuery] Re: plugin good structure with params

2009-12-10 Thread Imre Farkas
Thank for all, it was usefull! On dec. 10, 15:57, Rafał Pocztarski wrote: > 2009/12/10 Imre Farkas : > > > > > Now when i call  i do it so > > > > > $(document).ready(function() { > >        $("#progresbar-bar").hide(); > >        $("#procent").hide(); > >        $("#progresbar-bar").progresbar(

[jQuery] Re: plugin good structure with params

2009-12-10 Thread MorningZ
First off $("#progresbar-bar").progresbar(procent=0,manual=false); isn't correct anyways, it would be: $("#progresbar-bar").progresbar(0, false); as for your question, this article is a great guide to writing plugins *and* thoroughly answers your question about params and defaults: http://www.