Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Jsni, html & js

$
0
0
Hello,

i got a task to make a canvas on witch it is possible to write, draw, erase etc. (something like paint).

I done it in JS and HTML

syntax like this:

<html>
<canvas>....
<input>..
<script>
.
.
.
</script>
</html>

...how can i recreate this in smart gwt application? This html and js should be called on button click in application, so adding js to gwt.xml is a bit problem if its loaded on start of application, if using JSNI where can i create that HTML canvas and get his id in JSNI method. Without using app.html.

I try to use String getInnerHTML() and return <canvas> but i cant get his id, nor id-s of input elements.
Regards, Jakov.
SmartClient Version: v10.0p_2014-10-22/Enterprise Deployment (built 2014-10-22)

Viewing all articles
Browse latest Browse all 4756

Trending Articles