NS_ERROR_DOM_SECURITY_ERR in using canvas tag

I've found an incredible image processing library for JavaScript called "Pixastic". Of course I downloaded the code and tried it as a single HTML file in Firefox 3.5. Then, I just got the error NS_ERROR_DOM_SECURITY_ERR, which is an error thrown when you try to change some DOM information that is from another domain. So what's the problem while the image itself is exactly in the same place as the script?

Google just took me to, which is eventually a blog of the author of Pixastic. There are some comments in there mentioning my problem. The solution is that: you need to put the script and you "hello world" page for the script in a server. Therefore, Firefox won't complain about the security thing. I copied the codes to my localhost and it just works!

I would like to thank Jacob Seidelin for creating this great tool.

Subscribe to javascript