Hi All, in onload of case entity I am using following code it works only for one iteration after that at the lower right corner of IE it shows error on page after that no help.
Please help...
var milisec=0 var seconds=30 document.getElementById('leftNavBreadcrumbText').innerHTML+="<div id='counter' style='float:right; margin-top:-20px; color: red;'>30</div>"; function display() { if (milisec<=0) { milisec=9 ; seconds-=1 ; } if (seconds<=-1) { milisec=0 ; seconds+=1 ; } else milisec-=1; document.getElementById('counter').innerHTML=seconds+"."+milisec;
if (seconds+"."+milisec=="0.0") { crmForm.Save(); } else {
Could you please debug it using javascript debugger, in order to detect which particular line causing the issue
I suspect that when the timeout is expired, and this page is trying to call the display() method, it cannot find the reference to the display() method. The possible cause of the issue, is because the page has been rendered totally and there is no way for this particular page to refer back to find the display() method
hope this helps,
hadi teo.
Marked as answer byDonna EdwardsMVPMonday, July 20, 2009 6:40 PM