background preloader

Web Forms

Web Forms
You are here: Home Dive Into HTML5 Diving In Everybody knows about web forms, right? Make a <form>, a few <input type="text"> elements, maybe an <input type="password">, finish it off with an <input type="submit"> button, and you’re done. You don’t know the half of it. HTML5 defines over a dozen new input types that you can use in your forms. Placeholder Text The first improvement HTML5 brings to web forms is the ability to set placeholder text in an input field. You’ve probably seen placeholder text before. When you click on (or tab to) the location bar, the placeholder text disappears: Here’s how you can include placeholder text in your own web forms: Browsers that don’t support the placeholder attribute will simply ignore it. Ask Professor Markup Q: Can I use HTML markup in the placeholder attribute? Autofocus Fields Web sites can use JavaScript to focus the first input field of a web form automatically. Here’s how you can set a form field to autofocus: What’s that? Autofocus with fallback

Writing your first Django app, part 4 This tutorial begins where Tutorial 3 left off. We’re continuing the Web-poll application and will focus on simple form processing and cutting down our code. Write a simple form Let’s update our poll detail template (“polls/detail.html”) from the last tutorial, so that the template contains an HTML <form> element: polls/templates/polls/detail.html A quick rundown: Now, let’s create a Django view that handles the submitted data and does something with it. polls/urls.py url(r'^(? We also created a dummy implementation of the vote() function. polls/views.py This code includes a few things we haven’t covered yet in this tutorial: request.POST is a dictionary-like object that lets you access submitted data by key name. As mentioned in Tutorial 3, request is a HttpRequest object. After somebody votes in a question, the vote() view redirects to the results page for the question. This is almost exactly the same as the detail() view from Tutorial 3. Now, create a polls/results.html template: Amend views

Forget Web Development, HTML5's Biggest Impact is on Advertising There have been a lot of posts about how HTML5 is great for website development. The subtler, yet more interesting story about HTML5 is that it has incredible potential to make advertising both rich and scalable, especially as publishers and advertisers grapple with the requirement to serve slick creative to all devices. As a result, the W3C standard that is "not ready for production yet" is gaining tremendous popularity on mobile and tablet devices and has become a major game changer for mobile display advertising. Why is this story particularly exciting right now? Just this month, commonly implemented ad serving platforms, such as Google with its Doubleclick DART ad serving platform and various other platforms used by premium publishers have been or are being upgraded to also track impressions on the mobile device. While this somewhat esoteric technical issue seems minor, the advent of client side counting on mobile is a big deal for mobile display advertising. Read More About HTML5

10 Tools for Getting Web Design Feedback This series is supported by Ben & Jerry's Joe, Ben & Jerry's new line-up of Fair Trade and frozen iced coffee drinks. Learn more about it here. For designers, one of the most critical parts of a project is getting critiques and advice on how to improve designs. After all, they create designs that will be used by many other people. With the web's ability to connect us to people from all over the world, getting feedback has never been easier. 1. This handy web tool allows you to gather feedback about a website's design. This tool makes it convenient to share a site for critiquing and gathering feedback, relying on the social web's unrestrained penchant for talking about things. 2. Please Critique Me, a web resource by web design agency OnWired, offers free design critiques by one of its design critics. The website is not only great for getting your designs critiqued by professionals, but is also a way to learn about effective design principles by reading archived critiques. 3. 4. 5. 6. 7.

Semantics You are here: Home Dive Into HTML5 Diving In This chapter will take an HTML page that has absolutely nothing wrong with it, and improve it. Parts of it will become shorter. Here is the page in question. The Doctype From the top: This is called the “doctype.” Microsoft came up with a novel solution. This idea spread like wildfire, and soon all major browsers had two modes: “quirks mode” and “standards mode.” In his seminal work, Activating Browser Modes with Doctype, Henri Sivonen summarizes the different modes: Quirks Mode In the Quirks mode, browsers violate contemporary Web format specifications in order to avoid “breaking” pages authored according to practices that were prevalent in the late 1990s. (You should read the rest of Henri’s article, because I’m simplifying immensely here. Now then. That happens to be one of the 15 doctypes that trigger “standards mode” in all modern browsers. This is the HTML5 doctype: That’s it. The Root Element An HTML page is a series of nested elements. <!

Users abandoning desktop email clients for mobile, study reports - Mobile Many of the tasks we’ve traditionally undertaken have been moving over to mobile over the past few years thanks to devices like the iPhone that have shifted our expectations. Email usage is one of those tasks, with email marketing company Campaign Monitor revealing some interesting patterns from the last two years of data it has collected from — and here’s a sample size for you — over 2 billion recipients. The percentage of emails opened on a mobile device has risen from just 4% in May 2009 to 20% in May 2011 while desktop client usage has declined by 11%. Webmail has shown the least change over two years, with a 4% decline. As one might expect, among mobile devices the iPhone is leading the pack with a whopping 71.98% lead. One of the points that David Greiner, co-founder of Campaign Monitor, makes is that CSS support on mobile devices is generally far superior to support in desktop clients.

iGoogle Launches OpenSocial Sandbox - Covering All That's Social On the Web OpenSocial developers have just gained access to a whole new platform: iGoogle. iGoogle is the startpage for millions of users across the web. While it isn’t as robust as Facebook, the ability to distribute your application through more channels is always a good thing. The applications also include a canvas view that provides more space for applications in contrast to the standard widget-sized currently provided. The canvas feature is a drastic change for start pages overall as widgets have become the standard. This means that developers can now reach more people with less effort. Erick Schonfeld suggests that iGoogle may slowly become its own social network.

Django Packages : django reusable apps, sites and tools directory Dive Into HTML5 60 Advanced Adobe Photoshop Tutorials These are advanced techniques that require more than just technical knowledge of Photoshop, they require talent, Photoshop training, knowledge of design, layout, balance, color theory, etc. I hope you find these techniques inspiring and helpful. UPDATE: If you like these tutorials, you might love this:60+ (more) Advanced Photoshop & GIMP Tutorials UPDATE: (8/28/13) I just updated any broken links and replaced unreachable tutorials with new ones. I also just realized today is the 6 year anniversary of creating this post! Text-effects: Movie techniques: Vector effects: Photo Retouching: Photo Manipulation: Web Buttons / Interface Elements: Digital Coloring: Digital Painting: I'm generally not not a huge fan of producing an effect in Photoshop that looks like it was produced in Photoshop. Helpful Links This is one of the few sites I have found that actually is design well itself and also has a nice amount of quality Adobe Photoshop tutorials.

An ultimate HTML5 cheatsheet you must have Like a lot of other web developers, I am also going to start learning HTML5. It’s time to get maximum benefit of HTML5 based browsers for our websites. Here I want to share a very useful cheatsheet on HTML5. It must be in your archive. If you are learning it. Update I have converted this cheat sheet into text form. How HTML5 will kill the native app Over the past two decades, the mobile industry has become increasingly stunted by fragmented protocols, standards, and regional differences. But a hot new technology called HTML5 promises to remedy this by delivering an unprecedented open, democratic and wonderfully fertile mobile web. Evangelists say the HTML5 movement has so much momentum that it could defeat the native app — an application that is designed to run on a single platform — in as little as two years. Sundar Pichai, who leads Google’s HTML5-happy Chrome OS initiative, agrees that the “incredible advantages of the Web will prevail” over the dominant native app model. The transition comes at a time when the mobile revolution is driving economic growth in the US and abroad. HTML5 heralds huge efficiencies for web publishers, because it lets companies develop once and distribute across any device via an Internet browser. So there’s tremendous logic behind HTML5’s onslaught. Things are moving very quickly.

The Power of Google Gears (Part 1) | O'Reilly Media by Jack Herrington 06/28/2007 Web application development is the perfect 95 percent solution. It's very easy to develop a simple HTML frontend to something like PHP or Rails, to deliver data to and from a MySQL database. I look at Gears a lot like Ajax, it's a small set of new functionality that takes traditional web pages and moves them one step toward having a complete desktop feel. LocalServer: Using the LocalServer portion of the Gears API you can cache resources, like images, locally for use when you are browsing offline. Google has made all of this available as a quick one package download to the client that works on both Firefox and Internet Explorer. Covering all of these APIs in a single article, at any depth, would be too much. Before I get into the example, let me cover a few basics about the database portion of the API. I'd also like to point out that this is a very full-featured database. It starts with a simple content management site. Figure 1. Implementing the Server Side

Related: