Skip to content Skip to sidebar Skip to footer

Hello World Does Not Work Properly In Html With Jointjs?

I am a beginner in html and the joint.js library. I have this code and once I saved it as html on my laptop, it is suppose to draw 2 connected rectangles but nothing appears in the

Solution 1:

Note that you don't need the following two files in your example:

<scriptsrc="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" ></script><scriptsrc= "http://denknix.com/astro/lib/joint/www/build/joint.all.min.js"></script>

This is because jQuery is already included in joint.js and the other joint.all.min.js is a very old version of JointJS (0.4).

You only need the other two files that you have correctly included:

<link rel="stylesheet"type="text/css" href="http://www.jointjs.com/downloads/joint.css" />
<script type="text/javascript" src="http://www.jointjs.com/downloads/joint.js" ></script>

The problem must lie in how you reference those files once download them to your computer.

Post a Comment for "Hello World Does Not Work Properly In Html With Jointjs?"