Page 1 of 1
Strange - goes to the bottom of the page
Posted: Thu Oct 31, 2019 8:45 am
by alex4orly
Just started a new project based on the Shanhai template
http://www.ourvilla.net.au/
But, when a visitor comes - th page goes by itself to the bottom of the page...
Any idea why?
Thanks
Re: Strange - goes to the bottom of the page
Posted: Thu Oct 31, 2019 9:19 am
by alan_sh
It goes directly to the data entry line.
Alan
Re: Strange - goes to the bottom of the page
Posted: Thu Oct 31, 2019 10:13 am
by WWBman
Yeah, you have Autofocus on the Editbox.
Re: Strange - goes to the bottom of the page
Posted: Thu Oct 31, 2019 11:13 am
by alex4orly
Yes, I can see that but why?
When I run it on my local machine it doesn't do it?
How do I stop this?
There is in source a function : $(document).ready(function()
{
If I manually remove this - it goes away, but the next time I publish the page, the problem is back
Please tell me how to get rid of that
Thanks again
Re: Strange - goes to the bottom of the page
Posted: Thu Oct 31, 2019 11:18 am
by Pablo
It has nothing to do with the script. You have enabled 'auto focus' in the inputbox.
Re: Strange - goes to the bottom of the page
Posted: Thu Oct 31, 2019 7:34 pm
by alex4orly
Hello again,
That was indeed the problem, but :
1) Why, removing the script "fixes" the problem? Just trying to understand
2) I didn't set auto-focus - or maybe I forgot, it seems this is the default
Thanks Pablo.
BTW - is the problem this attempting to resolve, applicable maybe also in the UK?
Re: Strange - goes to the bottom of the page
Posted: Thu Oct 31, 2019 8:45 pm
by Pablo
The script has nothing to do with this.
Auto focus is not enabled by default.
Re: Strange - goes to the bottom of the page
Posted: Thu Oct 31, 2019 8:52 pm
by alex4orly
Thanks again