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.