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 anoth

Re: Having problems with javascript.

2008-02-06 Thread Ithaka
Found another way to fix it. There is a controller called 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 fin

Re: Having problems with javascript.

2008-02-06 Thread Ithaka
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

Re: Having problems with javascript.

2008-02-06 Thread Ithaka
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 the layout i have the html that finds the images but the javascript doesn't seem to.

Re: Having problems with javascript.

2008-02-05 Thread Dardo Sordi Bogado
It should be pointing to /js/images.js , mod_rewrite will take care of the rest. Put your javascript in app/webroot/js/ . And should be: On Feb 5, 2008 6:57 PM, Ithaka <[EMAIL PROTECTED]> wrote: > > Hi dardo, > > Yes, i did as juan instructed i did $helpers with javascript and all > those

Re: Having problems with javascript.

2008-02-05 Thread Ithaka
Hi dardo, Yes, i did as juan instructed i did $helpers with javascript and all those required in the controller. And i checked in the source code and i found this quite odd. , i made it so that it would generate in the head section. But can u tell me why it's pointing to projectdirectory/js/im

Re: Having problems with javascript.

2008-02-05 Thread Dardo Sordi Bogado
Juan (in his first post) is suggesting that you put in the controller: var $helpers = array('Html', 'Form', 'Javascript'); Also check the html rendered to the browser ('view source' in your browser) for the presence of your javascript, and check that it is accessible via the linked url. On Fe

Re: Having problems with javascript.

2008-02-05 Thread Ithaka
Quick update: Juan, i understand where u are coming from with your message. The reason why i said i don't have anything on my app is because i'm just doing the layout right now and i'm trying to load javascript onto the layout. So i a quick app close to teh blog tutorial to test something and i

Re: Having problems with javascript.

2008-02-05 Thread Ithaka
I've already done that so i'm missing something here. On Feb 5, 3:23 pm, "Juan F. Gimenez Silva" <[EMAIL PROTECTED]> wrote: > El mar, 05-02-2008 a las 11:12 -0800, Ithaka escribió: > > > No... i don't have any anything on my site yet except a default > > layout, how would i make a controller

Re: Having problems with javascript.

2008-02-05 Thread Juan F. Gimenez Silva
El mar, 05-02-2008 a las 11:12 -0800, Ithaka escribió: > No... i don't have any anything on my site yet except a default > layout, how would i make a controller for the layout? I suggest you start reading the manual (http://manual.cakephp.org/), and try to complete the tutorial (http://manual.ca

Re: Having problems with javascript.

2008-02-05 Thread Ithaka
No... i don't have any anything on my site yet except a default layout, how would i make a controller for the layout? On Feb 5, 3:01 pm, "Juan F. Gimenez Silva" <[EMAIL PROTECTED]> wrote: > El mar, 05-02-2008 a las 08:43 -0800, Ithaka escribió: > > > > > > > Hi, > Hello? > > > I'm having a proble

Re: Having problems with javascript.

2008-02-05 Thread Juan F. Gimenez Silva
El mar, 05-02-2008 a las 08:43 -0800, Ithaka escribió: > Hi, Hello? > > I'm having a problem with javascript in cakephp 1.2. As if that > wasn't obvious enough. > > The Problem: > I wish to load javascript in the layout for my buttons and other > little functions i will implement later on. I'

Having problems with javascript.

2008-02-05 Thread Ithaka
Hi, I'm having a problem with javascript in cakephp 1.2. As if that wasn't obvious enough. The Problem: I wish to load javascript in the layout for my buttons and other little functions i will implement later on. I've been looking for the past 2 days and i always see the same thing. $javascrip