I decided to re-engineer it from the ground up. JPolite V2 is then a complete re-design from the ground up with nothing from V1 except for the look & feel. The code structure is much clearer which makes it easier for customization, as well as integration with other jQuery plugins.
A new feature that is now being tested with JPolite is called XDO (XML Data Object), which currently supports JSON objects only. The whole idea is based on some discussion around “Thin Server Architecture” and REST architecture style, that a browser client first construct the foundation of a web app with STATIC content (HTML, CSS and JavaScript) from a web server, and then exchange only DATA (XML, JSON, TXT) with the application server, which relieves the server from the burden of generating HTML markup. This feature is still experimental with lots enhancements expected.
* The Mottos Say It All
* The Learning Curve and The Community
* What JavaScript Is Good For
o More Than Just The DOM
o Inheritance with JavaScript
o Self Reference
* MooTools Makes JavaScript Itself More Fun
* jQuery Makes the DOM More Fun
* Anything You Can Do I Can Do Better
* MooTools Let's You Have It Your Way
* Chaining as a Design Pattern
* Reusing Code with jQuery
* Reusing Code with MooTools
o MooTools and Inheritance
o Extending and Implementing Classes
* Decision Time
* Discussion
OneFileCMS is just that. It's a flat, light, one file CMS (Content Management System) entirely contained in an easy-to-implement, highly customizable, database-less PHP script.
Coupling a utilitarian code editor with all the basic necessities of an FTP application, OneFileCMS can maintain a whole website completely in-browser without any external programs. Screenshots
* Validating, semantic, and commented markup. Tested in FF, Safari, and IE7/IE8.
* Small footprint (20.4 kb)
* Possibly the easiest installation process ever
* All the basic features of an FTP application like renaming, deleting, copying, and uploading
uploads/deletions, you're going to want to break out an actual FTP program.)
* Gracefully degrading CSS and Javascript
* 100% re-brandable with page title stored in variable and a modifiable filename
Requirements
* UNIX/Linux host, Apache
* PHP5 (PHP4 untested)
* File permission privileges
$('<ul><li><span class="library" /></li></ul>')
.items([
{library:'Prototype'},
{library:'jQuery'},
{library:'Dojo'},
{library:'MooTools'}
])
.chain();
Chain.js isn’t just bind data automatically to your HTML, but it also maintains and manages your data/items.
var data = {first:'Stephen', last:'Hawking'};
// Add one item
$('#persons').items('add', data);
// Remove item
$('#persons').items('remove', data);
via http://www.trilancer.com/jpolite2/
1. $(document).ready () All The Way
2. Use $(window).load ()
3. Load Only What You Really Need
4. Learn What The ‘data’ Method Is And Use It
5. Built-In Custom Selectors
6. Flag With Classes
7. Don’t Call the Same Selector Hundreds of Times
8. Chain (Almost) Everything
9. toggleClass Utility
10. Store jQuery Results
var $p = $('p.hello');
$p.css ('color', '#000000');
$p.text ('hello');
$p.addClass ('paragraph');
$p.fadeTo (1000, 1);
$('p.hello').css ('color', '#000000').text ('hello').addClass ('paragraph').fadeTo (1000, 1);
Links:
* http://en.wikipedia.org/wiki/Comparison_of_JavaScript_frameworks
* http://stackoverflow.com/questions/176324/why-does-everyone-like-jquery-mor...
* http://blog.creonfx.com/javascript/mootools-vs-jquery-vs-prototype-vs-yui-v...
Clarification added 9 days ago:
Found a very nice presentation, dated Oct 2008 , by John Resig (Author of JQuery). Here is the URL.
http://www.slideshare.net/jeresig/javascript-library-overview-presentation
jQuery Google Charts 1.0
Copyright (c) 2008 Massimiliano Balestrieri
Examples and docs at: http://maxb.net/blog/
Licensed GPL licenses:
http://www.gnu.org/licenses/gpl.html
Basic usage:
var api = new jGCharts.Api();
jQuery('
')
.attr('src', api.make({data : [[153, 60, 52], [113, 70, 60], [120, 80, 40]]}))
.appendTo("#bar1");
Html:
Basic scripts (use packed version in production):
via
http://www.ajaxline.com/best-jquery-plugins-june-2009
Firstly, define all the necessary information for a given module ID in _modules variable, e.g.,
...
m301:{l:"m301.html", t:"Module Definition"},
m302:{l:"m302.html", t:"Layout Definition"},
m303:{l:"m303.html", t:"Column Width Definition", c:"green"},
...
Wherein:
void branch(float h) {
h *= (float) $('#val_size_1').val();
// All recursive functions must have an exit condition!!!!
// Here, ours is when the length of the branch is 2 pixels or less
if (h > 5) {
pushMatrix(); // Save the current state of transformation (i.e. where are we now)
rotate(theta); // Rotate by theta
line(0,0,0,-h); // Draw the branch
translate(0,-h); // Move to the end of the branch
//ellipse(0, 0, 40, 40);
branch(h); // Ok, now call myself to draw two new branches!!
popMatrix(); // Whenever we get back here, we "pop" in order to restore the previous matrix state
// Repeat the same thing, only branch off to the "left" this time!
pushMatrix();
rotate(-theta);
line(0,0,0,-h);
translate(0,-h);
branch(h);
popMatrix();
}
}