did you see by any chance https://github.com/niphlod/w2p_timezone_plugin ?
it seems you're trying to do what is done at
https://github.com/niphlod/w2p_timezone_plugin/blob/master/modules/plugin_timezone/__init__.py#L124

On Sunday, April 14, 2013 6:51:11 AM UTC+2, funm...@gmail.com wrote:
>
> Hi All,
>
> I am very new to coding, and am learning my way with the web2py framework 
> and tools. I am trying to get return a value that i got from the view to 
> the controller. This seems to be a basic idea, but i am not sure how to do 
> it. Hope you may share an example. thanks!
>
> Regards,
> Wayne
>
>
> The view, list_prototype2.html. I want to pass var tz back to the 
> controller.
>
> <script type="text/javascript" 
> src="{{=URL('static','js\jstz-1.0.4.min.js')}}"></script>
> <script type="text/javascript">
> $(document).ready(function( ) {
>     var tz = jstz.determine( );
>     response_text = 'No timezone found';
>     if (typeof (tz) === 'undefined') {
>         response_text = 'No timezone found';
>     }
>     else {
>         response_text = tz.name( ); 
>     }
>     $('#Method_2_tz_info').html(response_text);
>
> });
> </script>
> <p id="Method_2_tz_info"></p>
>

-- 

--- 
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