Ho capito, ma qualche MOD mi dovrà allora spostare nella sezione JAVASCRIPT
. Chiedo scusa in anticipo.
Sono riuscito a risolvere un apparente conflitto in una funzione, ora IE9 mi gestisce perfettamente gli eventi onclick. Il problema quindi rimane il campo <input name="upload" type="submit" value="Carica immagine" /> che al momento del submit mi apre la schermata di selezione file del file input compromettendo il medesimo.
Per completezza vi inserisco anche lo script js che sfrutta la pagina.
codice:
function deleteThumbs(){
$.ajax({
type: "POST",
url: "../Admin/delete.Preview.ajax.php",
success: function(response){
loadThumbs('');
},
error: function(){
alert("ERROR!");
}
});
}
function deleteImg(name,id){
$.ajax({
type: "POST",
data: ({dato : name}),
url: "../Admin/delete.Img.ajax.php",
success: function(response){
loadThumbs(id);
},
error: function(){
alert("ERROR!");
}
});
}
function loadThumbs(id){
$.ajax({
type: "POST",
url: "../Admin/load.Preview.ajax.php",
data: ({dato : id}),
success: function(response){
document.getElementById('thumbs').innerHTML=response;
},
error: function(){
alert("ERROR!");
}
});
}
function disconnetti(){
$.ajax({
type: "GET",
url: "../Admin/disconnetti.php",
success: function(response){
document.location.href="../Admin/Login.php"
}
});
}
function addThumbs(addr){
$.ajax({
type: "GET",
url: "../Admin/add.Preview.ajax.php",
data: ({dato : addr}),
success: function(response){
alert("Aggiunto con successo.");
loadThumbs();
},
error: function(){
alert("ERROR!");
}
});
}
function apriPopUp(url){
newwindow=window.open(url,'name','height=500,width=700,scrollbars=yes');
if (window.focus) {
newwindow.focus()
}
}
function editHouse(){
var sel=document.form_seleziona.seleziona_casa;
var val_sel=sel.options[sel.selectedIndex].value;
if(val_sel!="none"){
apriPopUp('/Admin/admin.php?mode=edit&k='+val_sel);
}else{
alert('Non hai selezionato alcuna casa.')
}
}
function deleteHouse(){
if (confirm("Sei sicuro di volerla eliminare?")){
var sel=document.form_seleziona.seleziona_casa;
var val_sel=sel.options[sel.selectedIndex].value;
if(val_sel!="none"){
$.ajax({
type: "POST",
url: "../Admin/delete.php",
data: ({selected : val_sel}),
dataType: "html",
success: function(nome) {
alert(nome);
window.location.href="Gestione.php";
},
error: function(){
alert("ERROR!");
}
});
}else{
alert('Non hai selezionato alcuna casa.')
}
}
}
Grazie in anticipo.