http://web2py.com/books/default/chapter/29/07

On Tue, Dec 25, 2012 at 4:43 PM, Bhaskar Ramachandran <[email protected]> wrote:
> Thanks Alec,
>
>     I understand your point of why using helpers will be good. Since this is
> my first attempt at web2py, i didn't know that and already have a form that
> is coded directly in html with db statements spread into it here and
> there...
> I can understand why the form object will not exist in memory when the user
> submits the form because there is no FORM object created in controller
> during execution.
>
> But what about the DOM objects like radio buttons, text area etc in the html
> ?. When the view file is processed and the response object is working on it
> to generate pure HTML , won't it create a DOM tree structure in memory. ?.
> If so, then at the point, before returning the html page to the user, i
> should be able to modify the DOM tree. But i don't know how to do this....
>
> Sorry if this is not making much sense ... But as I am learning web design,
> my knowledge is very rudimentary.... Thanks for your help..
>
>
> On Monday, December 24, 2012 11:32:10 PM UTC-6, Alec Taylor wrote:
>>
>> Bhaskar: By using the web2py helpers you get a variety of security
>> protections including from:
>> - CSRF
>> - XSS
>> - Code injection
>>
>> You can create custom form attributes that don't appear in your DB also.
>>
>> As for the DOM stuff that you're talking about, listen to Anthony.
>>
>> Also use JavaScript in order to not burden your server + give users' a
>> quicker, more "responsive" response
>>
>> On Tue, Dec 25, 2012 at 4:18 PM, Bhaskar Ramachandran <[email protected]>
>> wrote:
>> > Bhaskar
>
> --
>
>
>

-- 



Reply via email to