I recently came acrossed this article discussing 50+ amazing jQuery examples and thought I’d share it. I’ve already written two posts on jQuery and have more to write (hopefully soon), but I think that seeing something in action is often the best way to appreciate it, particularly when it comes to dynamic things like client-side JavaScript. Also, if you just go to the jQuery home page and look at the list of companies using jQuery, you’ll be duly impressed!
Archives For framework
[intlink id=”110″ type=”post”]In my first post on jQuery[/intlink], I discuss how to include the jQuery library in your HTML page and how to have JavaScript executed after the document has loaded. In this next post, I’m going to talk about referencing Document Object Model (DOM) elements using selectors. As much of using JavaScript in an HTML page involves manipulating the DOM, this is an important concept to get down. Continue Reading…
For some time now I’ve been meaning to write about jQuery, an increasingly popular JavaScript framework. There are a number of JavaScript frameworks available, all with their own strengths and weaknesses, so I don’t want to suggest that jQuery is the best one, but it does have its advantages. In particular, I like:
- that there’s only one file to include in a page
- how simple DOM (Document Object Model) references are, as manipulating the DOM is such a large part of Rich Internet Applications
- the unobtrusive JavaScript approach
If you’re not familiar with this last concept, it involves keeping the JavaScript together, in the page’s HEAD, separate from the HTML. Pretty much anytime you separate X from Y (data from presentation, HTML from PHP, CSS markup from HTML, etc.), it’s a good thing. At the very least, abiding by unobtrusive JavaScript makes editing JavaScript easier. (There’s more to unobtrusive JavaScript than just this but…)
In this first post on jQuery, I’ll just discuss how to prepare a page to use jQuery. Over the next few days, subsequent posts will demonstrate more complex applications of jQuery. Continue Reading…
A couple of months ago I started hearing about the Merb framework, an alternative to the Rails framework for creating Web sites in Ruby. As you may know, Rails came under some fire for not scaling well; Twitter, in particular, had several problems. (Although I would argue that the demands of a site like Twitter are probably in the top 0.1% of all sites, so this concern may not be an issue for most Web sites.) Version 2 of Rails specifically addressed these concerns, but still, people started to look around for alternatives, including not using Ruby at all. This is where Merb came in: a smaller and faster Ruby framework. I hadn’t yet gotten to play with Merb but was going to add it to my framework-comparison homework. That may be a moot point now, as it was just announced that Merb and Rails will work together on the next version of both frameworks. Version 3 of Rails will incorporate some of Merb’s best attributes, resulting in a better Ruby framework for Web development and ending a minor feud within the Ruby community. So the next version of Merb will be Rails 3.0 and the next version of Rails will be influenced by Merb: what does this mean? Continue Reading…
The question of which PHP framework people prefer just came up again (it comes up like every three months or so) on PHP’s general mailing list. There are many considerations when it comes to selecting a framework:
- Features
- Available documentation
- Performance
- Compatibility
- Maturity and developmental progress
The specific issue I want to discuss here is performance, measured quantitatively using benchmarks. Continue Reading…