Give way for HTML 5!

Adobe Flash Plugin  required to view this video…

This sounds as a familiar sentence doesn’t it?  The reason for this and the many “additional plugin required”  messages is because the existing HTML version is limited. It has no support for embedding videos,audio etc. The existing version of HTML is 4.01 and the last revision to this standard was back in 2000. HTML had not been updated since then, but this won’t be for long.

HTML5 is gonna rock the future!

Let me take you for a short walk through history. A group named Web Hypertext Application Technology Working Group(WHATWG) was formed few years back over this dispute with World Wide Web Consortium (W3C). This dispute was over the adoption of XHTML over HTML. It is this group that began its work on HTML5 in 2004. Though HTML5 is not officially released now, a sneak into its features makes one excited.

So what does HTML5 have for an everday Internet user and a creative web developer?

A major benefit of HTML5 is direct support for Drawing,Animation,Audio and Video. And that means we need not rely on third-party plugins to view video, audio and all such stuffs. No more time would be wasted on integrating addons like Flex,Flash or Silverlight and customising it for the task at hand. DOM and HTML support would lessen the work and deliver rich content demanded by users. GPS based instant location tracking, Local Client Side data storage support that may be useful to store for eg. the items purchased online, improved text inputs, search boxes and other fields and many many eye candy stuffs.

Ok! enough words..see them in action.

With some expectations click here to see an interactive presentation on HTML5 powered by “itself”.

Tentative list of tags to be supported by HTML5:

Youtube has rolled out an experimental version of its HTML5 enabled channel. Try it out  <here>

Opening an external html file through Java

Q. How do i invoke an external application(web browser) to display an html page?

A. Perseverance and Patience are those which helped me to reach the solution to this problem. I spent more than 4 hours to find a solution, encountering many tips in the web, only to find at the end that all it takes is to pay attention to  subtle facts like “spaces” and “slashes”.

Here is how you get things to work.
First,  create an html file and name it as “sample.html“. Place it anywhere you  wish.
Next, you need to code the following:

Here, as you would have observed, browser contains the path to Internet Explorer browser and url contains the path to sample.html.

What you would not have observed is the “space” i have left in the browser path, at the end, after iexplore.exe.

This is what that matters and not placing this space is what makes many programmers break their heads making them think that runtime.exec doesn’t work. Also note the slash in the file path and browser path. I have used  forward slash at all instances. This would be obvious to you from the error message you get when you try to replace any of them  with backward slash.

Thats it!

Just run the code and enjoy!

Pass this tip to your colleagues!

IE issue: The back button and the HTML form

Recently, while working on my first JSP project i noticed that, while testing a form in Internet Explorer8,  whenever i navigated back to a form using the back button(either the one you coded or the one provided by IE browser)the form fields remained uncleared, except the password field(Thank God!). The form i coded is one that updates an Ms-Access database.Duplicate entries in field corresponding to the primary key of my database would throw an error.

The reason why IE has not cleared the form field is because of its caching technique. Googling on this problem led me to this Microsoft webpage.

I tried the solution prescribed by them  but was not successful. I even tried calling a Javascript function when submit button is pressed.This function submits the form values to the intended destination page and then resets the form fields.This technique did not succeed either.

So my verdict is please switch over to Mozilla Firefox, because it is very developer friendly and of course user friendly. Firefox rocks!!

The  following  sites may also help you:

* Clear a form on a web page after the details have been submitted….

* Clear cache of form’s field

* self clearing forms