javascript - Raphael is not defined - Stack Overflow

my html code look like this<script src="jsraphaelraphael.js"><script><scr

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744605094a4583417.html

相关推荐

  • javascript - Raphael is not defined - Stack Overflow

    my html code look like this<script src="jsraphaelraphael.js"><script><scr

    1天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信