By applying Server-side DOM and parsing (
http://web2py.com/books/default/chapter/29/05/the-views?search=DOM#parent-and-siblings)
 
you could use:

 my_select = form.element('select[name=TestField]')
 my_select_parent = my_select.parent
 my_select_parent['_style'] ='width:400px;'



Il giorno giovedì 31 ottobre 2013 04:54:51 UTC+1, Sarbjit ha scritto:
>
>
> Thanks for reply.
>
> Well, this issue that I am observing is not specific to my system only, I 
> tried it on two other systems in IE8 and all of them were having the same 
> issue.
>
> Anyways, I was able to get the exact width in IE, if I added a width of 
> 400px to TD element containing the SELECT. So, I modified the web2py.css 
> and added width for TD.w2p_fw and it resolved the issue. 
>
> One question is :
>
> What If I had to modify the style using my controller i.e I want to modify 
> the style for the element using controller only and not modifying the css 
> file. What should be the code for the same.
>
>
> -Sarbjit
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to