Re: newbie problem cakePHP/Ajax
> Hi. > > Not sure if you managed to fix this problem yet, but what I found was > that I needed to add the following line after the link to > scriptaculous: > link('controls.js') ?> > > After this, all the javascript errors just melted away and it all worked. > > Mike. Hey thanks for that solution :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: newbie problem cakePHP/Ajax
On 3/5/07, Bart op de grote markt <[EMAIL PROTECTED]> wrote: > I checked and in the taskscontroller I find: > var $helpers = array('Html', 'Javascript', 'Ajax'); > So it must be another problem, though the $html variable seems to > work... Hi. Not sure if you managed to fix this problem yet, but what I found was that I needed to add the following line after the link to scriptaculous: link('controls.js') ?> After this, all the javascript errors just melted away and it all worked. Mike. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: newbie problem cakePHP/Ajax
Hello, I checked and in the taskscontroller I find: var $helpers = array('Html', 'Javascript', 'Ajax'); So it must be another problem, though the $html variable seems to work... This is the line (35) to which the error refers (see my first post). It's indeed the first place where the $javascript variable is called... 34 charsetTag('UTF-8') ?> 35 link('prototype') ?> 36 link('scriptaculous.js?load=effects') ? > grtz, Bart --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: newbie problem cakePHP/Ajax
On Mar 1, 2007, at 2:12 PM, Langdon Stevenson wrote: > > Hi Bart > > It's hard to know what the problem is, but my guess would be that the > javascript file/s are not being loaded. It would help if you > posted the > page source so that we can see what is on line 35, and what the link > tags are outputting. I'd guess that the controller rendering the view doesn't have the JavascriptHelper available. var $helpers = array('Html', 'Javascript'); -- John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: newbie problem cakePHP/Ajax
Hi Bart It's hard to know what the problem is, but my guess would be that the javascript file/s are not being loaded. It would help if you posted the page source so that we can see what is on line 35, and what the link tags are outputting. Regards, Langdon > I did everything as mentioned, but now I get the following error when > I execute "http://localhost/"; or "http://localhost/tasks": > > > > < > Notice: Undefined variable: javascript in C:\wamp\www\cake\libs\view > \templates\layouts\default.thtml on line 35 > > Fatal error: Call to a member function link() on a non-object in C: > \wamp\www\cake\libs\view\templates\layouts\default.thtml on line 35 > > > So a problem with $javascript. Since I don't know what the framework > exactly does, I have now idea what to do. The variable $html doesn't > seem to give a problem. I could see in the sourcecode that the > charset was set to UTF-8, quite spectacular :-). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---