drayarms Posted March 9, 2013 Share Posted March 9, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/275446-draggable-method-suddenly-not-working/ Share on other sites More sharing options...
drayarms Posted March 9, 2013 Author Share Posted March 9, 2013 Here's the error: Uncaught TypeError: Object [object Object] has no method 'draggable' Quote Link to comment https://forums.phpfreaks.com/topic/275446-draggable-method-suddenly-not-working/#findComment-1417750 Share on other sites More sharing options...
yomanny Posted March 14, 2013 Share Posted March 14, 2013 I might be wrong, but it seems like you're including the UI library twice. Or are jquery UI Custom and jquery UI two different libraries? <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> - W Quote Link to comment https://forums.phpfreaks.com/topic/275446-draggable-method-suddenly-not-working/#findComment-1418596 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.