Ciao a tutti.
Spulciando nel forum ho trovato uno script per modificare il testo di un div dalla madre al popup però non riesco a farlo funzionare.
Il codice è questo
Codice PHP:
<%
Response.Buffer=0
on error resume next
%>
<script language="javascript">
var w = 500;
var h = 180;
var l = Math.floor((screen.width-w)/2);
var t = Math.floor((screen.height-h)/2);
var myFloater = window.open('/ordini/ordini/fatture/progress_appaiamento.asp','progress_appaiamento','width=' + w + ',height=' + h + ',top=' + t + ',left=' + l);
function totale(tot_fatture) {
myFloater.document.getElementById("tutte").innerHTML = tot_fatture;
}
</script>
...
tot_fatture = Fatture.recordcount
%>
<script language="javascript">
totale(<%=tot_fatture%>)
</script>
però mi restituisce l'errore
myFloater.document.getElementById(...) is null or not an object
nessuno può farmi capire dove sbaglio?
Grazie