Form in Element instead of View

2014-08-06 Thread Jovan Chee Nanić
$this-element('register'); ? I created form in element, a same way in view. ?php $customers = $this-requestAction('customers/add'); ? div class=customers form ?php echo $this-Form-create('Customer'); ? ?php echo $this-Form-input('salutation', array

Re: Form in Element instead of View

2014-08-06 Thread José Lorenzo
in cakePHP. I have template where are put all divs and from jQuery then show or hidden appropriate div. I have two div with forms to store some data in db. I crated elements for my div-s, and then in my layout, in each div i put br/ ? php echo $this-element('register'); ? I created form

Population values in a form in element view

2012-09-05 Thread DiabloGeto
Hi All, I have a Form which contains only checkbox with different Attributes.I have a array with key value pair of name of the input field and check box values and i have passed the same to the view. I am using that form in the another view as a element however as a element it

Adding image (png) icon in form-button element - please help.

2011-12-07 Thread Blues Clues
Hi: I have a, hopefully, silly problem. Can you help ? I have for Form-Button in my view that looks like this... ?php echo $form-button('Edit', array('class'=btnEdit, 'escape'=true, 'type'=button)); ? Now, I would like to add a small img (png) before 'Edit' to make it pretty. ?php echo

Re: Adding image (png) icon in form-button element - please help.

2011-12-07 Thread euromark
why are you purposely setting 'escape'=true? if you want to use html inside an element you are shooting yourself in the foot this way. it should rather by false then. On 7 Dez., 21:10, Blues Clues bluesclu...@gmail.com wrote: Hi: I have a, hopefully, silly problem. Can you help ? I have for

Re: Adding image (png) icon in form-button element - please help.

2011-12-07 Thread Blues Clues
Yes, you are correct. I guess, I was being ignorant. Thanks. It works now. On Dec 7, 3:49 pm, euromark dereurom...@googlemail.com wrote: why are you purposely setting 'escape'=true? if you want to use html inside an element you are shooting yourself in the foot this way. it should rather by

RE: Form in element

2010-02-04 Thread Dave
where I was but the form has no errors hilighted saying why failed. -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of John Andersen Sent: February-04-10 4:16 AM To: CakePHP Subject: Re: Form in element If I understand you correctly Dave

Re: Form in element

2010-02-04 Thread John Andersen
: Form in element If I understand you correctly Dave, then you have a page A on which is a newsletter signup form. When the user submits an e-mail address, you want to present the user to page B if the e-mail address is valid. If the e-mail address is not valid, stay on page A. Correct

Form in element

2010-02-03 Thread Dave
I have a form in an element and wondering how to return back to the page it was sent from if its successful or if there are errors display the errors on the same page. Basically its a side menu and at the bottom a mini form to signup for newsletter which is on every page. So if the user adds

Re: Form in element

2010-02-03 Thread John Andersen
wrote: I have a form in an element and wondering how to return back to the page it was sent from if its successful or if there are errors display the errors on the same page. Basically its a side menu and at the bottom a mini form to signup for newsletter which is on every page. So if the user

ajax form field element null error

2009-02-20 Thread mrrezania
if (element._prototypeEventID) return element._prototypeEventID[0]; Source File: /prototype.js Line: 3847 If I remove the ajax line, the error is not there. Have I written it wrong? Hope someone can help me. Regrads, Mohammadreza -- View this message in context: http://n2.nabble.com/ajax-form