On Oct 5, 2009, at Oct 5, 2009 - 8:02 AM, Benjamin Goudey wrote: > > I'm trying to figure out how to use web.py and JQuery together and I > found a neat example posted by jgfoot last year on how to do this.
I use jquery all the time, and it does a lot of json requests and other to my webpy app. But I don't really see the reasoning behind your question. Json is just a format. It doesn't matter if you are using jquery, prototype or plain javascript with no framework on the other end. > But > I can't seem to get it to work the way I think it should. My > understanding is that the > #riverName paragraph should get filled with the river corresponding to > the city. Make sure the app receives cityName alright, then load the json URL directly in the browser and see if the output is the expected. If yes, your problem is in the javascript code. If no, your problem is in the python code. > But this doesn't happen for me. But I do know that it is > retrieving the river name as it prints to stderr. Question: why aren't you using pythons own json module for writing json (assuming you are using python 2.6). Or if 2.5, use simplejson. Alec --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
