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 tried the following:

    this.dataSource= new YAHOO.util.DataSource("http://localhost:2985/
player/get_data");
    this.dataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;

where get_data is the function that returns a JSON object, but it does
not receive anything. If I type that URL in my browser, I see the JSON
formatted data. Do I need to do something completely different to get
the data to the Javascript?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to