-1

Currently I've got a pretty basic setup that was working reliably until I updated my jQuery. I noticed that in the header of jquery.tokeninput.js there's a reference to jQuery 1.10.2 which was what I had before... Any suggestions would be really appreciated!

  • 1
    there's no reference to jQuery 1.10.2 that I can see ... only `"jquery" : ">= 1.5.x"` ... 3.1.1 is > 1.5.x ... so there's a better than poor chance it will work – Jaromanda X Mar 02 '17 at 01:30
  • Weird. I'm getting this error: "Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/." referencing jquery.tokeninput.js. I checked the URL but it's not really helpful... – itchyspacesuit Mar 02 '17 at 01:57
  • 1
    that's a **warning** ... not an **error** ... is it your code, or the 4 year old tokeninput code that is causing that **warning** – Jaromanda X Mar 02 '17 at 01:58
  • Sorry just updated the comment. – itchyspacesuit Mar 02 '17 at 01:59
  • 1
    are you using minimised tokeninput? if not, what line number is associated with the warning (if any) - there's nowhere in the latest (3 years old) tokeninput that tries synchronous xmlhttprequest ... so either it's your code doing it, or you have an old version of tokeninput – Jaromanda X Mar 02 '17 at 02:02
  • Hmm... That would make sense... This has been sitting around for awhile. The jquery.tokeninput.js file is what's generating the xml warning... Is that even part of tokeninput? It doesn't seem to show up on their downloads. – itchyspacesuit Mar 02 '17 at 02:05
  • `jquery.tokeninput.js` is the one and only file you need to use tokeninput??~~ – Jaromanda X Mar 02 '17 at 02:06
  • but, there's nothing in the **current** version of the code that would make any AJAX synchronous - do you make any AJAX calls with `async:false` – Jaromanda X Mar 02 '17 at 02:07
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/137006/discussion-between-itchyspacesuit-and-jaromanda-x). – itchyspacesuit Mar 02 '17 at 02:08

1 Answers1

0

Okay so - it turns out that I had an old version of jquery.tokeninput.js.

I had to grab a new one from the Github, now everything works!