I tried to replicate the demo line for line. I even created a DB table, etc. etc. No dice. I''ve spent like 4 hours on this. I''m using rails 1.8.whatever and apache2. Basically latest everything from 2 days ago, using the newest RC in Firefox on Suse. Here is what I get: Error: Element.makePositioned is not a function Source File: http://cart/javascripts/dragdrop.js Line: 58 Please, Please make the examples available in fully working downloadable apps. It would make this SO much easier. thanks Jacob
Whoops, I should RTFM. I found my problem. not including the right library. On Thursday 18 August 2005 00:04, jacob wrote:> I tried to replicate the demo line for line. I even created a DB table, > etc. etc. No dice. I''ve spent like 4 hours on this. I''m using rails > 1.8.whatever and apache2. Basically latest everything from 2 days ago, > using the newest RC in Firefox on Suse. > > Here is what I get: > > Error: Element.makePositioned is not a function > Source File: http://cart/javascripts/dragdrop.js > Line: 58 > > Please, Please make the examples available in fully working downloadable > apps. It would make this SO much easier. > > thanks > Jacob > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Thomas Fuchs
2005-Aug-22 03:42 UTC
[Rails-spinoffs] Drag Errors anyone? Element.makePositioned
Step 1: Use the .js files that come with Rails _OR_ use the downloadable script.aculo.us distribution (which also needs the pre- release prototype.js). You can''t mix and match these, as I believe is the problem here. All the online demos run on a plain 0.13.1 Rails out-of-the-box. Do not confuse Ruby with Rails (Ruby is 1.8.whatever!). The important thing here is: You DO NOT need to download anything from script.aculo.us as ALL LIBRARIES ARE INCLUDED WITH RAILS. So, if you initialize a new rails application by running "rails <appname>" all the .js files sit in <appname>/public/javascripts, ready for use. Step 2: To include the .js files, use <%= javascript_include_tag :defaults %> in the HEAD section of your .rhtml file (template or layout, whatever you use). You''re of course right on that a fully working downloadable demo app would be a good thing... hmm.... anyone wants to do a thing like that...? *hint*? :) Thomas Am 18.08.2005 um 08:04 schrieb jacob:> I tried to replicate the demo line for line. I even created a DB > table, etc. > etc. No dice. I''ve spent like 4 hours on this. I''m using rails > 1.8.whatever and apache2. Basically latest everything from 2 days > ago, using > the newest RC in Firefox on Suse. > > Here is what I get: > > Error: Element.makePositioned is not a function > Source File: http://cart/javascripts/dragdrop.js > Line: 58 > > Please, Please make the examples available in fully working > downloadable apps. > It would make this SO much easier. > > thanks > Jacob > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >