Hi Niphlod,

Thanks for providing this plugin. This sounds like what i am trying to do. 
This is great. I will have to learn how to use it.

regards,
Wayne

Niphlod於 2013年4月14日星期日UTC+8下午8時21分56秒寫道:
>
> 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, [email protected] 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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to