Can you be more specific with your question?

It sounds like you are asking to execute a pyjamas functions from the
controller. Controllers can't call functions defined in pyjamas, only
respond to calls from them... you need to define functions in your
controllers that are exposed as json services, and then call them from
the client side.

Having said that, if you write a python module for your pyjamas app,
you can also include that module in your web2py app. Then you can
share the same source code and functionality. The difference is where
that code gets executed when its run...if you execute it in your
pyjamas app, it will run in the browser client environment, if you use
the code in your web2py it will run in the web server context.

Chris
On Dec 16, 4:58 pm, haftish21 <[email protected]> wrote:
> I saw the example on how to develop an app using both web2py and
> pyjamas. My question is a similar but a bit different.
>
> Pyjamas helped me write some python functions that integrate a
> javascript library. But, I couldn't trigger those functions right from
> the controller environment. Help???

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to