my html code look like this
<script src="js/raphael/raphael.js"></script>
<script src="js/raphael/g.raphael.js"></script>
<script src="js/raphael/g.bar.js"></script>
But my developer tool says
Uncaught ReferenceError: Raphael is not defined g.raphael.js:7
Uncaught ReferenceError: Raphael is not defined g.bar.js:19
when i load the page and look at the developer console
I have offcourse downloaded all the files and placed them in the shown locations.
What am i doing wrong?
my html code look like this
<script src="js/raphael/raphael.js"></script>
<script src="js/raphael/g.raphael.js"></script>
<script src="js/raphael/g.bar.js"></script>
But my developer tool says
Uncaught ReferenceError: Raphael is not defined g.raphael.js:7
Uncaught ReferenceError: Raphael is not defined g.bar.js:19
when i load the page and look at the developer console
I have offcourse downloaded all the files and placed them in the shown locations.
What am i doing wrong?
Share Improve this question edited Jun 20, 2020 at 9:12 CommunityBot 11 silver badge asked Nov 19, 2013 at 12:44 AlanAlan 1332 gold badges2 silver badges12 bronze badges 3- Check your path again! – Dhaval Marthak Commented Nov 19, 2013 at 12:46
- Make sure raphael is there! – fox Commented Nov 19, 2013 at 12:48
- As you can see on the error code the first raphael.js doesnt generate an error. So it is found and loaded succesfully. And since the 2 other errors are a js error from within the js files, they are found too. – Alan Commented Nov 19, 2013 at 12:53
3 Answers
Reset to default 1It means that js/raphael/raphael.js
is not valid path.
Got the same problem with an XPages
approach under Domino Server
.
Found out that Dojo Toolkit
- which automatically gets added to every XPage - is not patible with Raphael
.
Removed Dojo
from the page, used jQuery
instead - everything fine.
Paste these files raphael.js
, g.raphael.js
, g.bar.js
where your html/jsp files reside.
You will get ride of ReferenceError: Raphael is not defined
this problem.