Click to See Complete Forum and Search --> : Not implement error


anandedward
January 5th, 2008, 05:09 AM
hi
i have face the problem in javascript "Not implement error" these error will be occur follwing coe and pointout the line wher the probelm occur, and how solve these problem

var ajax = new Object();
ajax = false;

var tl = new Array("....","....","....","....","....");
var count=0;
var x = 0;
var pos = 0;
var l = tl[0].length;
//alert(l);
var timerid;


function startProgress(){

ajax = true;

window.onload=textticker(); //"Not implemented error occur here only "
showProgress();


}

function showProgress() {
if(ajax == true){
textticker();

}
}
function GetIndex1() {
if(count==5){
//alert("1");
count=0;
return 0;
}
else {
//alert("2");
return count++;
}
}


function textticker()
{


var obj=document.getElementById("loadingDiv");

obj.innerText="Please Wait"+tl[GetIndex1()].substring(0, pos);

//alert(pos++);
if(pos++ == l) {
pos = 0;
timerid=setTimeout("textticker()", 200);
//alert(++x);

}
else{
timerid=setTimeout("textticker()", 500);
}

}


function haltCounter()
{
clearTimeout(timerid);

}
document.onstop = haltCounter;

wildfrog
January 5th, 2008, 10:13 AM
What your code sais is to use whatever returned from textticker as an event handler.

If you want to use the textticker function itself as handler for the onload function, try:
window.onload=textticker;
- petter

anandedward
January 6th, 2008, 11:36 PM
hi

i will try these
window.onloade=textticker;

what happen the "Please wait...." the dot is not loaded but "not implemented " error is not came .

i will try onther one is

window.textticker();

but what happen when ever stop IE browser the "please wait ....." the dot loading stoped secod time ,

what is solution these problem pls help me...........