__doPostBack in Chrome

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 years ago
The ASP __doPostBack method doesn't seem to be sent to Chrome 30.0.1588.0 pages (at least on the profile page).

For example

1. Go to https://www.nopcommerce.com/profile.aspx?userid=55538
2. Click on Latest Posts
3. Click on Page 2 at the bottom. Nothing happens.
4. Open the Javascript Console, and you'll see "Uncaught ReferenceError: __doPostBack is not defined"

I repeated the steps in IE10, Firefox 23.0, Safari 5.1.7, and Opera 15.0 and it works fine. I also tried this in Chrome's Incognito mode with all plug-ins disabled to ensure that it wasn't an extension blocking something.

Comparing the HTML from IE and Chrome, most notably, Chrome is missing this:

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


Browsecap issue, maybe?


Similarly, on this page: https://www.nopcommerce.com/versions/27/nopcommerce-300.aspx

Changing the “filter by category” doesn’t initiate a postback, but this time it doesn’t give a JS error.



Related?
https://www.nopcommerce.com/boards/t/21474/ie-10-compatibility-issues.aspx

Which references:
http://www.hanselman.com/blog/BugAndFixASPNETFailsToDetectIE10CausingDoPostBackIsUndefinedJavaScriptErrorOrMaintainFF5ScrollbarPosition.aspx
10 years ago
Please see this forum topic
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.