background preloader

Articles

Facebook Twitter

HTML onChange. Specifies script code to run when the data in the input field changes. applies to input fields which accept text, namely text and password fields. ( and fields also use .) The event is triggered when the contents of the field changes. For example, when the user enters an email address in this form, a script does some basic validity checking on the value entered: <SCRIPT TYPE="text/javascript"><! -- function checkEmail(email) { if(email.length > 0) { if (email.indexOf(' ') >= 0) alert("email addresses cannot have spaces in them"); else if (email.indexOf('@') == -1) alert("a valid email address must have an @ in it"); } } //--></SCRIPT><FORM ACTION="..

/cgi-bin/mycgi.pl" METHOD=POST> name: <INPUT NAME="realname"><BR> email: <INPUT NAME="email" onChange="checkEmail(this.value)"><BR> destination: <INPUT NAME="desination"></FORM> which gives us this form: Because only occurs when the value changes, the user is only warned once about a bad value. <SCRIPT TYPE="text/javascript"><! CSS3 Transitions And Transforms From Scratch. There are some amazing examples of CSS transforms and transitions, and whilst you may be blown away by them, there's a good chance that you're also overwhelmed and a bit intimidated! This tutorial will take you back to the very basics. We're going to create some fundamental CSS3 transitional movements, step by step. A Quick Note on Browser Support: Support across browsers is already pretty reasonable. Firefox 3.5, Chrome, Opera 10.5, Safari 3.1, and Internet Explorer 9.0 have you covered where transforms are concerned.

IE is a little less accommodating with regard to transitions, though support is planned for IE10. The Axes and Grid To help understand the movement easily we'll be working on an axis grid (which you'll probably recognize from basic math). The only (crucial) difference is that on our axis the -y value is above the x axis, whilst it would ordinarily be below it. Note: I'm going to assume that you're already familiar with HTML and CSS file structure. 1: Horizontal Movement.

Random Redirection in WordPress. Why We Shouldn't Make Separate Mobile Websites. Advertisement There has been a long-running war going on over the mobile Web: it can be summarized with the following question: “Is there a mobile Web?” That is, is the mobile device so fundamentally different that you should make different websites for it, or is there only one Web that we access using a variety of different devices? Acclaimed usability pundit Jakob Nielsen thinks that you should make separate mobile websites.

I disagree. Jakob Nielsen, the usability expert, recently published his latest mobile usability guidelines. “Good mobile user experience requires a different design than what’s needed to satisfy desktop users. I disagree (mostly) with the idea that people need different content because they’re using different types of devices. Firstly, because we’ve been here before, in the early years of this century. It was a great success—heavily stripped down, all server-generated (as in, those days screen readers couldn’t handle much JavaScript) and it was highly usable. Ten Alternatives to WordPress as a Blogging CMS. Articles January 4, 2012 We all know that WordPress is an awesome Content Management System cum Blogging Platform.

In fact, it is also the most popular blogging tool all over the internet. Name any other CMS – WordPress eats them all out for lunch! However, as a web designer/developer/enthusiast, being knowledgeable about an extra CMS doesn’t really hurt much. In this article, we shall take a look at some of the worthy alternatives to WordPress as a blogging tool. But before we go any further, here is a disclaimer: this round-up solely mentions CMSs that are/can explicitly be used as blogging tools. So, without further ado, let us take a look at some of the worthy alternatives to WP. Drupal Who hasn’t heard of Drupal? Movable Type Movable Type is a CMS written in Perl. Textpattern Textpattern is another worthy blogging tool. Expression Engine Expression Engine is a rare breed of blogging tool cum CMS options. Habari Wolf CMS Wolf CMS is a PHP-based open source CMS licensed under GPL v3. Geeklog. Say Hello to the HTML Email Boilerplate.

Figuring out html email will test the patience of any human being. A seemingly small formatting issue will inevitably arise and you think to yourself, "self, I'm a world class web developer type person schooled in the latest and greatest html5/css3/whatever, I can tackle this with plenty o' keystrokes to spare. " Several hours/cups of coffee/googling later, you are ready to pull your hair out and begin to contemplate what you would do to the person/persons who created {fill in the blank email client here}. That's pretty much why the HTML Email Boilerplate is around.

The HTML Email Boilerplate is a template of sorts that is absent of design or layout, that will help you avoid some of the major rendering problems with the most common email clients out there — Gmail, Outlook, Yahoo, etc. - the HTML Email Boilerplate The boilerplate is here to provide you with some examples and helpful tips to keep your email design rendering as true-to-form as possible. 1: Setting the DOCTYPE Changes: To this: An Overview of Defensive Design. All over the Web, at any given moment, something is going wrong. It's not an issue we take lightly, yet it still occurs! No I'm not here to talk about our over dependence upon third party tools or IE6 (specifically), I'm here to talk about site glitches, and how to avoid them.

Occasionally these bugs are small visible glitches, occurring as a result of mismanaged code; or in many other cases, Internet Explorer. Other-times they result from the natural aging process of a site and its ever growing collection of pages. In this article we're going to explore the world of site-based hiccups and how we can ensure that our sites don't become associated with the fail whale!

Introduction In recent years, we have placed a great deal of effort as an industry, following the topics that get lots of attention. What is Defensive Design? Combatting these evil forces, be they bugs or reoccurring errors, is an on-going battle that cannot be won overnight. Why does this Matter? Legacy of the Lost. Get Into LESS: the Programmable Stylesheet Language. I don't like CSS. Plain and simple. It makes the World go round on the web, yet the language is restrictive and hard to manage.

It's time to spruce up the language and make it more helpful by using dynamic CSS with the help of LESS. Let me illustrate my point with an example right away. Instead of using #FF9F94 to get a dark peach color, wouldn't it be easier to store that color value inside a variable and just use that variable? If you want to recolor your webpage you just change the value of the variable in one place and that's that. In other words: it would be awfully nice if we could use some programming and logic inside CSS to make it a more powerful tool.

What Is LESS? LESS is a superset of CSS. LESS adds much needed dynamic properties to CSS. How To Use LESS There are two ways to use LESS. Using The LESS Javascript File First of all head down to the LESS website and grab the Javascript file. Next, create a file with the .less extension and link it to your page with the code below: Decoupling HTML From CSS. Advertisement For years, the Web standards community has talked about the separation of concerns. Separate your CSS from your JavaScript from your HTML. We all do that, right? CSS goes into its own file; JavaScript goes in another; HTML is left by itself, nice and clean. CSS Zen Garden proved that we can alter a design into a myriad of permutations simply by changing the CSS. However, we’ve rarely seen the flip side of this — the side that is more likely to occur in a project: the HTML changes. We modify the HTML and then have to go back and revise any CSS that goes with it. In this way, we haven’t really separated the two, have we?

Exploring Approaches Over the course of my career, I’ve had the pleasure and privilege to work on hundreds of different websites and Web applications. Most recently, I spent two years at Yahoo working on Mail, Messenger, Calendar and other projects. It was the largest-scale project I had worked on in many aspects: Yahoo’s user base is massive. Reusing Styles.