I have a javascript file in /public/javascript that I want to receive
data from a pylons function. I am returning JSON formatted text in
this function in /controller/player.py and want the JSON output going
to a Javascript function. I am not sure how to route this data to this
function. I have
On Sun, Nov 04, 2007 at 07:45:13AM -0800, JamesT wrote:
I have a javascript file in /public/javascript that I want to receive
data from a pylons function.
I assume that you are including and running that Javascript from the
HTML output you send to the browser. :)
I am returning JSON
I think it has to do with the route to the pylons controller/function
from the javascript file. Is your javascript located in /public/
javascripts/? Mine is located here and my controller is in /
controllers/player.py. Can i refer to the controller/function from the
javacript file by using
On Sun, Nov 04, 2007 at 05:48:10PM -, JamesT wrote:
I think it has to do with the route to the pylons controller/function
from the javascript file. Is your javascript located in /public/
javascripts/?
Yes. And in one case I load the Javascript from my HTML document like:
script
I just got it, I just needed to include $
{h.javascript_include_tag('yui/build/connection/connection-min.js')}
in my .mako file before including the datasource component. This makes
the /controller/function map as expected.
Thank you for your help and your quick responses.
On Nov 4, 1:47 pm,