August 30th, 2006 by Aaron N.
I always get a sinking feeling when Prototype starts to change. Sam (who maintains the project) is checking fixes for the next release today and Justin Palmer (encytemedia.com) is posting things that he’s seeing get checked in as it happens. On the one hand, the next version offers some nice improvements (thus far, there may be even more changes to come), but on the other, it’s stuff I’ve got to go dig into and incorporate into my work…
via ajaxian:
Justin Palmer has updated us with a bunch of recent Prototype updates including:
Posted in 'Industry' News, Prototype | Comments Off
August 25th, 2006 by Aaron N.
I just wrote a page here on Clientside that links off to numerous tutorials and guides for those of you looking to work on your mad skillz.
Later this year (October?) I hope to kick off a series of classes and workshops to initiate anyone who is interested into all the various aspects of good javascripting. In the mean time, perhaps these links will be of use.
Aaron
Posted in CNET JS Standards, Code Snippets, Examples | Comments Off
August 25th, 2006 by Aaron N.
I just found this Encytemedia post on Prototype inheratance that’s totally worth the read. Additionally, at the end he (Justin Palmer) points to Dean Edward’s Base script that provides an interesting alternative.
…All that has since changed. Thanks to the persuasion of The Javascript MacGyver, Sam replaced the Object.prototype bits in favor of Object.extend and Object.inspect. With this decision, however Prototype’s inheritance scheme can be messy, and it’s certainly hard to read if you don’t spend time trying to really figure out what’s going on.
Posted in Best Practices, Code Snippets, Examples, Prototype, Reference | Comments Off
August 24th, 2006 by Aaron N.
Sounds like a delicious treat. I could go for a random cookie right about now.
While I’m on the topic of sharing little helper classes I’ve written, here’s another.
I often create code that represents an untested concept. Actually, half the time I author code for the purpose of testing a concept. Anyway, testing something on the front end usually means showing it to a limited group of folks and that means I have to have a way to consistently show that group the thing I’m testing.
I took a few messy lines of code that I’d been re-using over and over and made a tidy class out of it: Read the rest of this entry »
Posted in Best Practices, Code Snippets, Examples | Comments Off
August 24th, 2006 by Aaron N.
Here’s a chunk of code I use when I’m writing javascript to let me pepper my code with debug statements and not worry about crashing browsers without the firebug functionality (like safary, which has it’s own console.log syntax and will crash if it encounters firebug formated statements): Read the rest of this entry »
Posted in Best Practices, CNET JS Standards, Code Snippets, Examples | 2 Comments »
August 24th, 2006 by nrhinela
I haven’t tried this yet…but looks interesting given our internal tendancy toward FF. And our users’ tendency for IE.
—–Original Message—–
This was in a cnet newsletters. Do not know if everyone knows about it. It’s a firefox extension that converts the renderer to IE. Probably some active x call..
https://addons.mozilla.org/firefox/1419/
Posted in Browser Plugins | 4 Comments »
August 24th, 2006 by Aaron N.
Brandon S. writes: The first release candidate of IE version 7 came out today…
And then on ajaxian:
The IE Team has posted more details on the IE7 CSS changes so we can all get prepared:
We are currently locking down IE7 for shipping and I wanted to give an update on the CSS work that went into IE7. Chris originally outlined our plans for IE7, and we listened to a lot of feedback (blog, connect database, conferences, our WASP partnership etc.) to help us address the most grievous bugs and prioritize which features to put in for IE7. I like to thank especially the contributors on this blog for their participation. Your feedback made a difference in deciding what issues to address.
We understand that we are far from being done and we know we have still a lot of work ahead of us. IE 7 is a stepping stone in our effort to improve our standards compliance (especially around CSS). As an example, in the platform we did not focus on any proprietary properties – though we may try out new features in the future using the official ms- prefix, following the CSS extension mechanism. We also work very closely with the W3C CSS working group (which I am a member of) to help clarify assumptions in our implementation and drive clarifications into the spec. I really like to thank everyone who helped us here.
In all, we made over 200 behavior changes (bug fixes or new features) under strict mode to improve CSS2.1 compliance. All this work (with the exception of transparent PNGs) has been done under the switch only, since all changes required behavioral updates to be more in line what the CSS spec specifies. To preserve application compatibility we will not make any behavioral changes to ‘quirks mode’ as it has been established since IE6.
Read about the many changes that have been made.
Posted in Browser Bugs, CSS | Comments Off
August 22nd, 2006 by Aaron N.
Unlike almost every other programming environment, javascript has one big drawback: you have to deliver it to the client. This can result in a big payload of code you’re dropping on your user and there isn’t a whole lot you can do about it.
You can lazy load the javascript so it’s only on demand. You can optimize your code as best you can so that functionality that’s not really needed isn’t present, and other functionality is written as succinctly as possible. You can set up your server to deliver the javascript g-zipped if the browser supports it.
But one simple thing you can do is just delint your code – remove all the tabs and comments and line breaks. It makes for unreadable files, but you just keep a marked up version and a compressed version. For example, Andy Lottmann took the prototype library and knocked it down from 55K to 35K or so. Read the rest of this entry »
Posted in Optimization, Reference | Comments Off
August 22nd, 2006 by Aaron N.
Now, what was I just saying?
via Ajaxian:
Cody Swann was working on a web application that was using the Dynamic Script Pattern, which Dojo has excellent support for, but Prototype didn’t.
Cody then extended Prototype to support ScriptSrcTransport similarly to how Dojo does it.
The code below support the Simple, Polling and JSONP and JSON Callbacks described in the Dojo book.
Posted in Code Snippets, Examples, Optimization, Organizing Code, Prototype, Server-side Integration | Comments Off
August 21st, 2006 by Aaron N.
There are several examples of the concept of “lazy loading” out there. Dojo is probably the most well known, but the thing I don’t like about Dojo is that the initial include is so expensive (127K!!! – and that’s before you include any widgets).
While digging through ajaxpatterns.org I found this entry on On-Demand Javascript that outlines the concept really well, illustrates how one would implement it, and also points to a couple of implementatins already out there (including Dojo). It’s worth a quick read, especially as we start considering standardizing some of our code libraries. Read the rest of this entry »
Posted in CNET JS Standards, Optimization, Organizing Code, Server-side Integration | Comments Off