Some of the visitors of my site load a lot of scripts, not linked by my website. This is probably due to the software Superfish WindowShopper. This library seems to load jQuery as well, so my page has for some visitors multiple versions of jQuery loaded.
This results in the exception: Object [object Object] has no method 'dialog'
How to prevent Superfish (or other adwares) stealing my .dialog of jQuery UI?
Some unintentionally linked scripts:
https://appnext-a.akamaihd.net/source-ds.js
//www.superfish.com/ws/sf_main.jsp?dlsource=pcom&userId=4709955453116160291&CTID=p0
etc etc. Scripts vary per browser. The first one from Akamaihd.com is a modified jQuery. Maybe there are more. Multiple jQueries make the .dialog dissapear (Uncaught TypeError: Object [object Object] has no method 'dialog').
Fiddle: http://jsfiddle.net/fybJ3/ Problem appears in Chrome and Firefox. IE has no problems showing the dialog.
My current workaround: Show an old fashioned 'alert' when this exception occurs.
What should I do?
- Can jQuery UI be fixed so the dialog can be shown when multiple versions of jQuery are loaded?
- Should I choose a different library for dialogs?
- Or ???