Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delayedObserver is not a function #6

Open
grimen opened this issue Nov 4, 2009 · 6 comments
Open

delayedObserver is not a function #6

grimen opened this issue Nov 4, 2009 · 6 comments

Comments

@grimen
Copy link

grimen commented Nov 4, 2009

Can't get the observer to work. Following instructions similar to: http://railsforum.com/viewtopic.php?id=20362

@internetchris
Copy link

I'm having this problem too. Any advice is welcome!!

@grimen
Copy link
Author

grimen commented Nov 11, 2009

My solution:

I used Sprockets for dependency loading. I solved this by force-require jQuery + jQuery-UI in application.js before jRails. I'm not sure this solves your problems, but I got this issue when upgrading jRails - so I suspect you also got issue with jQueryUI or jRails not properly loaded or loaded in incorrect order. Works for me now for sure.

@internetchris
Copy link

Very similar solution: My js libraries weren't loading in the proper order. If you are having this problem it would be a good strategy to take out all of your other libraries an simply load these to see if it fixes the problem. Once you have it working, add them back in until you have it working in the proper order.

script src = "/javascripts/jquery.js" type = "text/javascript">
script src = "/javascripts/jquery-ui.js" type = "text/javascript">
script src = "/javascripts/jrails.js" type = "text/javascript">

@grimen
Copy link
Author

grimen commented Nov 11, 2009

Well, it works for me already so...history. Using sprockets or juicer, the lib only gets required once no matter how many times it's "required". Therefore no more a issue, with the correct approach. I think it was the loading order.

@admsev
Copy link

admsev commented Dec 24, 2009

Probably, need to fix javascript_include_tag :defaults to keep right order.

@jrissler
Copy link

jrissler commented Nov 9, 2010

I can confirm only using the "jRails form observer plugin" part of the jrails works great and solves this problem. Jrails conflicted with a bit of the javascript we were using, so this was a great solution (and much lighter since we only needed this part of jrails)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants