Easy tech stuff!

Page submits twice when background = “#”

Posted: June 7th, 2008 | Author: Nischal Shetty | Filed under: HTML | Tags: , , , | No Comments »

If you ever come across a situation where your page goes to the same action twice for no apparent reason then make sure that there’s no background=”#” anywhere in your page.

I found that if there’s background=”#” then the page tends to submit the same request twice!! Call it a bug in html… Not sure about that. But the code is as below:

<table background=”#”>

<tr>

<td>

This piece of code in your page will cause the request to be submitted twice!!

</td>

</tr>

</table>

Please leave a comment if you have anything to add to this :)


Technical site reviews… What do you think?

Posted: May 27th, 2008 | Author: Nischal Shetty | Filed under: Uncategorized | No Comments »

I am planning to start a blog (review.techtamasha.com) where I review all the other good technical sites, blogs and all kinds of softwares that will help you make your job as a developer or blogger a lot easier. I’ll keep you posted when I start it and it’s gonna be soon ;o)


Identify the browser used by the client

Posted: May 6th, 2008 | Author: Nischal Shetty | Filed under: Browsers | Tags: , | 2 Comments »

You may want to know the details of the browser used by the various visitors to your site. Lets see how the navigator object can be used to identify the browser details of the user. The navigator object has a property named ‘appName’ which will do the trick.The code below is all that is needed:

navigator.appName

For Ex.

function identifyBrowser()

{

alert(“You seem to be working on the “+navigator.appName+” browser”);

}

The navigator method has a few other properties like:

appCodeName

appVersion

language

mimeTypes[]

platform

plugins[]

userAgent

Click here to view the example