your code probably already correctly reacts on clicks. The problem is that alerts are not supported from HTMLDrawables. You can try testing by changing the DOM of the HTMLDrawable.
Let me know if that works.
T
Thibault Morelle
said
almost 10 years ago
OhYeah !
It Works ! It's the alert instruction that cause the problem.
What javascript instructions are allowed/prohibited in Wikitude SDK ? I don't find any resources about that in the documentation.
Thanks :)
W
Wolfgang Damm
said
almost 10 years ago
All javascript instructions are allowed. The problem is that alerts are not passed to the main ui. Other than that a HTMLDrawables behaves the same way as the phone's browser as this component is used for layouting and rendering the content in the backend. Keep in mind that performance is limited and be carfull with high dynamic content (videos, intensive animations, etc. ) and/or excessive html content. It might not work at all (e.g. video) or will result in a bad user experience.
Thibault Morelle