Could anybody please help me...
i have 2 diffrent js file
the 1st js file is Messages.js which includes all my variable messages that i'll be going to use for my internationalization:
var msg1en="are you sure...?";
var msg1ph="sigurado ka...?";
the 2nd js file is myFunct.js where i places all my scripts functions.
var curLang="en"; // This is actually dynamic according to the language
var str="msg1" + curLang;
confirm(eval(str)); // < --- Nothing happens here unless i placed the variable assignment inside this function; however i need to place it from a diffrent js file because it's very long.
Please help, i'm stocked on this