I used the module with a default city and set the 'city' field hidden from the backend options.
Firefox and Chrome were OK, but IE 8 showed errors in javascript in file mod_googleWeather_ajax.js at line 83.
a.focus() was the reason, because it can't focus on a hidden element. So, I wrapped the lines with an IF statement to check if the input field is hidden and everything works fine now:
| Code: |
if(a.type!='hidden') {
if(matchPos1 == -1) {
a.value = '';
a.focus(); //error for ie8
} else {
a.focus();
a.select();
}
}
|
Hope it helps someone,
mike.