Hi guys! I have just begun with GoJs to my project class. I have decided to use TableLayout so I have my HTML’s file:
and then, my JavaScript’s file (ej2.js) has the code that has website:
but if I access from my navigator to HTML file I only get:
Could someone help me?
Thanks!!
jhardy
June 12, 2017, 1:48pm
2
You haven’t provided enough information for us to help. Are there any errors in the developer console (F12)?
No, I don’t get any error, but it doesn’t show me nothing, only the image that I put at the end. And I can’t understand why copying the same code that has website about TableLayout, I don’t get the same result.
jhardy
June 12, 2017, 3:29pm
4
if you type myDiagram
into the console, does it return anything?
jhardy
June 12, 2017, 3:48pm
6
Ahh, now I see that you aren’t calling your init function. You need <body onload="init()">
.
Now, I get this error after putting <body onload="init()">
:
simon
June 12, 2017, 3:55pm
8
If you’re using the TableLayout, which is an extension file, you’ll need to have a copy of that file and reference it.
If you look at: Table Layout
You’ll see that it has:
<script src="../release/go.js"></script>
<script src="TableLayout.js"></script>
It is including: http://gojs.net/latest/extensions/TableLayout.js
You’ll need to include that file too.
Just curious, if this is for a class, is the whole class using GoJS, or just you?
Oh, thank you so so much!!!
I am using for my final project of degree, so I only use it me.
simon
June 12, 2017, 4:31pm
10
Okay, hope your project goes well.