Ciao.
E' possibile che questa funzione javascript funzioni correttamente sul mio pc locale (localhost), funzioni correttamente sul vecchio server dove stavo in hosting e non funzioni più sul nuovo server dove il provider mi ha spostato?
Ho fatto centinaia di prove e lato server non ci sono problemi, mi viene il dubbio che sia questa funzione javascript che per qualche motivo che non so ha smesso di funzionare sul nuovo server?
Prima di contattare il provider, vorrei sapere la vs. opinione di esperti, grazie-
codice:function callServer() { // use the dom2 to find 'loadScript' in the head tag var head = document.getElementsByTagName('head').item(0); var scriptTag = document.getElementById('loadScript'); // if 'loadScript' already exists - remove it if (scriptTag) head.removeChild(scriptTag); // create a new element by the name of script script = document.createElement('script'); //alert(CTime); // set the new scripts properties script.src = 'getusers.asp'; script.type = 'text/javascript'; script.id = 'loadScript'; // move the element script into the head head.appendChild(script); } setInterval(callServer, 5000);

Rispondi quotando
