Have you ever used the strict equal operator? I learned about it few days ago…
Below is a quick explanation of its behavior:
“The strict equal to operator returns true if both operands are equal (and of the same type). It doesn’t perform any data type conversion, so an expression like 1 === true returns false […]
Archive for the 'Javascript' Category
Hide div and the white space it occupies
Published October 3rd, 2007 in HTML, CSS and Javascript. 5 CommentsProblem
Most of the developers will say “I can use javascript and CSS ‘visibility’ property to do that”, but shortly after that they’ll realize that this is not enough. This solution will hide the div tag content, but the space it occupies will stay.
You can reproduce this behavior using the code below:
if (objDiv.style.visibility == ‘visible’ […]
ASP.NET 2.0 AJAX Extensions 1.0 Released
Published February 7th, 2007 in ASP.NET and Javascript. 2 CommentsASP.NET 2.0 AJAX Extensions 1.0 framework was released some days ago. You can use it for developing and running AJAX-style applications. Download the framework and the documentation or just read more about ASP.NET AJAX.
ASP.NET AJAX Control Toolkit was also released along with the framework. It is a shared-source community project consisting of samples and components […]
Add scrollbar to DIV tag content
Published December 29th, 2006 in HTML, CSS and Javascript. 0 CommentsProblem: Add horizontal and/or vertical scrollbar to the content of a DIV tag
Solution: There are different ways to add a scrollbar to DIV tag content. The easiest one is to use the CSS “overflow: scroll” property. Unfortunately in this case the scrollbar looks like the standard browser one and can be styled only in IE.
The […]
Today I read a really cool article about creating image rollover effect using CSS and one image. This totally eliminates the usage of Javascript and OnMouseOver and OnMouseOut attributes.
Browsers supported: IE 5.5+, Firefox 1.07+, Opera 7.23+, Mozilla 1.7.12+, Netscape 6.02+, Safari 2.0+, Konqueror 3.4.3+
You can review the full artcile with example how to achieve […]
Maybe some of you use the following approach to create “back” links:
<a href=”#” onclick=”javascript:history.back();”>back</a>
I used to do it this way until it turns out that this is not working under Firefox.
Fortunately I found the solution while I was reading an article posted at Code Project website. The back button there was working even in […]








Recent Comments