Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

url.indexOf is not a function in jQuery.fn.load = function( url, params, callback ) #268

Open
Seventhstar opened this issue Oct 17, 2019 · 1 comment

Comments

@Seventhstar
Copy link

jquery3.self-e200ee796ef24add7054280d843a80de75392557bb4248241e870fac0914c0c1.js?body=1:10092 Uncaught TypeError: url.indexOf is not a function
at jQuery.fn.init.jQuery.fn.load (jquery3.self-e200ee796ef24add7054280d843a80de75392557bb4248241e870fac0914c0c1.js?body=1:10092)
at HTMLDocument. (common.self-3ccd50855eb87e1d709fcb22aecb5cf3431f583a079691479559a9777b3d3451.js?body=1:47)
at mightThrow (jquery3.self-e200ee796ef24add7054280d843a80de75392557bb4248241e870fac0914c0c1.js?body=1:3558)
at process (jquery3.self-e200ee796ef24add7054280d843a80de75392557bb4248241e870fac0914c0c1.js?body=1:3626)

@dr-nyt
Copy link

dr-nyt commented Jan 20, 2023

Update all your code that calls load function like,

$(window).load(function() { ... });
To
$(window).on('load', function() { ... });

jquery.js:9612 Uncaught TypeError: url.indexOf is not a function
This error message comes from jQuery.fn.load function.

https://stackoverflow.com/questions/37738732/jquery-3-0-url-indexof-error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants