Javascript Error at Guide Creation

7 views
Skip to first unread message

CMU Libraries Web Team

unread,
Nov 3, 2009, 9:44:28 AM11/3/09
to SubjectsPlus
Hello,

I have recently setup SubjectsPlus for testing and have ran into an
error. When I try to create a guide I get the following javascript
error:

$(".dropspotty").droppable is not a function /sp/control/guides/
local.js Line: 14

It seems to be stopping the Pluslets from being draggable, which
creates quite a large problem. I have everything setup in the default
folders. Has anyone else had this problem or know how to fix it?

Thanks,
Matt

Andrew Darby

unread,
Nov 3, 2009, 9:53:51 AM11/3/09
to subjec...@googlegroups.com
It sounds like either JavaScript is turned off, or the jQuery and/or
jQuery UI modules aren't loading. With the web developer toolbar for
Firefox (maybe you use this?), if you click Information > View
Javascript, you should see the following four scripts loaded by the
page:

sp/assets/jquery/jquery-1.3.2.min.js
sp/assets/jquery/jquery.livequery.js
sp/assets/jquery/jquery-ui-1.7.1.core+interactions.min.js
sp/control/guides/local.js

(plus some inline scripts from the page itself)

Are these loading?

Andrew

CMU Libraries Web Team

unread,
Nov 3, 2009, 1:24:06 PM11/3/09
to SubjectsPlus
I just double checked and my JavaScript is enabled, and the Web
Developer toolbar says that the following scripts are loaded:

inline script
sp/assets/jquery/jquery-1.3.2.min.js
sp/assets/jquery/jquery.livequery.js
sp/assets/jquery/jquery-ui-1.7.1.core+interactions.min.js
sp/control/guides/local.js
and another inline script

So it looks like the correct scripts are loading as you outlined in
your previous post. This was first noticed in FF v. 3.5.4, and I also
tried it in IE v. 8.0.7600.16385 and get the same JS error. Maybe
there is a version problem with jQuery? All of the files that I
uploaded to our server are from the sp.zip file that was provided on
the SP website. Maybe I could compare a copy of a known working sp/
control/guides/local.js file with our current file to see if there are
any differences.

Thanks,
Matt

CMU Libraries Web Team

unread,
Nov 5, 2009, 3:31:23 PM11/5/09
to SubjectsPlus
Solution:
There seems to be differences between how Apache and IIS handle file
names when serving files. The "+" character in the file juery-
ui-1.7.1.core+interactions.min.js was the culprit here. It seems that
IIS is unable to correctly handle files that have certain special
characters in their name. To resolve this, simply rename the jQuery
javascript file and change the path to the file in sp/control/includes/
functions.php.

Matt
Reply all
Reply to author
Forward
0 new messages