Won't load, javascript crashes

nexxer - November 1, 2007 - 02:34
Project:User Picture Resizer
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

Upon submitting a new user picture I get an error (in firefox 2.0.8)

$(document).ready is not a function
http://localhost/project/misc/collapse.js
Line 54

I believe the inclusion of prototype messes up the existing jquery installation. After doing some reading I ended up here http://xhochy.org/en/2007/03/18/using-prototype-with-drupal-5/ but even after using his prototype.js I'm still getting the same error.

This is on drupal 5.3.

-- nex

#1

jayzilla - November 1, 2007 - 08:35

That does it - it has to be jQuery then :o)

Someday I'll get the time free to actually learn how to implement this properly. There are one or two fab examples out there, but I've just not had the time to devote to making it work. Soon I'll get it cracked though. Honest.

-- J.

 
 

Drupal is a registered trademark of Dries Buytaert.