Hi guys
Im having problems with one of my JScripts to support Firefox (works fine in IE)
So...
Help me plz? I know that i must use document.getEle mentById but i dont know how to use it properly...
Im having problems with one of my JScripts to support Firefox (works fine in IE)
So...
Code:
function submitItOrder( sForm,sOrder )
{
// Coloca o comando no hide
if ( document.all )
{
idForm = eval( "document.all." + sForm );
if ( sOrder != "" )
{
idForm.cmd.value = "PgInicio";
idForm.pag.value = 0;
idForm.idOrder.value = sOrder;
idForm.lintot.value = 0;
}
idForm.submit();
}
else if ( document.getElementById && !document.all )
alert( 'Navegador: Firefox' );
}
function submitItTRANF(sForm,sCmd,sPag,sOrder,sLintot )
{
// Coloca o comando no hide
if ( document.all )
{
idForm = eval( "document.all." + sForm );
if ( sCmd != "" )
{
idForm.cmd.value = sCmd;
idForm.pag.value = sPag;
idForm.idOrder.value = sOrder;
idForm.lintot.value = sLintot;
}
idForm.submit();
}
else
alert( 'Referencia inválida: ' + sForm );
}
Comment