jrburke/requirejs — Issue #190: text! plugin works offline only in Firefox and Safari
Author: Serpenthelm
Created: 2012-02-22 22:15:48+00:00
State: open

I need to load some external templates and have them work offline.

The text! plugin works offline only in Firefox and Safari.

This is my code

```html

Example Application

Example Application

```

```javascript
// main.js
require.config({
paths: {
text: 'text'
}
});

require(["text!textFile.txt"], function(t) {
alert(t);
console.log("asd"+t);
});
```

textFile.txt has just word inside it

Firefox 10 and Safari correctly display the alert with the content of the file.

Chrome 17 and Opera 11.61 display an empty alert.

Internet Explorer 9 displays a prompt asking to allow ActiveX content,
but when given confirm doesn't show any alert at all.
There's an error in the Console, here it is, translated:

SCRIPT5: Access denied.
text.js, Line 27 Character 17