Its not javascript code its just a JSON encoded string.

On Wed, Apr 21, 2010 at 8:22 AM, Massimiliano Arione <garak...@gmail.com> wrote:
> On 19 Apr, 16:46, Tofuwarrior <psbur...@googlemail.com> wrote:
>> As a general principle is my approach ( ie pull the data from an
>> action into the jQuery) correct.
>
> I don't think your approach is fully correct.
> You should never mix javascript and php code.
> You should write php (and so html) as if javascript wouldn't exist.
> Then, in a second step, add user interface enhancement with pure
> javascript files.
> It's a matter of separation of concerns: html (php) for structure, css
> for presentation, javascript for behavior
>
> cheers
> Massimiliano
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to