PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
When opening page cursor (focus) jumps to Weather (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: When opening page cursor (focus) jumps to Weather


#3228
mazgonar (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
When opening page cursor (focus) jumps to Weather 4 Years, 5 Months ago Karma: 0  
Hi!

When opening page, cursor (focus) jumps to Weather module input field. This would not be annoying at all, but I have this module installed at the bottom of the page.

Does anybody know why this happens?

I would very appreciate your help!


Br, M!
 
  The administrator has disabled public write access.

#3243
kksou (Admin)
Admin
Posts: 1715
graph
User Online Now Click here to see the profile of this user
Re:When opening page cursor (focus) jumps to Weather 4 Years, 5 Months ago Karma: 27  
Hi,

Sorry for the late reply.

1) Please go to the folder modules/mod_googleWeather

2) Edit the file: mod_googleWeather_lib.php

3) Comment line 87 and 89, both of which are: "a.focus();"

You should now have:
if(a.type!='hidden') {
if(matchPos1 == -1) {
a.value = '';
//a.focus();
} else {
//a.focus();
a.select();
}
}

4) Save and close the file

That's it! The focus will no longer be at the google weather input field.

Regards,
/kksou
 
 
Last Edit: 2010/02/14 21:53 By kksou.
  The administrator has disabled public write access.

#3248
kksou (Admin)
Admin
Posts: 1715
graph
User Online Now Click here to see the profile of this user
Re:When opening page cursor (focus) jumps to Weather 4 Years, 5 Months ago Karma: 27  
Hi,

I've just uploaded GoogleWeather v1.53.

You can now go to the Parameter in the Module Manager. Scroll to the last item and change the "Focus on Input Field" from yes to no.

Let me know if it works.

Regards,
/kksou
 
  The administrator has disabled public write access.
#3276
mazgonar (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:When opening page cursor (focus) jumps to Weather 4 Years, 4 Months ago Karma: 0  
Hi /kksou,

Thank you very much! I've uploaded the new version 1.53, disabled focus and now it works perfectly!

Thank you again!

Best regards, Matjaz
 
  The administrator has disabled public write access.
#3340
BoredDavid (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:When opening page cursor (focus) jumps to Weather 4 Years, 4 Months ago Karma: 0  
Hi
I am trying to resolve the same problem but I cant find the code you talk about in the file?

My line 87 89 looks like this

$option = '';
if (isset($_REQUEST['option'])) $option = $_REQUEST['option'];
print "<input type=\"hidden\" name=\"option\" value=\"$option\">";
 
  The administrator has disabled public write access.
#3341
BoredDavid (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:When opening page cursor (focus) jumps to Weather 4 Years, 4 Months ago Karma: 0  
Sorry Dude, I need to read more

You now have a button, thanks.....
 
  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-2012. kksou.com. All Rights Reserved