To run an example code

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!!

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.

if you type myDiagram into the console, does it return anything?

This is what I get:

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()">:

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.

Okay, hope your project goes well.