IE “Stack overflow at line: 0” problem

This occurs in a website on the following html code

<a href="javascript:;" ondblclick="equandaFormActionLink( '/objectedit.edit.linklist.add' );">Add</a>

Of course it works just fine in firefox…
The problem is the caused by the javascript function which is called. It reads
function equandaFormActionLink( url )
{
    $( 'equandaFormActionLinkTarget' ).value = url;
    $( 'equandaFormActionLinkButton' ).click();
}

And it is that “click()” which causes the stack overflow. Apparently IE cannot handle this, the problem is solved by changing the script to
function equandaFormActionLink( url )
{
    $( 'equandaFormActionLinkTarget' ).value = url;
    $( 'equandaFormActionLinkButton' ).form.submit();
}

Woepie, no more stack overflow.

Leave a Reply

Your email address will not be published. Required fields are marked *

question razz sad evil exclaim smile redface biggrin surprised eek confused cool lol mad twisted rolleyes wink idea arrow neutral cry mrgreen

*