I''m newbie to rails application. I like to use script.aculos.us script in my app. I faced the following problem. 1. first i creat my application. 2. Then I copied the files scriptaculous.js, builder.js, effects.js, dragdrop.js, controls.js and slider.js and prototype.js into my app/public/javascripts/ 3. Then included the <%= javascript_include_tag :defaults %> code into head section of my view file. 4. Then executed the code <div id="dragDIV" class="green box">drag</div> <%= javascript_tag "new Draggable(''dragDIV'')" %> <div id="helperDIV" class="green box">helper</div> <%= draggable_element :helperDIV %> But now I can''t drag it. Whats the wrong I did. Can anyone suggest me. Or is there any code to check whether the javascripts are included correctly or not. Regards, Vikki, --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
the order of the js include files is important in the imports as well you need to ensure that the you include the files in the following format. prototype.js scriptcaculuous.js efects.js hope it helps. Thanks & Regards Faizal On 5/14/07, vikki <veeraa2003-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > I''m newbie to rails application. > > I like to use script.aculos.us script in my app. > > I faced the following problem. > > 1. first i creat my application. > 2. Then I copied the files > > scriptaculous.js, builder.js, effects.js, dragdrop.js, controls.js and > slider.js > and prototype.js > > into my app/public/javascripts/ > > 3. Then included the <%= javascript_include_tag :defaults %> code into > head section of my view file. > > 4. Then executed the code > > <div id="dragDIV" class="green box">drag</div> > <%= javascript_tag "new Draggable(''dragDIV'')" %> > > <div id="helperDIV" class="green box">helper</div> > <%= draggable_element :helperDIV %> > > But now I can''t drag it. Whats the wrong I did. Can anyone suggest me. > > Or is there any code to check whether the javascripts are included > correctly or not. > > > Regards, > Vikki, > > > > >-- Thanks & Regards Faizal (001)973 303 1370 when nothing works , prayer does. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Yes . I checked the above things. <html> <head> <script src="javascripts/prototype.js" type="text/javascript"></ script> <script src="javascripts/scriptaculous.js" type="text/javascript"></ script> <script src="javascripts/effects.js" type="text/javascript"></script> </head> <body> But its still not working. Whether is there any particular version of ruby and gems is must to enable the script.aculos.us Please let me know. On May 14, 11:30 am, "faizal iqbaal" <faizal.iqb...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> the order of the js include files is important in the imports as well > > you need to ensure that the you include the files in the following format. > prototype.js > scriptcaculuous.js > efects.js > > hope it helps. > > Thanks & Regards > > Faizal > > On 5/14/07, vikki <veeraa2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > I''m newbie to rails application. > > > I like to use script.aculos.us script in my app. > > > I faced the following problem. > > > 1. first i creat my application. > > 2. Then I copied the files > > > scriptaculous.js, builder.js, effects.js, dragdrop.js, controls.js and > > slider.js > > and prototype.js > > > into my app/public/javascripts/ > > > 3. Then included the <%= javascript_include_tag :defaults %> code into > > head section of my view file. > > > 4. Then executed the code > > > <div id="dragDIV" class="green box">drag</div> > > <%= javascript_tag "new Draggable(''dragDIV'')" %> > > > <div id="helperDIV" class="green box">helper</div> > > <%= draggable_element :helperDIV %> > > > But now I can''t drag it. Whats the wrong I did. Can anyone suggest me. > > > Or is there any code to check whether the javascripts are included > > correctly or not. > > > Regards, > > Vikki, > > -- > Thanks & Regards > Faizal > (001)973 303 1370 > when nothing works , prayer does.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Still waiting for reply from any one. Can anyone please help me about this issue. I''m not able to move to further steps. Regards, veeraa On May 14, 12:43 pm, vikki <veeraa2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Yes . I checked the above things. > > <html> > <head> > <script src="javascripts/prototype.js" type="text/javascript"></ > script> > <script src="javascripts/scriptaculous.js" type="text/javascript"></ > script> > <script src="javascripts/effects.js" type="text/javascript"></script> > > </head> > <body> > > But its still not working. Whether is there any particular version of > ruby and gems is must to enable the script.aculos.us > Please let me know. > > On May 14, 11:30 am, "faizal iqbaal" <faizal.iqb...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > the order of the js include files is important in the imports as well > > > you need to ensure that the you include the files in the following format. > > prototype.js > > scriptcaculuous.js > > efects.js > > > hope it helps. > > > Thanks & Regards > > > Faizal > > > On 5/14/07, vikki <veeraa2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > I''m newbie to rails application. > > > > I like to use script.aculos.us script in my app. > > > > I faced the following problem. > > > > 1. first i creat my application. > > > 2. Then I copied the files > > > > scriptaculous.js, builder.js, effects.js, dragdrop.js, controls.js and > > > slider.js > > > and prototype.js > > > > into my app/public/javascripts/ > > > > 3. Then included the <%= javascript_include_tag :defaults %> code into > > > head section of my view file. > > > > 4. Then executed the code > > > > <div id="dragDIV" class="green box">drag</div> > > > <%= javascript_tag "new Draggable(''dragDIV'')" %> > > > > <div id="helperDIV" class="green box">helper</div> > > > <%= draggable_element :helperDIV %> > > > > But now I can''t drag it. Whats the wrong I did. Can anyone suggest me. > > > > Or is there any code to check whether the javascripts are included > > > correctly or not. > > > > Regards, > > > Vikki, > > > -- > > Thanks & Regards > > Faizal > > (001)973 303 1370 > > when nothing works , prayer does.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
vikki, Faizal helped you as much as he could given the little amount of information you provided. Check your source code to see if the files are correctly included. You might also consider making a live copy of your page available so that mailing list members can help you solve your issue. Regards, Tobie --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
This is the code I used inside my .rhtml file. <html> <head> <script src="javascripts/prototype.js" type="text/javascript"></ script> <script src="javascripts/scriptaculous.js" type="text/javascript"></ script> <script src="javascripts/effects.js" type="text/javascript"></script> </head> <body> <b> Effects </b> <div onclick="new Effect.SwitchOff(this)"> Click here if you''ve seen enough. </div> <div onclick="new Effect.SwitchOff(this)"> Click here if you''ve seen enough. </div> <b> Drag and Drop </b> <div id="dragDIV" class="green box">drag</div> <%= javascript_tag "new Draggable(''dragDIV'')" %> <div id="helperDIV" class="green box">helper</div> <%= draggable_element :helperDIV %> </body> </html> And i have the files scriptaculous.js, builder.js, effects.js, dragdrop.js, controls.js and slider.js and prototype.js in my app/public/javascripts/ <b> Effects </b> is working well. But <b> Drag and Drop </b> is only not working well. And in my development.log is fetch the above 6 javascripts. I mean it includes the .js files into my app. But still its not working. Anyother suggestion. Or I missed any code to enable the drag function. On May 14, 6:11 pm, tobie <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> vikki, > > Faizal helped you as much as he could given the little amount of > information you provided. > > Check your source code to see if the files are correctly included. > > You might also consider making a live copy of your page available so > that mailing list members can help you solve your issue. > > Regards, > > Tobie--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Vikki, scriptaculous.js loads every scriptaculous file for you. So don''t add effect.js after that. Regards, Tobie --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
HI tobie. I included only prototype.js and scritpaculous.js . But still no use. Can''t drag. Both tried like <script src="javascripts/prototype.js" type="text/javascript"></ script> <script src="javascripts/scriptaculous.js" type="text/javascript"></ script> And <%= javascript_include_tag :defaults %> But no use. Sorry for this for asking lot of questions. Cos i''m newbie. If you need any other details regards this issue. Pls let me know . Regards, Vikki, On May 15, 10:41 am, tobie <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Vikki, > > scriptaculous.js loads every scriptaculous file for you. So don''t add > effect.js after that. > > Regards, > > Tobie--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi tobie, oyeeeeeeeeeeee. Its working now . Great. I''m very happy now. Thanks for your time with me. And for your help. Thanks lot. Regards, Veeraa On May 15, 11:23 am, vikki <veeraa2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> HI tobie. > > I included only prototype.js and scritpaculous.js . But still no use. > Can''t drag. > Both tried like > > <script src="javascripts/prototype.js" type="text/javascript"></ > script> > <script src="javascripts/scriptaculous.js" type="text/javascript"></ > script> > > And > <%= javascript_include_tag :defaults %> > > But no use. > > Sorry for this for asking lot of questions. Cos i''m newbie. If you > need any other details regards this issue. Pls let me know . > > Regards, > Vikki, > > On May 15, 10:41 am, tobie <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi Vikki, > > > scriptaculous.js loads every scriptaculous file for you. So don''t add > > effect.js after that. > > > Regards, > > > Tobie--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---