I have very simple RequireJs code that extracts an html file with simple html. It works fine in Firefox 8.0, however in my version of Chrome (17.0.9.xxx) I get the following error:
Cross-start requests are only supported for HTTP.
Maybe this is just a problem with this build of Chrome or a text plugin in general?
define([
'jquery',
'backbone',
'text!templates/home/listOfStuff.html'
], function ($, Backbone, mainTemplate) {
var mainView = Backbone.View.extend({
el: $('#list'),
render: function () {
this.el.html(mainTemplate);
}
});
return new mainView;
});
When trying to retrieve an html file, an error occurs.
source
share