davidpadua
12/3/2013 - 1:14 AM

GetExternal js file data

GetExternal js file data

//::::get external js file 
$.getScript("js/externalFile.js", function(){

  var content = sym.$("id_of_some_div");
  //variableOnJSFile >> thsi variable is on js file like this: var variableOnJSFile = "some shit";
  content.html(variableOnJSFile); 
  //do something else example
	//hide the page buttons
	sym.$("goToPage_buttons").css("display", "none");
	//hide the page buttons line
	sym.$("textoVozOff_bottom_linetop").css("display", "none");
	
	//etc, etc, etc

});