Archive for the 'Javascript' Category

Lint Your Javascript

Thursday, March 13th, 2008

Lint... brush...

Lint started life as a C program checker, going beyond the errors and warnings that the regular UNIX C compiler would issue. The idea spread and many other languages have had ‘lint’ programs written for them.

Most web developers need to be able to do at least a little bit of Javascript work, but I’d be willing to bet them few of them really know Javascript particularly well. I certainly don’t… I cobble together bits and pieces of it based on examples.

(more…)

Developing Web Content for the iPhone

Friday, July 6th, 2007

Apple iPhone

Apple has published guidelines for developing web content for the iPhone. Some of the guidelines are just good practice (separating HTML, Javascript and CSS, for instance). Some of it is informational (how many pixels you can expect to be available in the iPhone – at least, in this version of it). Some of it is very iPhone-specific (META tags to help control the viewport and scaling).

The article also includes guidelines for encoding audio and video for access over EDGE and Wifi networks.

The iPhone runs a slimmed down version of Apple’s desktop browser “Safari” – you get real HTML, Javascript and CSS support, and it can do Ajax. In my few days with an iPhone I haven’t found any web sites that simply didn’t work on it, including Javascript-heavy sites like Flickr.

(more…)

Rounded Image Corners Through CSS and Javascript

Thursday, April 19th, 2007

Teahouse

Ajaxian has an article on a Javascript package called Corner.js. It allows you to use CSS class specifications to add some simple effects to images at page-load time – you can round the corners, add shadows and shade the edges. The only things you need to do on your web page are load the script and add the appropriate CSS class definitions to your images.

Corner.js works with Firefox 1.5+, Safari and Opera 9+. Older browsers and Internet Explorer will just display images normally without the added effects.

Ajaxian » Canvas Corner 1.0
[tags]rounded corners, javascript, css, images, web[/tags]

Compressed prototype.js

Saturday, March 10th, 2007

Of course almost everybody loves Ajax, but as web page tech evolves it brings with it a whole host of new problems as pages bloat out, carrying with them their own assortments of secondary files: CSS and Javascript libraries that they depend on. Imagine an subroutine call which, every time you called it, required libraries many times its size to be loaded and linked in – this is what’s going on when you load modern web pages.

prototype.js is likely the most popular Ajax implementation out there, and getting it skinny will certainly help load times for web pages depending on it. Ajaxian points to a collection of compressed prototype.js files.

Via: Ajaxian » Compressed versions of Prototype
[tags]prototype, prototype.js, compressed, ajax[/tags]

Prototype Reference Widget

Thursday, February 1st, 2007

prototype.js Dashboard widget

Ajaxian offered up a pointer to a Macintosh Dashboard widget for searching the documentation for the prototype.js documentation.

prototype.js is an excellent Javascript library which provides browser-independent AJAX functionality. It’s at the heart of many AJAX-based applications out there.

(more…)

Sponsored Links

Warning: include(/home/romkey/cache/apocablog.html) [function.include]: failed to open stream: Permission denied in /web/bfr/www/blog.blueforestresearch.com/wp-content/themes/bfrblog2/leftbar.php on line 50

Warning: include() [function.include]: Failed opening '/home/romkey/cache/apocablog.html' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /web/bfr/www/blog.blueforestresearch.com/wp-content/themes/bfrblog2/leftbar.php on line 50

Warning: include(/home/romkey/cache/shinythings.html) [function.include]: failed to open stream: Permission denied in /web/bfr/www/blog.blueforestresearch.com/wp-content/themes/bfrblog2/leftbar.php on line 56

Warning: include() [function.include]: Failed opening '/home/romkey/cache/shinythings.html' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /web/bfr/www/blog.blueforestresearch.com/wp-content/themes/bfrblog2/leftbar.php on line 56