473,405 Members | 2,349 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

javascript undefined error message


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
2 9035
<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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Derek Richards | last post by:
In VbScript, when you have a method, you do ..Method A, B, C, D. If you would take some default values, you do ..Method A,,,D My question is that how you can do this in JavaScript ..Method(???)...
72
by: Stephen Poley | last post by:
I have quite often (as have probably many of you) come across HTML forms with irritating bits of Javascript attached. The last straw on this particular camel's back was a large form I was asked to...
6
by: Alex Rast | last post by:
First of all, this is not a programming question. I'm a user, not programming in JavaScript. I'm not, however, a novice user or even a power user - I certainly know programming intimately as well...
22
by: VK | last post by:
A while ago I proposed to update info in the group FAQ section, but I dropped the discussion using the approach "No matter what color the cat is as long as it still hounts the mice". Over the last...
8
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
2
by: joelkeepup | last post by:
Hi, I made a change this morning and now im getting an error that says either "a is undefined or null" or "e is undefined or null" the microsoft ajax line is below, I have no idea how to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.