TypeError: theForm.submit is not a function with asp: LoginStatus

I found one similar problem here , but I'm not sure how to apply it here, or if it is possible.

the problem is that the asp: LoginStatus button does nothing; I can not log out.

javascript error:

TypeError: theForm.submit is not a function
theForm.submit();

which comes from the script that asp.net introduces:

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['ctl01'];
if (!theForm) {
    theForm = document.ctl01;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>

I watched __doPostBack. eventArgument does not get a value. not sure if this is a real problem.

eventTarget   : "ctl00$HeadLoginView$HeadLoginStatus$ctl00"
eventArgument : ""

any ideas as to why the asp: LoginStatus button does nothing?

+4
source share
1 answer

sry to bother you with all this. two days later I just realized the problem: I put the Paypal button on the page along with the PayPal image.

<img src='https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif' id="submit" alt='Donate' />

/ paypal, , id = "submit" . .

+4

All Articles