SPRY and jQuery load sequence
I've been using spry for a little while now and I like it's ease of use, that said I needed some auto complete functionality and since spry 1.5 isn't out or supported I decided to use jQuery.
I needed to load in 3 JS files:
SpryData.js
jquery.js
autocomplete.js (http://www.pengoworks.com/workshop/jquery/autocomplete.htm)
The auto complete JavaScript calls a function in jquery called
This is recomended for all jQuery functions, so i'm happy to keep it. The problem was that I kept on getting an error saying that the function wasn't defined. After looking through all the JS I could see that it was defined? After playing around with bits here and there I discovered that the SPRY SpryData.js file must be loaded before you call include the jQuery file.
As it took me a while to discover this I thought I would let you know.
Has anyone else found any qwerks?





i'm using the 1.5 Preview version though, and right now you can only use jQuery next to it if you call the jQuery.noConflict() function.
this turns off the use of $ in jQuery and lets Spry be happy. you can still use all the jQuery functions jQuery(document).ready etc.
Any tips?