javascript - IE 11 ajax error - "SCRIPT65535: Argument not optional" -
javascript - IE 11 ajax error - "SCRIPT65535: Argument not optional" -
the code below works in every browser except ie, next error message "script65535: argument not optional"
.
function _getchart(){ $('.series-data').remove(); var itm = window.item; var tp = window.type; var ord = window.order; var xd = window.xdata; var yd = window.ydata; var dt = {superawesometypenotievar : tp, superawesomeitemnotievar : itm, superawesomeordernotievar : ord, superawesomexdatanotievar : xd, superawesomeydatanotievar : yd, superawesomecharheightnotievar : $('.charts-wrapper').height()}; $.ajax({ url: "ajax/data.php", cache: false, data: dt, datatype: "json", success: function(data) { // fcs
as can see tried renaming parameters ie not using (e.g. removefilter story).
this function looked originally
function _getchart(){ $('.series-data').remove(); $.getjson('ajax/data.php', { type : window.type, item : window.item, order: window.order, xdata : window.kurtosis, ydata : window.range, chartheight : $('.charts-wrapper').height()}, function(data) {
if set dt
array {}
works, otherwise error message above shown.
script65535: argument not optionalfile: jquery.js, line: 4, column: 13144
jquery non-min file line error appears
jquery.param = function( a, traditional ) { var prefix, s = [], add together = function( key, value ) { // if value function, invoke , homecoming value value = jquery.isfunction( value ) ? value() : ( value == null ? "" : value ); s[ s.length ] = encodeuricomponent( key ) + "=" + encodeuricomponent( value ); };
why?
for it's worth, in case improperly formed value 'data'. seek checking dt in debugger , making sure right data-type.
javascript jquery ajax internet-explorer
Comments
Post a Comment