最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Raphael is not defined - Stack Overflow

programmeradmin1浏览0评论

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
Add a ment  | 

3 Answers 3

Reset to default 1

It 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.

发布评论

评论列表(0)

  1. 暂无评论