Bug Tracker

Ticket #6573 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

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

comment:1 Changed 4 years ago by addyosmani

  • need changed from Review to Test Case
  • Priority set to undecided
  • Status changed from new to closed
  • Resolution set to invalid

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.

Note: See TracTickets for help on using tickets.