I find this answer to my problem How to include js file in another js file? but when run my application the resource not be found... I try to use
var x = document.createElement('script');
x.src = '../apps/appChangePwd/initApp.js';
document.getElementsByTagName("head")[0].appendChild(x);
and
$.getScript('../apps/appChangePwd/initApp.js', function()
{
alert("okkk!!!");
});
in the first case
returns http://localhost:8080/apps/appChangePwd/initApp.js 404 (Not Found)
in the second
http://localhost:8080/apps/appChangePwd/initApp.js?_=1404291135662 404 (Not Found)
but my js file is in the correct path: apps/appChangePwd/
!!!