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 -~----------~----~----~----~------~----~------~--~---
