allora ho provato a fare questo script
Ho creato un file Service.asmx associato a Service.cscodice:<script language="javascript" type="text/javascript"> var Interval = 5000; var autorefreshstarted = 0; function pageLoad(sender, e) { startload(); } function startload() { if (autorefreshstarted == 0) { window.setInterval('DoRefresh()', Interval); } autorefreshstarted = 1; return true; } function DoRefresh() { Service.ListaAllarmi_FO(); } </script>
dove sulla DoRefresh() richiamo una funzione situata al suo interno, Visual Studio restituisce il seguente errore: Microsoft JScript runtime error: 'Service' is undefined.
Che cosa sbaglio?

Rispondi quotando