Halt an Activex execution from Javascript by timeout

didoubertox

New Member
Hi I want to stop the execution of a Activex if the activex dont answer in X seconds.Something like that\[code\]Function getData(){ myActivex=document.getElementById("IdActivex"); var myTimeout=30000; tryfor(myTimeout){ data=http://stackoverflow.com/questions/8838771/myActivex.getData(); } catch(e){ alert("The Activex never answered"); return -1; } return data; }\[/code\]Exists something like this in JavaScript?Thanks in Advance
 
Top