Hi Anthony,

Thanks for the tip. 

While i should use the plugin, i do want to learn how this can be done. I 
am trying to google around for this. If you may share any tips or starting 
points to read, it will be greatly appreciated.

Regards,
Wayne

Anthony於 2013年4月15日星期一UTC+8上午12時11分35秒寫道:
>
> In general, you would have to do that either via a form submission, or via 
> an Ajax request.
>
> Anthony
>
> On Sunday, April 14, 2013 12:51:11 AM UTC-4, [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