Problem solved. I did it again, it worked. But it remains unknown
what's wrong with me. I did clear cache of browser, maybe that helped.
Anyway, I can go ahead.

On Jul 3, 10:01 am, Geoff Ford <[EMAIL PROTECTED]> wrote:
> Exactly where are you js files located, and what is the exact code
> used to link to the javascript files?
>
> Your js files should be in /app/webroot/js.
>
> The link in your view file should be:
> <?php echo $javascript->link('scriptaculous'); ?>
>
> Thats all there is to it.
>
> Geoff
> --http://lemoncake.wordpress.com
>
> On Jul 3, 10:48 am, minglee <[EMAIL PROTECTED]> wrote:
>
> > Now I'm just testing the configure of javascript in Cake, so I only
> > tried some javascript effects, which needn't data from php, but I use
> > DOM name and id. The problem is: all worked very well if I put
> > javascript functions directly in html pages, but didn't if I use
> > header included .js files.
>
> > On Jul 3, 12:18 am, crouchjay <[EMAIL PROTECTED]> wrote:
>
> > > Are you passing an id or name, because javascript does not like the
> > > array usage of the name that cakephp uses?
>
> > > On Jul 2, 3:14 pm, minglee <[EMAIL PROTECTED]> wrote:
>
> > > > 1. One of the .js files downloaded was prototype.js, genuine one
> > > > without any modification. And the method called is element.hide. But
> > > > did not work.
> > > > 2. For my own .js files, when I copied the js codes into html pages,
> > > > they worked. But didn't, when they in files loaded in html pages.
> > > > So I shall say, it is not a javascript coding error, but a setting
> > > > problem. Unfortunately, I am not familiar with phpCake. phpCake is a
> > > > good framework, but the user's manual and API manual are too simple.
>
> > > > On Jul 2, 10:54 am, Geoff Ford <[EMAIL PROTECTED]> wrote:
>
> > > > > Sounds to me like a javascript error.  Havethe downloaded js files
> > > > > actually got the right code in them, or are they blank or 404 error
> > > > > messages?
>
> > > > > Some actual code might help as well.
>
> > > > > Geoff
> > > > > --http://lemoncake.wordpress.com
>
> > > > > On Jul 2, 10:45 am, minglee <[EMAIL PROTECTED]> wrote:
>
> > > > > > Thanks, francky061.
> > > > > > Sorry, that's a mistake in my message. I did use 
> > > > > > $javascript->('.js')
> > > > > > to load .js files, but it doesn't work. And I checked the generated
> > > > > > html page source, there is .js file included in the header, but 
> > > > > > when I
> > > > > > call the js functions, 'not difined' errors appear. What is more
> > > > > > strange, when I save the page from browser, all the .js files were
> > > > > > also downloaded in the page folder. But still doesn't work.
>
> > > > > > On Jul 2, 12:24 am, francky06l <[EMAIL PROTECTED]> wrote:
>
> > > > > > > In the  views, the way you would call the helper should 
> > > > > > > $javascript-
>
> > > > > > > >() NOT $this->javascript
>
> > > > > > > Hope this help
>
> > > > > > > On Jul 1, 12:17 pm, minglee <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > I am new to phpCake. My phpCake routing is set to 
> > > > > > > > 'development'. And I
> > > > > > > > put all .js files into ./cake/app/webroot/js/, and set helper, 
> > > > > > > > called
> > > > > > > > '$this->javascript', ect.., did everything as told in the 
> > > > > > > > manual, but
> > > > > > > > it does not work. I've tried my other none-cake applications on 
> > > > > > > > the
> > > > > > > > same server, they all work well with their js files. So, SOS. 
> > > > > > > > Thanks a
> > > > > > > > lot!- Hide quoted text -
>
> > > > - Show quoted text -


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to