Deprecated: Assigning the return value of new by reference is deprecated in /home/fann/kksou.com/php-gtk2/includes/patTemplate/patTemplate.php on line 1420
PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?

Deprecated: Assigning the return value of new by reference is deprecated in /home/fann/kksou.com/php-gtk2/components/com_fireboard/template/default/view.php on line 535

Deprecated: Assigning the return value of new by reference is deprecated in /home/fann/kksou.com/php-gtk2/components/com_fireboard/template/default/view.php on line 1063
Javascript errors (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Javascript errors


#3129
mike69 (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Javascript errors 4 Years, 11 Months ago Karma: 0  
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.
 
  The administrator has disabled public write access.

#3132
kksou (Admin)
Admin
Posts: 1728
graph
User Online Now Click here to see the profile of this user
Re:Javascript errors 4 Years, 11 Months ago Karma: 27  
Hi Mike,

Thanks much for sharing the code.

I will incorporate your codes into the next version of Google Weather.

Thanks and Regards,
/kksou
 
  The administrator has disabled public write access.

#3141
kksou (Admin)
Admin
Posts: 1728
graph
User Online Now Click here to see the profile of this user
Re:Javascript errors 4 Years, 11 Months ago Karma: 27  
Hi

I've incorporated your code in the latest version: Google Weather v1.5.2

Thanks and Regards,
/kksou
 
  The administrator has disabled public write access.



Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Copyright © 2006-2015. kksou.com. All Rights Reserved