Re: onClick in button
> but it doesn't work why?? - How does it not work, what actually happens? - Are you running FireBug or something so you can debug what is happening, or if the event is being fired at all? HTH, Paul -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: onClick in button
Script is working fine in nonCakePHP page. I'm adding script from js file. 2011/11/13 CrotchFrog : > Just to eliminate the obvious ... have you included the .js > using $this->Html->script() or some other method? > Have you checked the script for errors using Firebug or something similar? > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group at > http://groups.google.com/group/cake-php > -- Pozdrawiam Dominik Gajewski -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: onClick in button
Just to eliminate the obvious ... have you included the .js using $this->Html->script() or some other method? Have you checked the script for errors using Firebug or something similar? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
onClick in button
Hi I have problem with cake and javascript i have code in cakephp like that echo $this->Form->create('Order', array('action'=>'save')); echo $this->Form->input('User.name', array('label'=>'Imię')); echo $this->Form->input('User.surname', array('label'=>'Nazwisko' /*'value' => $res['User']['email']*/)); echo $this->Form->input('User.phone', array('label'=>'Nr telefonu')); echo $this->Form->input('User.email', array('label'=>'E-mail'/*'type'=>'hidden'*/)); echo $this->Form->input('departure_home', array('label'=>'Nr domu')); echo $this->Form->input('departure_street', array('label'=>'Ulica' /*'value' => $res['User']['email']*/)); echo $this->Form->input('departure_city', array('label'=>'Miejscowość')); echo $this->Form->input('departure_code', array('label'=>'Kod pocztowy'/*'type'=>'hidden'*/)); echo $this->Form->input('theDate2', array('label'=>'Dzień wylotu')); echo $this->Form->button('button', array('type'=>'button', 'onClick' => "displayCalendar(document.forms[0].data[Order][theDate2],'dd.mm.',this)")); echo $this->Form->end('Save'); and i need but it doesn't work why?? -- Pozdrawiam Dominik Gajewski -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php