views:

27

answers:

3

Hi all,
i'm trying to implement on my page the jQuery UI Sortable plugin, but it isn't working.
Can anyone help me with this error? I think it might be something simple that is escaping me.

the link to preview is: http://jsbin.com/ebixi3
the link to jsbin edit is: http://jsbin.com/ebixi3/edit

Thanks all in advance.

+1  A: 

It's one of your other plugins interfering with jQuery UI, here's an updated/working version.

I literally did nothing but remove this plugin to make it work:

<script type="text/javascript" src="http://ajax.microdual.com/js/jquery.jqbrowser-0.2.0.min.js"&gt;&lt;/script&gt;
Nick Craver
Oh Nick, at the same time again! ahahahaThanks ;) i will mark your answer as right!
CuSS
@CuSS -What is that plugin for anyway? something `$.support` and `$.browser` don't already have?
Nick Craver
Can you tell me how to fix it?
CuSS
@CuSS - I would actually stray away from browser detection...what are you using it for?
Nick Craver
I use the plugin here: http://www.microdual.com/assets/js/main.js (!$.browser.msie() and something like this)
CuSS
@CuSS -It sounds like you want `if(!$.support.opacity)` in those 2 cases...this will be true for IE6-8, not for 9. Since you're fading I'd go with browser detection like this :)
Nick Craver
hmm... i will try, thanks again Nick! do you have facebook? i must add you, god damn!
CuSS
I need jQbrowser here too : http://ajax.microdual.com/js/jquery.microdual-1.0.0.min.jshow can i resolve this?
CuSS
A: 

OK, discovered! The plugin JqBrowser (dont know why), is making conflit with jQuery UI Sortable plugin...

Removed this line:

<script type="text/javascript" src="http://ajax.microdual.com/js/jquery.jqbrowser-0.2.0.min.js"&gt;&lt;/script&gt;
CuSS
+1  A: 

I encountered two problems:

  • the comment after <!--[if IE 6]> ends the conditional comment! So the JS-code will be evaluated in other browsers than IE6 too!
  • JqBrowser plugin conflicts somehow with the sortable plugin
alopix