Jump to content

Recommended Posts

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. 
Link to comment
https://forums.phpfreaks.com/topic/275446-draggable-method-suddenly-not-working/
Share on other sites

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.