Hi,
I have a weard js problem. For some reason i have a stack overflow.
It's a survey page, it's in dutch. I don't think it's about the questions.
But the same page, with other questions works fine, even more questions.
If i change a little thing like delete or add one random question the page works fine again.
Here is a example page that i build for this problem. The original page is renerated by php.
The error is generated when all js scripts is done.
Page is fully loaded.
It's a neasty one....
Using:
Windows XP (dutch)
Explorer 6.0.2800.1106 SP1
Stack overflow at line: 0
Moderator: General Moderators
- Vincent Puglia
- Forum Commoner
- Posts: 67
- Joined: Thu Sep 04, 2003 4:20 pm
- Location: where the World once stood
Hi,
There are numerous reasons for a stack overflow. In your case I would suspect some form of recursion. But, I really can't tell because of the language differences.
What do you mean by
something like:
There are numerous reasons for a stack overflow. In your case I would suspect some form of recursion. But, I really can't tell because of the language differences.
What do you mean by
Any rate, why aren't you putting these three lines in a function and then passing parameters? Doing so, will cut the number of lines and make debugging easier.change a little thing like delete or add one random question
Code: Select all
window.antwoordenї86]ї229] = 'Ja';
window.antwoordenї86]ї230] = 'Nee';
window.antwoordenї86]ї231] = 'Redelijk';Code: Select all
fillAntwoorden(86, 229)
function fillAntwoorden(cell1, cell2Start)
{
window.antwoorden[cell1][cell2Start++] = 'Ja';
window.antwoorden[cell1][cell2Start++] = 'Nee';
window.antwoorden[cell1][cell2Start] = 'Redelijk';
}
[\code]
Vinny- Vincent Puglia
- Forum Commoner
- Posts: 67
- Joined: Thu Sep 04, 2003 4:20 pm
- Location: where the World once stood
Whe have some pretty deep debugging.
And the script is genareted by PHP so the large array is not a problem of code 'neath'.
The problem repeated itself on a other page, that had a infinityloop.
And that page 'creashes', and won't compute any JScript.
This page, (see top) is still working. And all the javascript is still working.
And the script is genareted by PHP so the large array is not a problem of code 'neath'.
The problem repeated itself on a other page, that had a infinityloop.
And that page 'creashes', and won't compute any JScript.
This page, (see top) is still working. And all the javascript is still working.
- Vincent Puglia
- Forum Commoner
- Posts: 67
- Joined: Thu Sep 04, 2003 4:20 pm
- Location: where the World once stood
Hi,
Sorry, but I just returned from a trip and I'm still somewhat groggy and low on patience -- so, don't take the following personally.
And the point is? you are talking about a for (i) or do while (1) loop? That can usually crash any program if left to run without checks.
Vinny
Sorry, but I just returned from a trip and I'm still somewhat groggy and low on patience -- so, don't take the following personally.
What does this mean? That you can't see the purpose of writing stubs and alerting parms?Whe have some pretty deep debugging.
Again, what does this mean? That because PHP wrote the code, it cannot have written so much that the browser has run of space and begun storing data and code willynilly? I, for one, do not know the limits of browsers, but I have run across people whose apps crashed because of bloat.And the script is genareted by PHP so the large array is not a problem of code 'neath'
The problem repeated itself on a other page, that had a infinityloop.
And that page 'creashes', and won't compute any JScript.
And the point is? you are talking about a for (i) or do while (1) loop? That can usually crash any program if left to run without checks.
If it's working, then what is the problem?This page, (see top) is still working. And all the javascript is still working.
Vinny