Ah you want the whole URL to be in a dialog. I spent ages figuring
this out and the answer is already included in web2py!! You just
include the code below and then you can just replace any url with
dialog(url) and it will show up  in a dialog. Brilliant!!

// 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')
}
############
you can get rid of the dialog bar in css:

.ui-dialog-titlebar { display:none; }
################################

I don't know why you have scroll bars in your dialog because I don't.







On Jan 18, 8:44 am, Annet <anneve...@googlemail.com> wrote:
> Does the first problem has anything to do with auth_menu:
>
> in menu.py:
>
> if 'auth' in globals():
>     if not auth.is_logged_in():
>         response.auth_menu = [
>             ['Login',request.function=='user' and
> request.args(0)=='login',URL('default','user/login')],
>             ['Gebruikersnaam opvragen',request.function=='user' and
> request.args(0)=='retrieve_username',URL('default','user/
> retrieve_username')],
>             ['Wachtwoord opvragen',request.function=='user'and
> request.args(0)=='request_reset_password',URL('default','user/
> request_reset_password')]]
>     else:
>         response.auth_menu = [
>             ['Logout',request.function=='user'and
> request.args(0)=='logout',URL('default','user/logout')],
>             ['Profiel wijzigen',request.function=='user' and
> request.args(0)=='profile',URL('default','user/profile')],
>             ['Wachtwoord wijzigen',request.function=='user' and
> request.args(0)=='change_password',URL('default','user/
> change_password')]]
>
> in admin/index.html:
>
> <div class="ez-box">
>   {{if response.auth_menu:}}
>     <p>
>       {{for _name,_active,_link in response.auth_menu:}}
>         <a {{if _active:}} class="active" {{pass}} href="{{=_link}}"
> style="padding-right: 6px;">{{=_name}}</a>
>       {{pass}}
>     </p>
>   {{pass}}
> </div> <!-- ez-box -->
>
> Annet.

Reply via email to