Wednesday, April 23, 2008

A javascript mess!

I was trying to use prototype with drupal and was fairly successful until I used collapsible forms and prototype together!

Drupal uses tableheader.js for the collapsible functionality - I think, and fails with an error on

var headerClone = $(this).clone(true).insertBefore(this.parentNode).wrap('
').parent().css({...

in the same file. The error is, "$(this).clone is not a function".

Now you see prototype defines clone() on an object itself, so this is definitely a problem. Its a little too late for me to up and running, so I'll look to solve this puzzle sometime tomorrow.

No comments: