Re:How To Develop a jQuery Plugin
by jetako on Wednesday July 22, 2009 @04:55PM
(#718539)
Nice tut for simple plugins. For plugins that keep lots of state per element and allow subsequent modification thereof, I would suggest building with the jQuery UI widget framework. Among its conveniences are method calls via
$(element).customWidget('methodName')
I was pleasantly surprised to find the core to be completely independent of the template system, meaning there's no custom css mixed in there, and no explicit/hacky support for any of the jQuery UI widgets.
Re:How To Develop a jQuery Plugin
by mpk on Wednesday July 22, 2009 @05:30PM
(#718605)
You need a little more than familiarity with programming to get started with a JS toolkit.
Most JS toolkits are heavily biased towards the browser environment, so you also need some knowledge of the DOM and the host environment provided by browsers for JS execution.
http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js
Be patient and focus on understanding one part that your are familiar with - perhaps handling AJAX requests.
Most JS toolkits are heavily biased towards the browser environment, so you also need some knowledge of the DOM and the host environment provided by browsers for JS execution.
That said, if you feel like experimenting, I'd recommend using Firefox, installing FireBug and reading http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery . That should get you started.