report issue: Contact page has javascript error when submit

Topics: Controls
Jan 5, 2016 at 3:11 AM
steps to reproduce the error:
1, fill out the contact form,
2, click send.
if you use IE browser, the browser will pop up a javascriipt error, also, you will find that the logo image can not display.
javascript error details:
Line: 14 in /scripts/contact.js
Error: Unable to get property 'value' of undefined or null reference
Jan 30, 2016 at 10:25 PM
I have the same type of problem with the Contact page in IE 11 but not in Edge, Chrome, or Firefox. The message is:

Unhandled exception at line 14, column 5 in http://localhost:xxxx/Scripts/contact.js

and the line of code is:
var name = BlogEngine.$('<%=txtName.ClientID %>').value;
If I view the source code at run time the Name field appears to have a proper value.
Jan 31, 2016 at 4:08 PM
I fixed this by changing /contact.aspx :

line 38 , delete:
<asp:button runat="server" id="btnSend" class="btn btn-primary" Text="<%$Resources:labels, send %>" OnClientClick="return beginSendMessage();" validationgroup="contact" />

add line 38
<asp:button runat="server" id="btnSend" class="btn btn-primary" Text="<%$Resources:labels, send %>" OnClientClick="" validationgroup="contact" />

looks like the call to beginSendMessage() is not needed, but I am not sure.
Jan 31, 2016 at 7:56 PM
Hi robinliug,

That change works for me also. Maybe a coordinator can let us know if this change could have any ill effects. Thanks for letting know!