You can use the web2py template syntax within your JS code, just as within 
HTML:

if ({{=results.update_form.custom.dspval.id}} != null){

Above we have the web2py template delimiters, {{...}}, within the JS code.

Anthony

On Sunday, November 3, 2013 2:45:26 PM UTC-5, david.waldrop wrote:
>
> Niphlod thanks for the quick reply.
>
> I was heading down that path.  
>
> I added the following in the viewcode
>
> {{res=results}}
>
> with the hopes of being able to reference res form javascript.  But have 
> not figured it out just yet.  Is this the common way to get access to the 
> server/template info form within javascript?
>

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