Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Learning FAIL

$
0
0

@brotherbill wrote:

On your web page: Get Started with GoJS, I created index.html as`




GoJS Greetings

<script src="https://cdnjs.cloudflare.com/ajax/libs/gojs/1.6.15/go-debug.js"></script>
<script src="greetings.js"></script>



<div id="myDiagramDiv"
style="width:400px; height:150px; background-color: #DAE4E4;">


`

and greetings.js as
var $ = go.GraphObject.make;
var myDiagram = $(go.Diagram, "myDiagramDiv");

When it runs, it throws an: "Uncaught Error: Invalid DIV id; could not get element with id: myDiagramDiv"

This is not a good start. Please advise so I can follow your tutorial.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles