Hello Champs, Actually i am facing a problem seems to be very simple .. but not striking to my mind .. :) The thing is:- In my layouts file, i am including <%= javascript_include_tag :all, :recursive %> by which i can get all my files in a single line .. correct guyz .. But now i need to run some ajax functionality here, so i done <%= javascript_include_tag :defaults %> which includes some of the .js files like prototype.js .. etc .. etc .. But now mine files which are included by first method are not working .. Getting me .. Write me for any query .. Waiting for u guyz .. Very urgent .. -- Posted via http://www.ruby-forum.com/.
Hemant Bhargava wrote:> Hello Champs, > > Actually i am facing a problem seems to be very simple .. but not > striking to my mind .. :) > > The thing is:- > In my layouts file, i am including > <%= javascript_include_tag :all, :recursive %> by which i can get all my > files in a single line .. correct guyz .. > > But now i need to run some ajax functionality here, so i done > <%= javascript_include_tag :defaults %> which includes some of the .js > files like prototype.js .. etc .. etc .. > > But now mine files which are included by first method are not working .. > Getting me .. Write me for any query .. > Waiting for u guyz .. Very urgent ..did you try this javascript_include_tag :all, :recursive => true -- Posted via http://www.ruby-forum.com/.
This is same as my first one .. rit .. forgot to write true dere .. :) Yes Tried .. Rails List wrote:> Hemant Bhargava wrote: >> Hello Champs, >> >> Actually i am facing a problem seems to be very simple .. but not >> striking to my mind .. :) >>> did you try this > > javascript_include_tag :all, :recursive => true-- Posted via http://www.ruby-forum.com/.
On Aug 13, 5:08 am, Hemant Bhargava <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> This is same as my first one .. rit .. forgot to write true dere .. :) > > Yes Tried .. > > Rails List wrote: > > Hemant Bhargava wrote: > >> Hello Champs, > > >> Actually i am facing a problem seems to be very simple .. but not > >> striking to my mind .. :) > > > did you try this > > > javascript_include_tag :all, :recursive => true > > -- > Posted viahttp://www.ruby-forum.com/.can using javascript_include_tag :defaults ever successfully include more javascript than javascript_include_tag :all, :recursive => >true ?
No .. but its not coming yaar .. i mean if i''ll include only javascript_include_tag :defaults .. then my ajax functionaliy is working fine .. and if using javascript_include_tag :all, :recursive => >true .. then its not coming .. big dillema for me .. :) pharrington wrote:> On Aug 13, 5:08�am, Hemant Bhargava <rails-mailing-l...@andreas-s.net> > wrote: >>avascript_include_tag :all, :recursive => >true >> > did you try this >> >> > javascript_include_tag :all, :recursive => true >> >> -- >> Posted viahttp://www.ruby-forum.com/. > > can using ever successfully include > more javascript than javascript_include_tag :all, :recursive => >true ?-- Posted via http://www.ruby-forum.com/.
I am not sure why you want to use recursive option. this is required only when you place your .js files in a deeply nested subdirectories. do you use any other js framework files in addition to prototype?. some times jquery and prototype would not blend very well. if so, changing its loading order would resolve it. try loading your own js files explicitly, above or below prototype -- Posted via http://www.ruby-forum.com/.
I have files in sub directories also .. dats y m using recursive option .. Actually all files i need are coming in page source .. but nt working .. :''( Also tried loading order change.. Will give it more effort also .. :) Rails List wrote:> I am not sure why you want to use recursive option. this is required > only when you place your .js files in a deeply nested subdirectories. > > do you use any other js framework files in addition to prototype?. some > times jquery and prototype would not blend very well. if so, changing > its loading order would resolve it. > > try loading your own js files explicitly, above or below prototype-- Posted via http://www.ruby-forum.com/.
Great!. Now we only need to find out if your own .js files are not in conflict with framework files. -- Posted via http://www.ruby-forum.com/.
What shud i give first .. jquery files or prototype files(default files) .. Rails List wrote:> Great!. Now we only need to find out if your own .js files are not in > conflict with framework files.-- Posted via http://www.ruby-forum.com/.
On Aug 13, 5:40 am, Hemant Bhargava <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> What shud i give first .. > jquery files or prototype files(default files) .. > > Rails List wrote: > > Great!. Now we only need to find out if your own .js files are not in > > conflict with framework files. > > -- > Posted viahttp://www.ruby-forum.com/.Do you have functionality that relies on Prototype? Do you have functionality that relies on jQuery? Have you read http://docs.jquery.com/Using_jQuery_with_Other_Libraries ? Your app is telling you how to debug it, but you''re the only one who can listen to it. Just give it a go, it won''t hurt.
Tried changing order also .. But no use :''( Neone there who cn help me to get rid of this problem .. Ok .. m having some jquery files as well in a jquery subdirectory inside javascript folder and also rails framework files .. Hemant Bhargava wrote:> What shud i give first .. > jquery files or prototype files(default files) .. > > > Rails List wrote: >> Great!. Now we only need to find out if your own .js files are not in >> conflict with framework files.-- Posted via http://www.ruby-forum.com/.
On Aug 13, 5:48 am, Hemant Bhargava <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Tried changing order also .. But no use :''( > Neone there who cn help me to get rid of this problem .. > > Ok .. m having some jquery files as well in a jquery subdirectory inside > javascript folder and also rails framework files .. > > Hemant Bhargava wrote: > > What shud i give first .. > > jquery files or prototype files(default files) .. > > > Rails List wrote: > >> Great!. Now we only need to find out if your own .js files are not in > >> conflict with framework files. > > -- > Posted viahttp://www.ruby-forum.com/.While I''m still almost coherent, I should point out that loading all of the javascript all of the time is typically a bad idea anyway (mostly due to browsers getting all deer-in-headlights while the js initially loads/runs). But worry about one thing at a time.
Done it .. Thanks a lot guyz .. That link was proved useful .. :) jQuery.noConflict() function .. pharrington wrote:> On Aug 13, 5:48�am, Hemant Bhargava <rails-mailing-l...@andreas-s.net> > wrote: >> > Rails List wrote: >> >> Great!. Now we only need to find out if your own .js files are not in >> >> conflict with framework files. >> >> -- >> Posted viahttp://www.ruby-forum.com/. > > While I''m still almost coherent, I should point out that loading all > of the javascript all of the time is typically a bad idea anyway > (mostly due to browsers getting all deer-in-headlights while the js > initially loads/runs). But worry about one thing at a time.-- Posted via http://www.ruby-forum.com/.