Skip navigation.

exploreopera

| Help

Sign up | Help

Shwetank Dixit

Now with 50% more cool!

STICKY POST

Sticky Post

My personal website is shwetankdixit.com . Besides this place, for some strange reason, I also blog on my website shwetankdixit.com/words .

Opera Web Standards Curriculum Launched!

,

We just launched the Opera Web Standards Curriculum. The material is released under a Creative Commons license and is freely available over at http://www.opera.com/wsc/

Whenever I go to a conference or even when I meet some random geeks/developers, the one topic that always comes up is the fact that there is not one centralized single place where all relevant information for web standards and proper web development is available. The Opera WSC plans to change that.

The WSC is an initiative taken by Opera and involves a number of industry veterans as Christian Heilmann and Mark Norman "Norm" Francis of Yahoo!, Peter-Paul Koch of quirksmode.org, Jonathan Lane, Linda Goin, Paul Haine, Roger Johansson of 456bereastreet, and Jen Hanen.

I know a number of colleges and universities that still teach table-based web development and have no clue about how adhering to web standards would help the web become better. Hopefully you could guide them all to the Opera WSC and let them see the light!

I would strongly advise teachers to take this course (tailor it according to your needs) and teach students proper web development techniques. Even if you have a good web development course structure of your own, the Opera WSC can serve as a useful external reference for students.

Opera Dragonfly Released!

, ,

Opera Dragonfly has just been released. Just goto http://dragonfly.opera.com and check it out now. This is the alpha version of our developer tools, so be keep in mind that more and more features will come in the future as well.

Opera Dragonfly is available from Tools/Advanced/Developer Tools, in Opera 9.5 beta 2 and above.

The alpha release includes the initial implementation for the JavaScript Debugger, CSS Inspector, DOM Inspector, Command Line and the Error Console, as well as the Scope module, which allows Opera Dragonfly to communicate with the Opera browser. This second alpha in the coming weeks, will add inline editing support, improved remote debugging, improved threading in the JavaScript Debugger and infrastructure for localisation.

One of the key reasons for the alpha release is to collect feedback from developers, to gauge how Opera Dragonfly covers their needs. We will use this feedback to improve Opera Dragonfly as it moves into beta and then full release.

Feedback can be given at http://www.opera.com/products/dragonfly/feedback/

The Opera Dragonfly blog is at http://my.opera.com/dragonfly/blog/

You can read about the current features at http://www.opera.com/dragonfly/

For more information you can visit http://dragonfly.opera.com

How do you tweet?

Read/Write Web has some interesting analysis of what people tweet with

The most interesting thing was that most people still like to tweet throug the web. Though, twirl is catching up. Even I have twirl, and used it for a while and found it my favourite way to tweet, until I found Digsby.

With Digsby, I can not only keep track of my email (it supports Gmail, Yahoo mail, AOL mail, Hotmail, or a POP or Imap account of your own choosing) but also social networks including Facebook, MySpace and yes, Twitter.

Whenever something new happens (for example, getting a new mail, or someone poking me on facebook, or someone posting a new tweet) I get a small pop-up on the bottom of my screen just above the taskbar showing what it is, and then it dissapears after about 3 seconds.

So if you haven't, you should really give Digsby a try.

I twitter at http://twitter.com/shwetank
Technorati Profile

Web Forms 2: Forming a better form

, ,

If you have been been frustrated with adding javascript for routine tasks while making forms, I have some good news for you. Web Forms 2 is here to help you out! With Web Forms 2, you'll be able to make forms with much less frustration ease. So lets get right to it...

Note: Opera 9.5 beta has excellent support for Web Forms 2. But other browers have to catch up. Also, I have an example page which demos all the stuff mentioned below. You can view the example here with your Opera 9.5 beta browser.

Inputs get a new life

You can a lot more with the input tag than before.

Man, that date was easy!

Just try this in your opera 9.5 browser

<input type="date">


You'll be able to get a whole calender of the month which you can forward to different months and years. Cool, huh?

Apart from date, also try datetime, month, week, datetime-local and time.

Easy Emails:

try this

<input type="email">


This will make the the browser(using its own built-in validation) check whether the text entered looks like an email address.

Ranges and the Output atribute

No more JS for a slider! You can just write this

<input type="range" min="0" max="10">

and it will display a slider with a minimum value of 0 and a maximum value of 10.

But that not it, there is also an Output attribute which can display the output of anything youi cant. For example in the above slider, we can add this ...

<input type="range" min="0" max="10" name="a"><output onforminput="value=a.value">


This would display the sliders current value as you move it along!

Patterns

This example, straight from the draft, gives an idea of how pattern could help

<label> Credit Card Number:
 <input type="text" pattern="[0-9]{13,16}" name="cc" />
</label>


Pattern could be used to verify whether the user has inputted the answer according to the particular pattern demanded.

Required has been really required for a long time!

One of the most common things about form are the required inputs. Usually we say something like the entries marked with * are required, and then proceed to do client and server side detection for it. For those of you who hate writing JS for this, there is now an easier solution...

<input type="text" required>

If the user does not enter something in this, a warning will show up and the form will not get submitted.

Autofocus

<input type="text" autofocus>


This will focus and place the cursor on this input when the page is loaded.

Datalists

<input type="url" list="mylist">
<datalist = "mylist">
<option label = "the shoe company" value ="http://www.nike.com">
<option label = "the kickass browser company" value="http://www.opera.com">
<option label = "the best video ever" value = "http://www.youtube.com/watch?v=uxIsiTo4VJo">
</datalist>


When the user will focus on this input, a list will drop down containing the labels and URLs, and when he selects them, the value (i.e, the URL) will be entered into the input. For example, if I select "the kickass browser company" from the drop down, then "http://www.opera.com", will get entered into the box.

It is different from an actual drop down as the user is free to enter whatever he likes and is not limited by the entries he gets in the drop down.

Disabled and Readonly
Disabled and Readonly are not new, and have been part of the HTML specification, but I haven't seen a whole lot of forms with them.

<input type="text" value="somevalue" disabled>

will make the entry disabled(cannot be edited) and will not be successfull, ie, the entry will not be submitted.

<input type="text" value="somevalue" readonly>

will only make the value readonly, ie, the user cannot edit the entry. However, the entry will be submitted.

Styling forms

You can style forms based on their selectors as well. For example,
input:required{background:black;color:white;}

will mark the background black and font color white of only the required attributes. Pretty sefull, huh?

The Repetition Model

Web forms 2 introduces the Repetition model. With this, you can form blocks which can be repeated. Its a bit similar to the experience when you attach files in Gmail.

We do this by first forming a 'template' to repeat. We can also specify how many minimum or maximum times we want the template to repeat itself using repeat-min and repeat-max.

Buttons, have also undergone a change, and now with it, we can add types such as 'remove', 'add', 'move-up' and 'move-down'. Attaching these buttons to the templates will perform thier respective actions.

For an example on the repition model and as well as everything mentioned above, please see my web forms 2 demo page.

Other sources of Info on Web forms 2: