Ok, I keep getting an error message and am unable to drag any of the divs...
Error message is as follows:
Uncaught exception: TypeError:
'$(".polaroidpolaroid_attachments_mod_25").draggable' is not a
function Error thrown at line 343, column 4 in ($)
in http://developers.dream-portal.net/test/index.php:
$(".polaroidpolaroid_attachments_mod_25").draggable({ called via Function.prototype.apply() from line 2, column 33900 in (t) in
http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js:
if(a[u].apply(t[0],t[1])===!1&&e.stopOnFalse) called from line 2, column 34244 in () in
http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js:
(function r(t){v.each(t,function(t,n){var i=v.type(n);i==="function"?(!e.unique||!c.has(n))&&a.push(n):n&&n.length&&i!=="string"&&r(n)})})(arguments),i?o=a.length:n&&(s=t,l(n))
called from line 2, column 22488 in (e) in
http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js:
return v.ready.promise().done(e),this called from line 276, column 3 in startPolaroids() in
http://developers.dream-portal.net/test/index.php:
jQuery(document).ready(function($){ called from line 1322, column 5 in () in
http://developers.dream-portal.net/test/Themes/default/scripts/script.js?fin20:
aOnloadEventsi;
I am using an external js file that gets loaded in the head of the webpage with the following function:
And in the body of the webpage (which is all I can access from the script that runs it), I have the following code written in PHP (so please excuse the escaping of quotations):