Ruslan Ulanov’s Codeshack

The developer’s notebook

Mobile Web Best Practices 1.0

Posted in CSS, HTML, JavaScript, mobile by Ruslan Ulanov on the August 7th, 2008

The World Wide Web Consortium (W3C) has recently published a document called Mobile Web Best Practices 1.0.

This document specifies Best Practices for delivering Web content to mobile devices. The principal objective is to improve the user experience of the Web when accessed from such devices.

It’s a good step toward making the Web accessible to millions of small screen devices, not blessed with a combination of iPhone’s hi-res LCD and a powerful Safari browser. :)

The document is available from W3C’s web site http://www.w3.org/TR/2008/REC-mobile-bp-20080729/

IRT.org Knowledge Base

Posted in CSS, HTML, JavaScript, VBScript by Ruslan Ulanov on the May 5th, 2008

IRT.org has a nice collection of FAQs on DHTML, JS, Java, CSS, etc.

http://www.irt.org/faq.htm

Javascript equivalent for PHP’s functions

Posted in JavaScript by Ruslan Ulanov on the March 13th, 2008

Mr. Kevin van Zonneveld has a nice collection of PHP functions ported to JS.

For example sprintf:

(more…)

mredkj.com

Posted in JavaScript, VB.NET by Ruslan Ulanov on the March 13th, 2008

A good JS and VB.NET resource with unpronounceable name at http://www.mredkj.com/index.html

Dynamically loading an external JavaScript or CSS file

Posted in JavaScript by Ruslan Ulanov on the March 6th, 2008

To load a .js or .css file dynamically, in a nutshell, it means using DOM methods to first create a swanky new “SCRIPT” or “LINK” element, assign it the appropriate attributes, and finally, use element.appendChild() to add the element to the desired location within the document tree. It sounds a lot more fancy than it really is. Lets see how it all comes together:

 (more…)