Salve,
ho un problema che non riesco proprio a risolvere
ho un javascript che non funziona
quando la pagina viene caricata viene fuori l'errore, ma essendo pagine saba non riesco a vedere il codice per capire dov'è
facendo varie prove posso dire con certezza che l'errore sta nel javascript, ma più precisamente non saprei dove
questo è lo script:
<script language="JavaScript">
<!--
// submits the form
function submitForm(functionChosen) {
var submit = true;
if (functionChosen == "tutor_jet")
{
document.theForm.ssp.value = "/ems/home/tutor.saba";
document.theForm.target = "main";
else if (functionChosen == "materiali_jet")
{
document.theForm.ssp.value = "/ems/home/materiali.saba";
document.theForm.target = "main";
}
else if (functionChosen == "plugIn")
{
document.theForm.ssp.value = "/ems/home/plug_in.saba";
document.theForm.target = "main";
}
else if (functionChosen == "faq")
{
document.theForm.ssp.value = "/ems/home/faq.saba";
document.theForm.target = "main";
}
else if (functionChosen == "materiali")
{
document.theForm.ssp.value = "/ems/home/materiali.saba";
document.theForm.target = "main";
}
else if (functionChosen == "home")
{
document.theForm.ssp.value = "/common/images/home.saba";
document.theForm.target = "main";
}
else
{
alert("Unrecognized action '" + functionChosen + "'");
submit = false;
} // end if
if ( submit == true)
{
document.theForm.submit();
}
} // end function
//-->
</script>
e questo è uno dei vari il link che lo richiama
href="javascript:submitForm('plugIn')"
_____
se qua non risolvo se mette male, per cui, se potete e non c'avete niente di meglio da fare, datemi una mano!
Vi ringrazio in anticipo!