Hi!!.
Why don't work when I moved isomorphic declaration from html script to a js file.
Standard declaration.
================
My new version.
mainFunction.js
============
My main Page
===========
Any clue???.... THANKS.
Why don't work when I moved isomorphic declaration from html script to a js file.
Standard declaration.
================
Code:
<HTML> <HEAD> <TITLE>MY APP</TITLE> <SCRIPT SRC=var isomorphicDir="isomorphic/;"></SCRIPT> <SCRIPT>var isomorphicDir="isomorphic/";</SCRIPT> <SCRIPT SRC=isomorphic/system/modules/ISC_History.js></SCRIPT> <SCRIPT SRC=isomorphic/system/modules/ISC_Core.js></SCRIPT> <SCRIPT SRC=isomorphic/system/modules/ISC_Foundation.js></SCRIPT> <SCRIPT SRC=isomorphic/system/modules/ISC_Containers.js></SCRIPT> <SCRIPT SRC=isomorphic/system/modules/ISC_Grids.js></SCRIPT> <SCRIPT SRC=isomorphic/system/modules/ISC_Forms.js></SCRIPT> <SCRIPT SRC=isomorphic/system/modules/ISC_DataBinding.js></SCRIPT> <SCRIPT SRC=isomorphic/skins/SmartClient/load_skin.js></SCRIPT> </HEAD> <BODY> MY BODE CODE.... <BODY> </HTML>
My new version.
mainFunction.js
============
Code:
var isomorphicDir="isomorphic/"; function addAll (mFile) { var myFile = document.createElement("script"); myFile.src= mFile; document.body.appendChild(myFile); }; addAll("isomorphic/system/modules/ISC_History.js"; addAll("isomorphic/system/modules/ISC_Core.js"; addAll("isomorphic/system/modules/ISC_Foundation.js"; addAll("isomorphic/system/modules/ISC_Containers.js"; addAll("isomorphic/system/modules/ISC_Grids.js"; addAll("isomorphic/system/modules/ISC_Forms.js"; addAll("isomorphic/system/modules/ISC_DataBinding.js"; addAll("isomorphic/skins/SmartClient/load_skin.js";
===========
Code:
<HTML> <HEAD> <TITLE>MY APP</TITLE> <HEAD> <BODY> MY BODE CODE.... <BODY> <SCRIPT SRC="mainFunction.js"></SCRIPT> </BODY> </HTML>