Re: Using javascritp variables in cakephp

2009-03-19 Thread lucas
Brian, you were right! I thought that when you call a php code inside a javascript code, it will create a data stream to the server and execute that part of the php code there... wrong! i wrote inside the append function the html code that i wanted as you tell me and that worked fine!!! thanks f

Re: Using javascritp variables in cakephp

2009-03-18 Thread brian
On Wed, Mar 18, 2009 at 1:09 PM, lucas wrote: > > Hi Brian, thanks for your answer. The matter here is that i can > generate the elements dinamically but i´m not able to generate their > names dinamically, all the new input fields generated has the same > name and same ID... so, i want to to conc

Re: Using javascritp variables in cakephp

2009-03-18 Thread lucas
Hi Brian, thanks for your answer. The matter here is that i can generate the elements dinamically but i´m not able to generate their names dinamically, all the new input fields generated has the same name and same ID... so, i want to to concatenate in the name of the input field a variable number

Re: Using javascritp variables in cakephp

2009-03-18 Thread brian
On Wed, Mar 18, 2009 at 9:02 AM, lucas wrote: > > Hi people! i´m generating some input fileds dinamically with > jquery... > to generate the input fields i am using this code: $ > ("#newFormField").append('input('',array > ('label'=>'Nombre'));?>'); PHP doesn't run on the client. How do you

Using javascritp variables in cakephp

2009-03-18 Thread lucas
Hi people! i´m generating some input fileds dinamically with jquery... to generate the input fields i am using this code: $ ("#newFormField").append('input('',array ('label'=>'Nombre'));?>'); the problem is that i need to generate the name and the id of the input using some jquery global varia