I tried <a onclick="web2py_ajax_page('POST','{{=URL
(r=request,f='register')}}','','data')"> <button
type="button">Register</button></a>
but nothing happened when I clicked the button.
Then I tried again by adding {{=LOAD
('default','register',ajax=True,ajax_trap=True)}} to the view I get
following result.

<script><!--
web2py_component("/register","796460028363")
//--></script><div id="796460028363">loading...</div>

but if ajax=False then the register's view get displayed within main
view.
But how can I do the same with Register button's click.
I tried many ways but failed.
Any suggestions are welcomed.

Arun

--

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


Reply via email to