Używam jquery ajax fileupload. plik zostanie przesłany correctkly ale mam błąd jakBłąd jQuery Handler nie jest funkcją
TypeError: jQuery.handleError is not a function
[Break On This Error]
jQuery.handleError(s, xml, status, e);
jQuery w wersji 1.7.2, a kod jest
jQuery.ajaxFileUpload
(
{
url:'<?php echo $currenturl.'&fileupload=enable';?>',
secureuri:false,
fileElementId:'fileToUpload',
dataType: 'json',
data:{'image_desc':image_desc,'gallery_id':curr_time_stamp},
success: function (data, status)
{
if(typeof(data.error) != 'undefined')
{
if(data.error != '')
{
alert(data.error);
}else
{
alert(data.msg);
showprofilepicture();
}
}
}
}
)
showprofilepicture function() również nie excuted.
zmieniłem to, ale to nie działa, ustawiłem alert przed if, ale alarm nie działa – jackyesind