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

  • เพิ่งรู้วิธีนี้ครับ
    2 days 9 hours ago
  • เอ่ออออ
    3 days 37 min ago
  • หง่ะ ซะงั้น - -
    3 days 9 hours ago
  • สมทบทุนมูลนิธิยามเฝ้าแผ่นดิน
    3 days 9 hours ago
  • ข้อตกลงของชมรมผู้ผลิตข่าวออนไ
    5 days 6 hours ago
more

RoopleTheme

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