<mySearch ⁄>
<myBlog show="last" ⁄>
<myPhoto order="random" ⁄>
<mySnippets order="rand" ⁄>
<mySnippets type="lang" ⁄>
<myQuote order="random" ⁄>Não faças aos outros homens o que não queres que eles te façam
<myContacts ⁄><email ⁄>
<windows live messenger ⁄>
<myCurriculum type="pdf" ⁄>
<myVisitorsMap ⁄>jQuery.Behavior helps you organize your JavaScript code into logical chunks called "behaviors".
You know those web applications that have many different complex elements on the front-end that interact with each other as well as with server? Once you have to write many lines of JavaScript, even if you write less™ using jQuery, you have to figure out how to organize all that code. The main problem I used to have with this is that I've been reinventing the way I organize my JavaScript code over and over again. Finally, I decided to "package" this knowledge into a simple jQuery extension called jQuery.Behavior.
So what is a "behavior"? It is a class that defines how a DOM object (and its contents, surroundings, etc.) will behave. It encapsulates functionality of a certain type of elements. This functionality can be DOM manipulation, event binding, applying styles and effects - whatever it is that you want to do with some group of elements. The point is to capture all that within one class and then be able to apply that class to anything and access its functionality from anywhere - all that without having to write crappy code.
este é só um excerto do artigo, para aceder ao artigo completo, clique no link em baixo:
this is just a small excerpt from the article, to access the full article please click in the link below:
http://rodpetrovic.com/jquery/behavior/
<myNews show="rand" cat="programacao" ⁄>