Opened 13 years ago
Closed 12 years ago
#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: | ||
Blocked by: | Blocking: |
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 (1)
comment:1 Changed 12 years ago by
need: | Review → Test Case |
---|---|
Priority: | → undecided |
Resolution: | → invalid |
Status: | new → closed |
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.