Ever had this error when you’re running a jQuery script?

this.parentNode has no properties jQuery
This innocuous error, in my experience comes down to two things:
- You are trying to get the ID of a parent object. Like if you want the form ID from knowing the name field. jQuery(“#name”).parents(“form”).attr(“id”); and the form doesn’t have the attribute of ID set.
- Scriptaculous , more specifically effects.js . If the effects.js is being used on the same page then this error happens. The solution is to download the latest version (1.8.1) and use that instead. You can overwrite just the effects.js from the package and you wont get the error any more!
Exciting? yes because no matter how many searches I made I couldn’t find the answer. Google groups and forums all talked about something else causing it like noConflict() or loading scriptaculous first.
Now you know. Use the latest version of Scriptaculous (if you must use it at all) with jQuery.









Twitter: psychicgeek
*slaps forehead* Now why didn’t I think of that?
witchypoo´s last blog post..Mining the Search Strings
Hmm, is this what I could have used with that bookmarks issue?
Dennis Edell´s last blog post..10 Effective Joint Venture Ideas To Get You Started
Dennis:yup I seem to remember that being a problem a while ago. might be worth a try if you’re desperate to have the bookmarks plugin work
Nope, found a better one
I was just thinking how that’s the second half to the story of my life…..shortly after. LOL
Dennis Edell´s last blog post..We Will Stay Do-Follow, But…
Thanks for the great article, do you have any additional resources you can point us to to learn more?