Some hints if you struggle with IE7 vs IE8

Miscellaneous October 26th, 2011

A few things you wanna bear in mind when implementing for IE7 and/or IE8?

- IE7 can not read the jquery $(divName + ‘ #id’) -> write rather $(divName).find(‘#id’)…
- console.debug() in Js-File -> error, avoid or uncomment it
- new Option() doesn’t work correct -> write rather ‘


- unneccassary commas, e. g.

$result .= “var config= { “;
foreach ($config as $key => $value) {
$result = $result.$key.”: “.$value.”, “;

}
$result .= ” }; “;

An array will created like this:
var config = {.., controllerName: ‘homes’, tableRefrshMethod: ‘list_systems’, };

The last comma after ‘list_systems’ causes an error. Because of that you must avoid it or delete it at last like this:
$result = preg_replace(“/,\s$/”, “”, $result);
=> var config = {.., controllerName: ‘homes’, tableRefrshMethod: ‘list_systems’ };

Post a Comment

Your email is never shared. Required fields are marked *

*
*

More to Explore

Newsroom

The Newsroom is the place where we share what's going on at Erst Technology. Plus thoughts and interesting stuff we come across, most likely related to Data Transfer, Real time data, high availability and sustainability.

Recently