Hi,
Thanks for your reply, I am not sure I completely understand your
solution.
In which file(s) do I put the following lines of code:
> // create dialogbox
> document.write("<div id='dialogdiv' style='display:none'></div>")
> $(document).ready(function(){
> $('#dialogdiv').dialog({autoOpen : false, modal : false, width :
> 'auto'});
>
> })
>
> // open url in dialog box
> function dialog(url) {
> web2py_ajax_page("get", url, null , 'dialogdiv')}
Does document.write(...) replace this part of your previous reply:
<div id="web2py_user_form" style='display:none'>
why document.write()? does it create sort of a container for the
entire default/user.html view?
> ... and then you can just replace any url with
> dialog(url) and it will show up in a dialog.
You mean replace this: href="{{=_link}}" in the auth_menu rendering
with something like:
_onclick="javascript:dialog({{=_link}})
What about web2py's internal behaviour of opening the login function
whenever a function is decorated @auth.requires_login()
I searched the book for web2py_ajax_page but could find anything,
where is this functionality documented?
Kind regards,
Annet.