file upload

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

Hi Abu,

i found the solution:

on line 10413 of jquery.jqGrid.js I replaced

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

Abu Ghufran Staff answered 2 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

13 + 6 =

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?