I am currently working on a Windows Server 2003 with IE 8.
My website functions well on Firefox and Google Chrome.
It also works fine on IE, except for one issue:
There is a certain link that, when clicked, shows an error on page
message in yellow at the bottom left of the page, but nothing changes on my website. The content remains the same.
Note
As of now, I am able to run JavaScript scripts on my IE browser.
The problematic link can be found below:
<ItemTemplate>
<a href="javascript:void(0);" onclick="LoadDetails('<%#Eval("CustomerID")%>','<%#Eval("Telephone")%>',this)">View Details</a>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
</asp:TemplateField>
Furthermore, here is the JavaScript code being used:
function LoadDetails(memberID, mediaValue, el) {
alert("asdfasdf")
var listview1ToHide = document.getElementById('ListView1');
listview1ToHide.style.display = 'none';
if (!$(el).hasClass('disabledLink')) {
$('#copyPhoneBtn').css('display', 'none');
$('.disabledLink').each(function () {
$(this).removeClass('disabledLink');
});
$(el).addClass('disabledLink');
$('#subView').load('SubView.aspx?CustomerId=' + memberID + "&MediaValue=" + mediaValue + "&rand=" + Math.random());
$("#newButtonContainer").css("height", "300px");
} else {
//alert('disabled..');
}
}
Please note that I am using ASP.NET.
Lastly, it is important to mention that the alert function is working correctly.