javascript - IE8 - "is null or not an object" error -
i have html:
<td style="vertical-align: bottom;"><div id="resultcount">n.v.</div></td>
and javascript:
function processresultcount(data) { $("#resultcount").html(formatnumber(data.resultcount, ".")); $("#resultcount2").html(formatnumber(data.resultcount, ".")); (property in data) { var value = data[property]; $("#" + property).html(formatnumber(value, ".")); } function formatnumber(nstr, delimiter) { nstr += ''; x = nstr.split('.'); x1 = x[0]; x2 = x.length > 1 ? '.' + x[1] : ''; var rgx = /(\d+)(\d{3})/; ..... ......
in ie8, error: "resultcount null or not object"
i call function processresultcount here:
var jsonformoptions = { // datatype identifies expected content type of server response datatype: 'json', // success identifies function invoke when server response // has been received success: processresultcount(), error: handleresultcounterror, // overridden in setupextsearchformbindings() url: jsonformurl, type: 'get' }
Comments
Post a Comment