If you want to dynamically add a component in the browser, you cannot use 
the LOAD helper, which is a Python helper that is serialized on the server. 
Instead, use the $.web2py.component() Javascript function. Something like:

<input type="button" value="Edit" onclick="$.web2py.component('{{=URL('
default', 'edit_page.load')}}', 'edit-form');">

<div id="edit-form"></div>

Anthony

On Friday, June 13, 2014 7:47:34 PM UTC-4, Omri Levy wrote:
>
> Hi ,
>
> So I have a ticket system, and I want to allow user to edit the ticket 
> without leaving the page.
> I don't want to LOAD the edit_page and hide it, but only load it once user 
> is clicking on the ticket body.
> Another thing is, when user edits the ticket, he should again see changes 
> on the same page.
>
> Is this possible? I'm a bit confused, because LOAD works fine, but not 
> when using conditions with JS.
>
> Thanks.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to