MozillaZine

Why this code can't run on Firefox?

Discuss how to use and promote Web standards with the Mozilla Gecko engine.
O.Mansournia
 
Posts: 2
Joined: December 15th, 2014, 12:48 am

Post Posted December 15th, 2014, 1:11 am

Hi,
I used asp.net and generate a page when I test my Page on Chrome and Opera or Internet Explorer this code works fine and navigate me to Destination but when I used Firefox to test my page can't run this code.
I have a link button on my Default page and when I click on this link button return to my default page again.

this is my Code:

<script type="text/javascript">
function ShowCurrentTime() {
$.ajax({
type: "POST",
url: "Default.aspx/GetCurrentTime",
data: '{name: "' + $("#<%=Describe.ClientID%>")[0].innerText + '" }',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: OnSuccess,
failure: function (response) {
alert(response.d);
}
});
}
function OnSuccess(response) {
window.location.href = "reader.aspx?News=" + response.d;
}
</script>

If you want to more info you can go to:
http://forums.asp.net/p/2024157/5827844.aspx?Re+Why+this+code+can+t+run+on+fireFox+

I installed last version of Firefox

Plz help me,THANKS

Return to Web Development / Standards Evangelism


Who is online

Users browsing this forum: No registered users and 1 guest