Peng Zhang on February 10th, 2010

flyout and dropdown menu

Continue reading about Website Features – Menu

Peng Zhang on November 9th, 2009

The home page of EKS started to throw errors like “Object not Found” in Internet Explorer 6. Upon closer inspection, I suspect that it was because the javascript functions that are being called appear to be still undefined to IE. This occurs only in IE though – Firefox does not have this problem. I still [...]

Continue reading about Javascript Functions Appear to Be Undefined to IE

Peng Zhang on October 9th, 2009

Fireworks exported html page include a line of html comment that looked harmless like below: <!– saved from url=(0014)about:internet –> But it caused problems in IE browsers – Simple actions that used to work without a problem would stop working. For example,  a function call like window.open(“new.html”,”winpopup”,”status=yes,resizable=1,width=350,height=250″) would trigger an “Access Denied”  JavaScript error. Why [...]

Continue reading about Innocuous HTML Comments Can Wreak Havoc

Peng Zhang on September 22nd, 2009

Suppose you have a form in your html page like below. Notice it is without a name attribute. <form id=”myform” action=”formhandler.php”> <input type=”hidden” name=”cityname” value=”"> </form> If you are using this syntax to access the values of input elements inside a form like this: document.myform.cityname.value = “toronto”; it will not work in either Firefox 3.5 [...]

Continue reading about Missing Name Attribute in Form Tag Can Lead to Javascript Error

Peng Zhang on December 8th, 2008

Today I found a piece of nice interesting javascript effect – falling snow on your web pages. Who does not need some nice snowflakes around Christmas? It uses a number of PNG snow flakes images, and display a random falling snow flakes across your web page. The code that drives the effect is quite nicely [...]

Continue reading about Javascript-based Snow Effect on Web Pages