Re: Having problems with javascript.

2008-02-13 Thread smoove

Hey there, I am having exactly the same problem as you. By the looks
of it, I need some kind of layout controller to load the javascript
helper.
Could you perhaps point me to the "pages.ctb" file? I can't seem to
find it.. thanks!

On Feb 6, 4:40 pm, Ithaka <[EMAIL PROTECTED]> wrote:
> Found another way to fix it.
>
> There is acontrollercalled pages.ctb, in this file i added
> javascript as a helper.
>
> Then i did $javascript->link(); and it worked.  And im guessing to
> make sure that js still works, when i enter in other pages that i
> should start javascript aswell.
>
> I leave this final comment for people that are having a hard time
> starting with cake, hopefully this helps people.
>
> On Feb 6, 9:31 am, Ithaka <[EMAIL PROTECTED]> wrote:
>
> > Fixed it!
>
> > I just added it as normal html coding and it worked, i must have
> > something wrong in cakephp codes somewhere, i will investigate
> > further, but thanks everyone!
>
> > On Feb 6, 9:19 am, Ithaka <[EMAIL PROTECTED]> wrote:
>
> > > It still isn't working.
>
> > > I put the javascript into app/webroot/js/
> > > I put the javascript in project directory/webroot/js
> > > I put the images in app/webroot/img
> > > I put the images in project directory/webroot/img
>
> > > And on thelayouti have the html that finds the images but the
> > > javascript doesn't seem to.
>
> > > P.s. i made a typo with the  tags on my last post, it was
> > > actually src.
>
> > > On Feb 5, 5:25 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
>
> > > > It should be pointing to /js/images.js , mod_rewrite will take care of
> > > > the rest. Put your javascript in app/webroot/js/ .
>
> > > > And
>
> > > >