Problem using jQuery UI in a frontend view (in Widget development)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Hi everyone :)

I am developing a Widget plugin in v3.70, when trying to use jQuery UI - specifically, but not only - the draggable() function - I get the error as if jQuery UI is not referenced:

(index):912 Uncaught TypeError: $(...).draggable is not a function


I tried:
* Removing the jQuery references (jQuery+jQuery UI) from the _root.Head.cshtml and adding them only in my view.
* Referencing jQuery versions from CDN (online)- e.g: https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js
* Using another jQuery plugin - like gridster.js, still doesn't work - as if the jQuery script doesn't exist.
* Checked the Sources in F12 (debug in Chrome) - I can see that the files loaded correctly - /Scripts/jquery-1.10.2.min.js and so on... No 404 errors or other related errors in the console...

Anyone has an idea for this?
Am I missing something very basic here?

Thanks! :)
7 years ago
Hi,

share a link to the page with the describerd problem if possible.
4 years ago
Yes please
golot7 wrote:
Hi everyone :)

I am developing a Widget plugin in v3.70, when trying to use jQuery UI - specifically, but not only - the draggable() function - I get the error as if jQuery UI is not referenced:

(index):912 Uncaught TypeError: $(...).draggable is not a function


I tried:
* Removing the jQuery references (jQuery+jQuery UI) from the _root.Head.cshtml and adding them only in my view.
* Referencing jQuery versions from CDN (online)- e.g: https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js
* Using another jQuery plugin - like gridster.js, still doesn't work - as if the jQuery script doesn't exist.
* Checked the Sources in F12 (debug in Chrome) - I can see that the files loaded correctly - /Scripts/jquery-1.10.2.min.js and so on... No 404 errors or other related errors in the console...

Anyone has an idea for this?
Am I missing something very basic here?

Thanks! :)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.