Re: Javascript blues

Jason Roelofs
Fri, 02 Feb 2007 13:24:23 -0000

Also, please go pick up the FireBug extension for Firefox (you are using
Firefox, right?): https://addons.mozilla.org/firefox/1843/

This will let you know if there''s a compilation / running error with
your JS
file.

Jason

On 2/2/07, Chris Mear <chris-OIzkuoyqg0kAvxtiuMwx3w@public.gmane.org>
wrote:
>
>
> On Feb 2, 12:55 pm, Tharfagreinir
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
> wrote:
> > <script src="/javascripts/user_login.js?[number]"
> > type="text/javascript">
> >
> > 1) Is it necessary to preclude the /javascripts/ path from going to
the
> > dispatcher in order to be able to include the files there?
> >
> > 2) If so, what am I doing wrong? Why is RewriteCond %{REQUEST_URI}
> > ^/javascripts/(.*)$ [OR] not working?
> >
> > 3) If not, am I supposed to set up some routing for this to work?
> >
> > 4) If I''m not supposed to set up any .htaccess precludes nor
routing,
> > what could possibly be going wrong?
>
> You shouldn''t need to change any of the default settings to get
this
> to work.
>
> What do you get if you just type
> http://localhost:3000/javascripts/user_login.js
> into your browser address bar? Does it display/download the file okay,
> or do you get an error?
>
> Chris
>
>
> >
>