tewson's thoughtstream

ห้วงหนึ่งของความเกรียน

Primary links

  • home
  • films
  • free software
  • about

Recent Posts

  • ภาษาไทยที่บกพร่อง ต้องแก้ไข
  • ห้ามข้าม
  • ทบทวนวรรณกรรม
  • The Only Good To-Do List Is A Written One
  • ความบิดเบือนจากสำนวนแปลบางข่าวของมติชน

Tags in Tags

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

Stay Tuned

Subscribe

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.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Recent comments

  • Hi! I read your post and
    2 days 6 hours ago
  • มีแลกหนังสือด้วย เท่ว่ะ !
    4 days 7 hours ago
  • แล้วแต่รสนิยม ?
    6 days 8 hours ago
  • the way you translate the
    1 week 3 days ago
  • Thanks a lot.
    1 week 3 days ago
more
Powered by Drupal, an open source content management system

Creative Commons License

This work by http://tewson.com is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
RoopleTheme