menu =  DIV(UL( LI(A(plot_list[0]py',_id ='plot_context_menu', _href = 
'')), list_string,                      
                    _class = 'dropdown-menu', _role='menu', 
_aria='dropdownMenu', _style = _context_menu_style),
                    _id = 'contextMenu', _class = 'dropdown')

i try to create a drop down menu for a list of items returned in the 
database as links. list_string is concatenated string ex:  
LI(A(plot_list[0]py',_id ='plot_context_menu', _href = '')), 
LI(A(plot_list[1]py',_id ='plot_context_menu', _href = '')), 
LI(A(plot_list[2]py',_id ='plot_context_menu', _href = '')). 
the reason why i did not do  LI(A(plot_list[0]py',_id ='plot_context_menu', 
_href = '')) for the rest of items in DIV(UL()) tag because the number of 
items in list is unpredictable, so that is why i have to use for loop to 
create a concatenated string stored in list_string and put that variable in 
DIV(UL(list_string)) so that it will create links for every time in the 
drop down menu. i got the string correctly but somehow it does not make 
links, it just show the long concatenated string in drop down menu instead 
of links of items. 

Please Help 

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/f7652bf3-db92-4768-8d0b-46142b00e940%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to