[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

change default directory of javascripts?

hyena

12/7/2007 11:41:00 AM

Hi,
I am using overlibmws.js library to add some dynamic effect to my rails
web pages. But the server can not find the gif files that required by
javascripts. It always tries to search in , for example
,"/experiment/index/" this directory. I changed the "OLbubbleImageDir"
setting to "public/images", which is the directory I put those gif files,
but does not work. Server gives a 404 error.

I 'd like to know how to change the deault searching directory of
javascripts from ".../index" to "public/images" or other place in rails
project. I do not know anything about javascripts, except the syntax looks
similiar to java.

Thanks in advance.


3 Answers

Xavier Noria

12/7/2007 11:52:00 AM

0

On Dec 7, 2007, at 12:44 PM, Sun wrote:

> I am using overlibmws.js library to add some dynamic effect to my
> rails
> web pages. But the server can not find the gif files that required by
> javascripts. It always tries to search in , for example
> ,"/experiment/index/" this directory. I changed the "OLbubbleImageDir"
> setting to "public/images", which is the directory I put those gif
> files,
> but does not work. Server gives a 404 error.
>
> I 'd like to know how to change the deault searching directory of
> javascripts from ".../index" to "public/images" or other place in
> rails
> project. I do not know anything about javascripts, except the syntax
> looks
> similiar to java.

Please send your question to rubyonrails-talk.

-- fxn


hyena

12/7/2007 11:59:00 AM

0


"Xavier Noria" <fxn@hashref.com> wrote in message
news:082656A2-2A46-460F-B38B-6DDC9FC781F4@hashref.com...
> On Dec 7, 2007, at 12:44 PM, Sun wrote:
>
>> I am using overlibmws.js library to add some dynamic effect to my
>> rails
>> web pages. But the server can not find the gif files that required by
>> javascripts. It always tries to search in , for example
>> ,"/experiment/index/" this directory. I changed the "OLbubbleImageDir"
>> setting to "public/images", which is the directory I put those gif
>> files,
>> but does not work. Server gives a 404 error.
>>
>> I 'd like to know how to change the deault searching directory of
>> javascripts from ".../index" to "public/images" or other place in
>> rails
>> project. I do not know anything about javascripts, except the syntax
>> looks
>> similiar to java.
>
> Please send your question to rubyonrails-talk.
>

Sorry if this message was send to a wrong group. But I did not find
"rubyonrails-talk" group on my newsserver. And this is the nearest group I
can find here, hence the message.


hyena

12/7/2007 12:02:00 PM

0


"Sun" <as@hut.at> wrote in message
news:7358e$47593596$839b8704$7680@news1.tudelft.nl...
>
> "Xavier Noria" <fxn@hashref.com> wrote in message
> news:082656A2-2A46-460F-B38B-6DDC9FC781F4@hashref.com...
>> On Dec 7, 2007, at 12:44 PM, Sun wrote:
>>
>>> I am using overlibmws.js library to add some dynamic effect to my
>>> rails
>>> web pages. But the server can not find the gif files that required by
>>> javascripts. It always tries to search in , for example
>>> ,"/experiment/index/" this directory. I changed the "OLbubbleImageDir"
>>> setting to "public/images", which is the directory I put those gif
>>> files,
>>> but does not work. Server gives a 404 error.
>>>
>>> I 'd like to know how to change the deault searching directory of
>>> javascripts from ".../index" to "public/images" or other place in
>>> rails
>>> project. I do not know anything about javascripts, except the syntax
>>> looks
>>> similiar to java.
>>
>> Please send your question to rubyonrails-talk.
>>
>
> Sorry if this message was send to a wrong group. But I did not find
> "rubyonrails-talk" group on my newsserver. And this is the nearest group I
> can find here, hence the message.
Well, found it. Post my problem there. Thanks for the link.