By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,706 Members | 1,279 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,706 IT Pros & Developers. It's quick & easy.

javascript undefined error message

P: n/a

i am fairly unfamilar with javascript...i get the following error
message on the below code...can anyone tell me how to remove the
error.
'iLoopCounter' is undefined

Thanks...
----------------------------------------------
<script>
function BeginPageLoad()
{
location.href = "<%= Request.QueryString("Page")%>";
iIntervalId =
window.setInterval("iLoopCounter=UpdateProgress(iL oopCounter,
iMaxLoop)", 500);
}

function EndPageLoad()
{
window.clearInterval(iIntervalId);
Progress.innerText = "Page Loaded -- Not Transferring";
}
</script>

Feb 2 '07 #1
Share this Question
Share on Google+
2 Replies

P: n/a
<ki********@hotmail.comwrote in message
news:11*********************@s48g2000cws.googlegro ups.com...
>
i am fairly unfamilar with javascript...i get the following error
message on the below code...can anyone tell me how to remove the
error.

'iLoopCounter' is undefined
I am surprised this is your only error, but defining iLoopCounter will solve *that*
problem. If it is numeric I would set it to 0, if text I would set it to '', or if you
require a null value set it to null.
<script>
function BeginPageLoad()
{
location.href = "<%= Request.QueryString("Page")%>";
That will not work unless you escape your double quotes.
iIntervalId =
window.setInterval("iLoopCounter=UpdateProgress(iL oopCounter,
iMaxLoop)", 500);
}
Another error might be that UpdateProgress is not defined.
function EndPageLoad()
{
window.clearInterval(iIntervalId);
Progress.innerText = "Page Loaded -- Not Transferring";
}
</script>
-Lost
Feb 2 '07 #2

P: n/a
On Feb 2, 4:43 pm, kieran5...@hotmail.com wrote:
i am fairly unfamilar with javascript...i get the following error
message on the below code...can anyone tell me how to remove the
error.

'iLoopCounter' is undefined

Thanks...

----------------------------------------------

<script>
function BeginPageLoad()
{
location.href = "<%= Request.QueryString("Page")%>";
iIntervalId =
window.setInterval("iLoopCounter=UpdateProgress(iL oopCounter,
iMaxLoop)", 500);

}

function EndPageLoad()
{
window.clearInterval(iIntervalId);
Progress.innerText = "Page Loaded -- Not Transferring";}

</script>
Actaully ur setting a counter so u have to declare it some value
probably as iLoopCounter=0
this ll solve ur problem

Feb 3 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.