This project is read-only.

JScript error breaking contact page

May 23, 2014 at 9:22 PM
I just installed v2.9. Its looking very good. I found an issue while on the contact page. It seems to be due to a javascript file that gets embedded from

There is an AXD file that gets generated. This file has an error in it. Dev tools in the browser states:
Uncaught SyntaxError: Unexpected token function

This leads to another error:
Uncaught ReferenceError: WebForm_InitCallback is not defined

All of these errors cause the contact page to be broken (cannot send email)

I tried this on a couple sites:

I'm using Win 8.1, running chrome and IE11. I was also able to reproduce this on Win 8 with IE10.

Specifically, it doesn't seem to like the following JavaScript:
if (window.jQuery)(function ($) {
    // other stuff here that I cut out
The code above is defined right above the WebForm_FindFirstFocusableChild definition.
May 25, 2014 at 3:59 AM
And I was wandering why quite time with emails lately :) Will have to check this out with latest code.
Jul 2, 2014 at 4:45 PM
Someone actually managed to send me an email via my contact page, even though its been broken for over a month. I'm not sure if this will help you or not, but their user agent string was:

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0

I also see that rtur has managed to fix the problem on his site. Can you give us some tips? :)
Jul 2, 2014 at 6:49 PM
I think I disabled "Compress WebResource.axd" in advanced settings and error went away.
Jul 2, 2014 at 7:45 PM
Thx. That fixed it.