Disbeliever

I was uncool before uncool was cool.

Primary links

  • home
  • about

Recent Posts

  • มติชนออนไลน์ ลอก Siam Intelligence Unit?
  • การใช้เว็บไซต์เครือข่ายสังคมช่วยการสืบสวนสอบสวน: ตัวอย่างจากสหรัฐฯ
  • พระเจ้าปายาสิผู้ไม่เชื่อในโลกหน้า
  • แค่ชายตามอง
  • โบ๊กเกี้ย

Tags in Tags

announcement bangkok film lecture life poetry politics tcdc tech thought travel university
more tags

Stay Tuned

Subscribe

javascript

NS_ERROR_DOM_SECURITY_ERR in using canvas tag

Submitted by tewson on Thu, 03/09/2009 - 17:03
  • image processing
  • intellect
  • javascript
  • tech

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 http://www.nihilogic.dk, 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.

  • Add new comment

Recent comments

  • กร๊าก
    14 hours 40 min ago
  • เว็บข่าวออนไลน์นี่ หน้าด้าน
    1 day 11 min ago
  • ควรแคปหน้าจอไว้ด้วย
    1 day 12 hours ago
  • เยี่ยมเลย เิริ่มเข้าใจว่า
    3 days 14 hours ago
  • I'm trying to install Android
    1 week 8 hours ago
more

RoopleTheme

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Thailand License.