tewson's thoughtstream

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

Primary links

  • home
  • films
  • free software
  • about

Recent Posts

  • ความบิดเบือนจากสำนวนแปลบางข่าวของมติชน
  • ใครบอกว่าอะไรที่ปรากฏอยู่บนอินเทอร์เน็ตแล้วจะไม่หายไป
  • การ retweet อย่างฉลาด (ถ้าจะ retweet คุยกันให้ได้น่ะนะ!)
  • เสียงรบกวนจากงานเลี้ยงในมหาวิทยาลัยธรรมศาสตร์ รังสิต
  • ทำดีได้ดีมีที่ไหน ทำชั่วได้ดีมีถมไป

Tags in Tags

announcement bacc bangkok 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

  • เห็นด้วยอย่างยิ่งครับ ผมเจออย
    1 week 2 days ago
  • good observation! BTW, even
    1 week 5 days ago
  • ตรงนอกเรื่องบรรทัดสุดท้ายนั่น
    1 week 5 days ago
  • นสพ.ไทยเคยแปลข่าวถูกด้วยเหรอ
    1 week 6 days ago
  • Thanks for this. I spent 2
    1 week 6 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