A quick reference page for the [prototype] library to help ease the learning curve for a lot of developers out there...
One of the more useful links for people who are using the prototype.js library. I find that I either refer to the code, or to this page, depending on the level of caffeine in my system!
Here's a cool implementation of a slider widget used to resize images (this example uses the script.aculo.us library slider). This would be interesting for a photo uploading widget, where the user could upload a temporary file, resize to their liking, and then commit the image to that size using PHP+GD, for example.
This 8 page article starts from the very basics and moves into meatier things by the end, including event bubbling and event handlers among other stuff.
Please note that the links in this post are affiliate links.
For some reason closures seem really hard to understand when you read about them, but when you see some examples you can click to how they work (it took me a while).
Event Delegation handles a click by delegating (firing) an event depending on the case.
If you are doing any work with Prototype and would like something that puts it all on one space for you, Johnathan Snook has come through with this excellent set of charts that detail every method and property that is available.
An excellent, comprehensive 6 page resource that
From the project page:
Sarissa is a cross-browser ECMAScript library for client side XML manipulation, including loading XML from URLs or strings, performing XSLT transformations, XPath queries and more. Supported: Gecko (Mozilla, Firefox etc), IE, KHTML (Konqueror, Safari).
To identify a trigger element, you add the class "trigger" to it as an attribute. This will automatically collapse the next following element in the document tree.
I started freelancing by diving in head first and getting on with it. Many years and a lot of experience later I was still able to take away some gems from this book, and there are plenty I wish I had thought of beforehand. If you are new to freelancing and have a lot of questions (or maybe don't know what questions to ask!) do yourself a favor and at least check out the sample chapters.
Like the other books listed here, this provides a great reference for the PHP developer looking to have the right answers from the right people at their fingertips. I tend to pull this off the shelf when I need to delve into new territory and usually find a workable solution to keep development moving. This only needs to happen once and you recoup the price of the book in time saved from having to develop the solution or find the right pattern for getting the job done..