Web-page containing JQuiz scrolling by itself

14 views
Skip to first unread message

Federica Termine

unread,
Dec 20, 2021, 12:54:42 PM12/20/21
to hotpotatoesusers
Hi everyone,

First of all, please forgive me for my broken English. I hope you'll understand what's my problem (and you'll be able to help me). ☺️
So, lately I've been working on a website, where I plan to upload my HotPot exercises.
I'm using Google Sites, as my coding skills are extremely poor. Usually I just embed the HTML code in the web-page and everything works fine, but today I started noticing that if I open pages containing JQuiz exercises, they scroll down by themselves to the box where you type the answer. This seems to happen only with short answer and mixed JQuiz exercises.
I've been trying on different browsers and devices, but it happens anyway. I eventually came to the conclusion, that there must be something with JQuiz, because when I deleted those exercises from the web-page, it didn't scroll anymore.

These are the links to the pages where it happens:


Has anyone run into the same problem? What could I do to solve it?

Greetings from Italy!
Federica

Martin Holmes

unread,
Dec 20, 2021, 1:14:06 PM12/20/21
to hotpotat...@googlegroups.com
HI Federica,

I see the problem. The HotPot JavaScript does this with this line:

SetFocusToTextbox();

If you can find that line in the code and comment it out:

//SetFocusToTextbox();

I believe the problem will go away. The exercise assumes it's a
standalone page, and that the most convenient thing for users is to put
the cursor in the textbox.

If you want to change the source files, you'll find that code on line
150 of jquiz7.js_.

Hope this helps!

Cheers,
Martin

On 2021-12-20 9:54 a.m., Federica Termine wrote:
> Hi everyone,
>
> First of all, please forgive me for my broken English. I hope you'll
> understand what's my problem (and you'll be able to help me). ☺️
> So, lately I've been working on a website, where I plan to upload my
> HotPot exercises.
> I'm using Google Sites, as my coding skills are extremely poor. Usually
> I just embed the HTML code in the web-page and everything works fine,
> but today I started noticing that if I open pages containing JQuiz
> exercises, they scroll down by themselves to the box where you type the
> answer. This seems to happen only with short answer and mixed JQuiz
> exercises.
> I've been trying on different browsers and devices, but it happens
> anyway. I eventually came to the conclusion, that there must be
> something with JQuiz, because when I deleted those exercises from the
> web-page, it didn't scroll anymore.
>
> These are the links to the pages where it happens:
>
> Page 1
> <https://sites.google.com/view/bendettoitaliano/esercizi-e-giochi/esercizi/che-ora-è/esercizi-sullora?authuser=0>
> Page 2
> <https://sites.google.com/view/bendettoitaliano/esercizi-e-giochi/esercizi/indicativo/passato-prossimo/es-sul-passato-prossimo?authuser=0>
> Page 3
> <https://sites.google.com/view/bendettoitaliano/esercizi-e-giochi/esercizi/verbi-difficili/esercizi-su-verbi-difficili>
>
> Has anyone run into the same problem? What could I do to solve it?
>
> Greetings from Italy!
> Federica
>
> --
> You received this message because you are subscribed to the Google
> Groups "hotpotatoesusers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to hotpotatoesuse...@googlegroups.com
> <mailto:hotpotatoesuse...@googlegroups.com>.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/hotpotatoesusers/8f0934aa-b6af-4591-bb27-be3a41d92e7dn%40googlegroups.com
> <https://groups.google.com/d/msgid/hotpotatoesusers/8f0934aa-b6af-4591-bb27-be3a41d92e7dn%40googlegroups.com?utm_medium=email&utm_source=footer>.

Federica Termine

unread,
Dec 20, 2021, 2:51:10 PM12/20/21
to hotpotatoesusers
Hello Martin,

It worked! Thank you so so much! ☺️

Have a nice day and stay safe!
Federica

Reply all
Reply to author
Forward
0 new messages