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