Ticket #6573 (closed bug: invalid)
Error running at Firefox.
| Reported by: | kahhiung | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.4.3 |
| Component: | ajax | Version: | 1.4.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
I tested the jquery over the IE. It is working fine. But, when I run the same pieces of code at Firefox, then it will return an error message to me:
input is null if (input.d.IsError == true) {
The code are as follow:
$("a[class=edit_link]").click(function () {
var ID = $(this).attr("id");
var dataString = "\"ID\":\"" + ID + "\""
$.ajax({
type: "POST", url: " http://DMSDeveloper/eFICPSConverted/testLookupWebMethod.aspx/LoadRecordDetail", data: "{" + dataString + "}", contentType: "application/json; charset=utf-8", dataType: "json", success: function (input) {
if (input.d.IsError == true) {
alert(input.d.ErrMessage);
} else {
$("input[type=text][id=txtName]").val(input.d.Name); $("input[type=text][id=txtContact]").val(input.d.Contact);
$("div[id=TestLookup.aspx.Lookup]").hide(); $("div[id=TestLookup.aspx.Detail]").show();
$("input[type=text][id=txtID]").val(ID); $("input[type=text][id=txtType]").val("E");
$('label[class=error]').hide();
}
}, error: AjaxFailed
})
});
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Please re-submit your ticket with a valid test server URL so that we can establish whether this is an issue with the jQuery code supplied or with the output of your server-side code.
Thanks.