Alan
Alan

Reputation: 123

Raphael is not defined

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?

Upvotes: 2

Views: 16344

Answers (3)

UdayKiran Pulipati
UdayKiran Pulipati

Reputation: 6667

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.

Upvotes: 0

Christian Kahlau
Christian Kahlau

Reputation: 53

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 compatible with Raphael.

Removed Dojo from the page, used jQuery instead - everything fine.

Upvotes: 0

Alex
Alex

Reputation: 11245

It means that js/raphael/raphael.js is not valid path.

Upvotes: 1

Related Questions