noscript conflicting with our javascript library

Ask for help about NoScript, no registration needed to post
karger
Posts: 4
Joined: Fri Aug 28, 2009 2:14 am

noscript conflicting with our javascript library

Post by karger »

We distribute a javascript library for data visualization. I have discovered that it conflict with noscript. For example, the page at http://eneumann.org/exhibit/chembank_demo/ which uses our library fails to operate correctly in browsers with noscript installed. Executing on this page, our library attempts to load a file from http://service.simile-widgets.org/babel ... lbacks.cb1 that is blocked by noscript with the following message:
[NoScript] Blocking cross site Javascript served from http://service.simile-widgets.org/babel ... lbacks.cb1 with wrong type info application/jsonp and included by http://eneumann.org/exhibit/chembank_demo/

I would appreciate information about what is going wrong and whether there is anything we can do to fix it.

thanks
David
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 ( .NET CLR 3.5.30729)
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: noscript conflicting with our javascript library

Post by al_9x »

This thread should help.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: noscript conflicting with our javascript library

Post by Giorgio Maone »

Please serve the JSNOP content as "application/javascript" (more correct, since that it is) or "application/json".
"application/jsonp" does NOT appear to be a IANA-sanctioned mime type, however I'll recognize it in next NoScript release for compatibility with stuff like yours.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
Post Reply