2
I have a function that should be called, but its name is mounted dynamically, based on a variable that will come as parameter.
Follow the functions as an example. The first one is called and takes the name of the program. Call the second passing the name, which should call the third if necessary.
// Primeira
function CarregarPrograma(){
// Códigos.....
sPrg = $("div#id_prg").attr("data-programa");
FuncaoEspecifica(sPrg);
}
// Segunda
function FuncaoEspecifica(prg){
if ($("div#" + prg).attr("data-inicio") == "1"){
Inicio_ (valor que vier no parãmetro) ;
}
}
// Terceira que deve ser chamada da segunda.
function Inicio_admcad00002(){
// Código a ser executado...
}
I deleted my answer because yours is better.
– Victor Stafusa
Thanks Estevao, it worked here!
– Rodrigo Tognin