file upload

Questionsfile upload
Alessandro asked 6 days ago

Hi Abu,

I would use the file upload function but if I use jquery3+ I get the following error:
url.indexOf is not a function
I read that .load, .unload, and .error, deprecated since jQuery 1.8... and suggest to use .on() to register listeners.

Can you help me?
Thanks in advance
Alessandro
2 Answers
Alessandro answered 5 days ago

Hi Abu,

i found the solution:

on line 10413 of jquery.jqGrid.js I replaced

return jQuery("#" + n).load(i), { abort: function () {} };
with
return jQuery("#" + n).on('load',i), { abort: function () {} };
and everything works
Alessandro

Abu Ghufran Staff answered 2 days ago

Thanks for the update. If you face any other issue related to jQuery3, Please refer this thread and use jQuery migration plugin.

Jquery 3.3.1

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

5 + 11 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?