Hi,
I'm trying to allow a user to draw on an Ebase form page.
This looks like it ought to be possible using JQuery and Sketch.js but I am running into an immediate issue of Ebase not rendering canvas tags.
Using the below code in a html file gives me a canvas with a border as expected, but adding this within a text control with html content ticked in Ebase shows nothing when run and just a small line in the designer.
<canvas></canvas>
Should this be possible and if so what am I doing wrong?
Edd
Drawing using canvas tag and JQuery
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 53
- Joined: Wed Jan 02, 2013 4:23 pm
- Location: Lyndhurst, Hampshire
- Contact:
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
I don't know much about the canvas tag but don't you have to give it some dimensions. I tried it like this and it seemed to work ok:
Code: Select all
<canvas id="myCanvas" width="200" height="100" style="border:1px solid #000000;">
Your browser does not support the HTML5 canvas tag.
</canvas>
0 x
-
- Ebase User
- Posts: 53
- Joined: Wed Jan 02, 2013 4:23 pm
- Location: Lyndhurst, Hampshire
- Contact:
Huh.
Something went wrong with my last post, the canvas tag I am using does have dimensions. Will try again with HTML disabled.
<canvas width="800" height="300" id="simple_sketch" style="border:1px solid #000000;"></canvas>
Edit: Tried your html Jon, all I see in Ebase is the "Your browser does not support the HTML5 canvas tag" text, no border and the dimensions are ignored. Using IE 11 and Ebase 4.5.4
Edit2: Works using Chrome. Some kind of an issue between Ebase and IE11?
Something went wrong with my last post, the canvas tag I am using does have dimensions. Will try again with HTML disabled.
<canvas width="800" height="300" id="simple_sketch" style="border:1px solid #000000;"></canvas>
Edit: Tried your html Jon, all I see in Ebase is the "Your browser does not support the HTML5 canvas tag" text, no border and the dimensions are ignored. Using IE 11 and Ebase 4.5.4
Edit2: Works using Chrome. Some kind of an issue between Ebase and IE11?
0 x
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
-
- Ebase User
- Posts: 53
- Joined: Wed Jan 02, 2013 4:23 pm
- Location: Lyndhurst, Hampshire
- Contact:
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
-
- Ebase User
- Posts: 53
- Joined: Wed Jan 02, 2013 4:23 pm
- Location: Lyndhurst, Hampshire
- Contact:
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
-
- Ebase User
- Posts: 53
- Joined: Wed Jan 02, 2013 4:23 pm
- Location: Lyndhurst, Hampshire
- Contact:
Who is online
Users browsing this forum: No registered users and 9 guests