Draggable method suddenly not working

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
drayarms
Forum Contributor
Posts: 134
Joined: Fri Dec 31, 2010 5:11 pm

Draggable method suddenly not working

Post by drayarms »

I had sort of completed working on a simple card game (found at www.playcheckonline.com) based on jQuery about 6 months back. A great deal of the ocde relies on jQuery ui's draggable method. It enables a player to drag the cards dealt to them onto the deck. Anyway, aside from a few glitches, the game worked perfectly good as intended when I completed it (at least as far as draggble is concerned). I even had a few friends play it across the world. I haven't updated the code since then but recently when I checked on it to make some updates, it was all but impossible to play because the dragabble method won't work. I get the following error in Chrome debugger

Now before i delve into debugging and trying to pinpoint the source of the problem, I just want to find out if anyone has had such and experience or if it is normal. Remember, no changes had been made to any of the files and now all of a sudden, an important method won't work. What's even more puzzling is that initially, I had the jQ ui version 1.8 hosted on my server and that's what I linked my site to. So any changes to jQui shouldn't have affected the game. Now i have linked the site to the online hosted version of jQ core and jQui as follows:


<script type = "text/javascript" src="http://code.jquery.com/jquery-latest.js"> </script>

<link type="text/css" href="jQui/css/jquery-ui-1.8.18.custom.css" rel="Stylesheet" />

<script type="text/javascript" src="jQui/js/jquery-1.7.1.min.js"></script>

<script type="text/javascript" src="jQui/js/jquery-ui-1.8.18.custom.min.js"></script>

And the problem persists. The site (playcheckonline.com)has a user friendly interface, and it's pretty easy to navigate to the play area. Just click on the "play game" tab in the menu bar and fill out the resulting form.
drayarms
Forum Contributor
Posts: 134
Joined: Fri Dec 31, 2010 5:11 pm

Re: Draggable method suddenly not working

Post by drayarms »

Here's the error: Uncaught TypeError: Object [object Object] has no method 'draggable'
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Draggable method suddenly not working

Post by requinix »

Where is that error coming from? jQuery code? Or your own code? We need to see that.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Draggable method suddenly not working

Post by Christopher »

Why are you including jQuery twice (maybe difference versions) and jQuery UI twice?
(#10850)
Post Reply