-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem in IE8 on local files (without server) #11
Comments
gotcha. will investigate. |
this should be fixed now. |
Yes, it's working now, thank you. There is, however, still one inconsistency - when script file doesn't exists (and is not empty ""): $script("test", function() {
alert("Shows only in IE8");
});
/*$script("test");
$script("test", function() {
alert("Shows everywhere");
});*/ |
this was fixed :) aa7d59e |
Recently tested (results below). Some thoughts: -------------- Tests: // +ie8 / with existing file -chrome
/*$script("", function() {
$script("test", function() {
alert("test");
});
});
// as above
$script("test", function() {
$script("", function() {
alert("test");
});
});*/
// -------------------------------------------
// -FF4 / +all
/*$script("test", function() {
$script("test", function() {
alert("test");
});
});*/
//2. -FF4 / +all
/*$script("test", "test");
$script.ready("test", function() {
alert("test");
});
*/
// -FF4 / +all
/*$script("test", function() {
alert("test");
});*/
//---------------------------------------
//1. -chrome
/*$script("", function() {
$script("", function() {
alert("test");
});
});
// -chrome
$script("", "test");
$script.ready("test", function() {
alert("test");
});
//3. -chrome
/*$script("", function() {
alert("test");
});*/ |
Local html file (runs without server, by drag & drop to browser; not tested with server)
<script type="text/javascript" src="script.min.ban.js" charset="iso-8859-1"></script>script.min included in head (compressed with bananascript; also tested with script.js)
Test script in body (if with filename results are the same), tested in IE8, Chromium 12.0.730.0 (80877), Firefox 4
Results:
IE8-
Chr+
FF4+
If I add $script(""); before test cases, it works in all browsers.
Test cases (used separately, not all at once):
(function() {
//1.
$script("", function() {
$script("", function() {
alert("test");
});
});
//2.
$script("test", "test");
$script.ready("test", function() {
alert("test");
});
//3.
$script("", function() {
alert("test");
});
})();
Update (not related to issue):
Possible feature to add (if it is possible in JavaScript): don't execute if error occured during loading script file (missing file for example).
The text was updated successfully, but these errors were encountered: