file upload

Questionsfile upload
Alessandro asked 3 years 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
3 Answers
Alessandro answered 3 years 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 3 years 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
 
Bruce Rick answered 2 years ago

This was a great fix as I ran into the same issue. Thank you Alessandra.

Your Answer

8 + 16 =

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?