Re: Auto submit the form using java script in cakephp

2011-08-05 Thread theclansman
Hi Nitin,

actually you just have to place this java script
'javascript:this.form.submit()')) in the correct html element. This
does not have to to anything with cake ;)

Regards
theclansman

On Aug 5, 6:36 am, Nitin Hittalamani nitin@gmail.com wrote:
 Hi,Thanks for reply

 I am looking for the code where with out submit button i need to
 submit the page by using java script.

 On 8/4/11, theclansman i...@buiss-ultimo.de wrote:



  Hi Nitin,

  I'm not sure, but maybe you are after something like that:

  echo $form-input('fieldname', array('options'=$optionsarray,
  'onChange'='javascript:this.form.submit()'));

  Regards
  theclansman

  On Aug 4, 4:47 pm, Nitin nitin@gmail.com wrote:
  Hi,

  Please any one guide me how to submit the form automatically using
  java script in cakephp.

  --
  Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
  Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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

 --
 Thanks and Regards,

 Nitin Hittalamani.

-- 
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: Auto submit the form using java script in cakephp

2011-08-04 Thread theclansman
Hi Nitin,

I'm not sure, but maybe you are after something like that:

echo $form-input('fieldname', array('options'=$optionsarray,
'onChange'='javascript:this.form.submit()'));

Regards
theclansman

On Aug 4, 4:47 pm, Nitin nitin@gmail.com wrote:
 Hi,

 Please any one guide me how to submit the form automatically using
 java script in cakephp.

-- 
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: David Persson Media Plugin and saveAll

2011-08-03 Thread theclansman
Hi Michal,

I run into the same problem and finally found that I had to remove the
'Media.Coupler' from the $actAs array.

Hope that works for you too!

Theclansman

On Jul 8, 10:42 pm, michalmalinowski mmichal.malinow...@gmail.com
wrote:
 Hey, I have the same problem as 
 Bradhttp://groups.google.com/group/cake-php/browse_thread/thread/aa331e6a...

 I am able to edit record with attachment, change attachment, change
 user data etc. But I can not create new record in the 'user' model. I
 tried different options:
 -disabled validator
 -check what will be saved in beforeSave()
 -check database queries
             [11] = Array
                 (
                     [query] = START TRANSACTION
                     [error] =
                     [affected] = 0
                     [numRows] =
                     [took] = 0
                 )

             [12] = Array
                 (
                     [query] = COMMIT
                     [error] =
                     [affected] = 0
                     [numRows] =
                     [took] = 0
                 )
 that is all..

 With every option that I tried my $this-data['User'] will be empty in
 the beforeSave(), but it's not in controller. When I'm trying 
 if($this-User-saveAll($this-data, 'validate' = 'first')) script always

 returns true, but nothing will be saved.

 Can anyone please advise with that? At least in which direction we can
 do research etc.

 Michal

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