Response title
This is preview!
I am having a weird problem when trying to load an external JS file in a page which is loaded using $.mobile.changepage().
|_ /html
| |_ conflist.html
| |_ newpage.html
|_ /common
| |_ jquery-1.7.2.min.js
| |_ jquery.mobile-1.2.0.min.js
| |_ jquery.mobile-1.2.0.min.css
|_ /platform
|_ dummy.js
Here are the codes for conflist.html and newpage.html.
var Dummy = function () { };
Dummy.prototype.toString = function (param) {
console.log("String representation of 'Dummy', got param: " + param);
};
console.log("Loaded dummy.js");
Wondering, why do I see this behavior? Why isn't the external js file loaded when it is placed in another folder and the relative path is given? Or am I missing something else?
© 2013 jQuery Foundation
Sponsored by and others.