Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clicking too fast on an option
Message
De
27/09/2012 09:03:43
 
 
À
Tous
Information générale
Forum:
HTML5
Catégorie:
HTML
Titre:
Clicking too fast on an option
Divers
Thread ID:
01553735
Message ID:
01553735
Vues:
67
This one is a little bit tricky. I have a DIV which appears on top of my main page. That DIV contains a list with a navigation toolbar. On either of those options, this call javascript:parent.frames['IFrameSelection'].Skip(), assuming a skip page next in this case. This works. Everytime a click is done on that option, this sends a command toa hidden IFrame to send a URL to the server to refresh the DIV. So, once the IFrame finishes loading, the DIV is being refreshed with a page next. If I click in repetition on that option, this will redo the same thing. However, if I click too fast, such as I click on the option, the script starts to be executed, but I click immediately while the DIV is being reloaded, I get:

"Object doesn't support property or method 'Skip'"

This is because a click on that option executes a javascript Skip() function on the IFrame. Thus, that IFrame is being refreshed everytime a click is done on the DIV skip option. So, if I click too fast, it will end up in a situation that the IFrame is being reloaded, thus not completed, resulting in a javascript function Skip() not found.

Remember, the DIV only contains HTML and cannot interpret javascript. It can only sends a javascript command to be executed in its parent or in another container, for example, which is the case here. So, it is kind of difficult to trap that and simply ignore the click in this case.

Any idea on how to react to such an issue when it happens and simply avoid any operation?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform