IE JavaScript error with jQuery click-n-drag script

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

IE JavaScript error with jQuery click-n-drag script

Post 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
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Post 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.
Post Reply