A JavaScript problem on IE7 Beta2

    Microsoft has released IE7 Beta2 program, when final version released, lot's of people will migrate their IE6 to IE7 for the new features and security issue. I have downloaded and installed IE7 Beta2 in my notebook, and tested the pages on my blog.

    I do hit two problems. First is CSS, one of my friend fixed the CSS problem. Second is a JavaScript problem for Lilina (The RSS page of my blog), it cannot coalapse the items by clicking the article title. It take me some time to find out the reason and fix it.

    We just need to add a new line to "js/engine.js" file as following (the red line):

function ItemShowHide(id)
{
  var status;
  var item = document.getElementById('IITEM-'+id) ;
  var i ;
  ......

    Seems JavaScript in IE7 need more strict syntax, like C programming. Variables must be declared first before use. According to JavaScript language specification, this should be fixed in final version.

    So declare variables first is a good habit for programmer.

Post a comment

SCode:
Mail(*, but will not be displayed):
Home: