Hi, thanks for your response.
I tried to do what you recommended, but it did not work.
“Export function”, inside onReady (), gives an error in the editor indicating that this function has to be at the highest level.
I tried putting it at the end, out of onReady (), there is no error, but it did not work.
So, after many tests changing the position without any success, I decided to cover the code with “//” line by line to see which part of the code was interfering, because the function was correct (I tried it in a new page without more code than itself).
And after so much work and bothering you with my little problems as a beginner, the solution could not be simpler (in my land there is a poular saying “If it was a dog he would have bitten you” because you have it in front of your nose and you do not see it).
Well, the solution was simply to change the order of the two “Export” functions. It’s that simple:
- Putting " export function input1_mouseIn(event) {" first and below it " export function page1_viewportEnter(event) {" it worked.
I don’t really know what the reason is, although I suppose that force the focus
In a certain field as a first option when entering the page, obviously has had something to do.
I couldn’t relate it, because knowing that requirement, I clicked with the mouse in field “2” to put the focus on it, and I didn’t realize that the focus was not in “1” when entering the page.
When I discovered that latter, I simply changed the order of these two functions and it worked.
Excuse me for extending so much. I thank you very much for your contribution, because it has helped me to reinforce my ideas about it, to focus on the problem and to stop giving “sticks of blindness”.
Thank you.