After some hours of experiments I have three questions:

*The code*

I want to have a menu with nested entries, something like


response.menu = [
    ('AA', False, URL('default', 'a1'),[]),
    ('A', False, None, [
        ('A1', False, URL('default', 'a1'),[]),
        ('A2', False, URL('default', 'a2'),[]),
       ]),
]


And this is the simple controller:

def a1():
    return dict(name="a1")

def a2():
    return dict(name="a2")



On Mar 9th Massimo wrote:  *"... the posted plugin online is old and broken
(I need to fix it).*
*now a working version of plugin jquery comes with web2py. It is in admin.
..."*

Therefore I have copied the jqmobile files to my application.

The result: there is the same menu both on my desktop computer and on my
mobile device. It looks like
http://view.jquerymobile.com/1.3.0/docs/widgets/collapsibles/
"Expanded Version"

A click on "AA" works fine and the function a1 is called.
A click on "A" does not show the submenues but the message "Error Loading
Page" - the message comes from jqmobile. I had no chance to call a1 or a2.

*These are my questions:*

(1) How can I use nested menus with jqmobile?

(2) The "Collapsibles" menu of jqmobile looks very fine on mobile devices,
but not on a desktop computer. I know, jqmobile tries to create the same
look on every device, but on a desktop computer the menue items are too
wide and the items should not be one below the other but side by side. How
is it possible to have both forms?

(3) There is a new directory  app/views/default.mobile - how to use it?

Regards, Martin

-- 

--- 
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/groups/opt_out.


Reply via email to