If your meaning pass the data to the view you can do it like this:
def index():
    var1= 12345
    return dict(var1 = var1)

and then in the view in your javascript:
var thingy_var = {{=var1}};

But it gets different based on what you want to do.  For example you could
create a JSON object or need to create an array of items.  Each could have
it's own way of dealing with things.
BR,
Jason Brower


On Thu, Sep 5, 2013 at 9:16 AM, sonu kumar <[email protected]>wrote:

> Hi,
> How to pass view python variable into java script function?
>
> Thanks
>
> --
>
> ---
> 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.
>

-- 

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