Non ho capito bene qual'è il secondo problema: :master:
potresti mettere nel form un campo hidden, esempio:
codice:
<input type="hidden" name="tipoForm">
nella pagina con i due bottoni:
codice:
<input type="button" value="Aggiorna" name="Aggiorna" onclick="inviaForm(this.value)">
<input type="button" value="Svuota" name="Svuota" onclick="inviaForm(this.value)">
e nella funzione che fà l'invio del form, passare il valore:
codice:
function inviaForm(val){
if(document.all){
self.iFrame.document.form.submit();
self.iFrame.document.form.tipoForm.value = val;
}else if(document.getElementById){
document.getElementById('ListSol').contentDocument.form.submit();
document.getElementById('ListSol').contentDocument.form.tipoForm.value = val;
}
}