Page 1 of 1

IE JavaScript error with jQuery click-n-drag script

Posted: Tue Oct 23, 2007 12:18 pm
by JAB Creations
This jQuery when removed (and DHTML enabled on my site at least locally) is what I've figured out to be the last script causing errors in all versions of IE for me...

Code: Select all

$(document).ready(function() {$('#prompts').Draggable({containment : 'parent', ghosting: true, opacity: 0.5, fx: 300, handle: '#promptsspan', zIndex:  1000,});});
I've tried adding something like function hide_from_ie() {if (!document.all) {//script here}} though that accomplished nothing. What can I do to make IE sit down and shut up? :D

Posted: Tue Oct 23, 2007 12:48 pm
by JAB Creations
Some things to clarify...

I'm going by the examples on the dragable jquery examples page using a drag by handle version of the script.

For kicks and giggles I simply copied and pasted the entire script (to make sure I wasn't missing any markup for any reason as that page was not creating any errors in IE6) but I am still having errors on my side. I am not aware of jQuery using any onload script which may cause friction with my existing onload script (and manually checked by temporarily deleting the file, refreshing IE (numerous times and clearing the cache just in case) and the issue remained no different).

Additionally both that site and mine are using jQuery 1.1.2.