JQuery
From Docunext Technology Wiki
Contents |
My Experience with jQuery
So far I really like jQuery. I'm using it and a pagination extension to scroll through table rows. It can do way more than that though.
I'm using jQuery in an few open source projects I'm working on: PBooks, PhunkyBB, Established Sites and YoDNSConf.
jQuery Examples
Document
The helpful document ready setup:
$(document).ready(function() {
// Do stuff here...
});
Selectors
$("#mydiv").css("color","red");
AJAX
Example from PBooks:
$.ajax({
type: "POST",
url: "x--invoice-paid",
data: {
'invoice_number': invoice_number,
'entry_id': entry_id
},
success: function (res){
$("#p_"+invoice_number).replaceWith("Paid");
}
});
Anonymous / Lambda Functions
Anonymous functions, aka lambda functions, are a big part of Javascript and jQuery uses them very well.
Events
I'm still figuring these out...
jQuery Extensions and Plugins
- http://www.keyframesandcode.com/resources/javascript/jQuery/demos/populate-demo.html
- Tablesorter
- Flot
- jQuery Plugins
- http://projects.nocternity.net/jquery-strftime/
- JQuery Graphics
- http://laboratorium.0xab.cd/jquery/fieldselection/0.2.3-test/test.html
External Links
- http://www.docunext.com/blog/2010/02/using-jquery-14-to-load-css.html
- http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/ (calendars)
- http://plugins.jquery.com/project/pagination
- http://jquery.com/
- http://ui.jquery.com/
- http://www.malsup.com/jquery/form/comp/
- http://www.learningjquery.com/
- http://www.ibm.com/developerworks/web/library/wa-jquery1/