Very Urgent + Javascript Include tag

Hello Champs,

Actually i am facing a problem seems to be very simple … but not
striking to my mind … :slight_smile:

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 …

Hemant B. wrote:

Hello Champs,

Actually i am facing a problem seems to be very simple … but not
striking to my mind … :slight_smile:

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

This is same as my first one … rit … forgot to write true dere … :slight_smile:

Yes Tried …

Rails L. wrote:

Hemant B. wrote:

Hello Champs,

Actually i am facing a problem seems to be very simple … but not
striking to my mind … :slight_smile:

did you try this

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 … :slight_smile:

pharrington wrote:

On Aug 13, 5:08�am, Hemant B. [email protected]
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 ?

On Aug 13, 5:08 am, Hemant B. [email protected]
wrote:

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 ?

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

Great!. Now we only need to find out if your own .js files are not in
conflict with framework files.

What shud i give first …
jquery files or prototype files(default files) …

Rails L. wrote:

Great!. Now we only need to find out if your own .js files are not in
conflict with framework files.

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 … :slight_smile:

Rails L. 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

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 B. wrote:

What shud i give first …
jquery files or prototype files(default files) …

Rails L. wrote:

Great!. Now we only need to find out if your own .js files are not in
conflict with framework files.

On Aug 13, 5:40 am, Hemant B. [email protected]
wrote:

What shud i give first …
jquery files or prototype files(default files) …

Rails L. 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.

On Aug 13, 5:48 am, Hemant B. [email protected]
wrote:

Rails L. 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 … :slight_smile:
jQuery.noConflict() function …

pharrington wrote:

On Aug 13, 5:48�am, Hemant B. [email protected]
wrote:

Rails L. 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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs