Re: {% url %} template and javascript Get with callback

2010-09-20 Thread bruno desthuilliers
On 19 sep, 18:52, Ben Kraft wrote: > I'm trying to do a javascript post to an internal api and use a > callback to process the JSON result.  I'm referencing the api using, > > {% url %}, > > which returns a path url relative to my domain ( /api/... instead >

Re: {% url %} template and javascript Get with callback

2010-09-19 Thread Steve Holden
On 9/19/2010 12:52 PM, Ben Kraft wrote: > I'm trying to do a javascript post to an internal api and use a > callback to process the JSON result. I'm referencing the api using, > > {% url %}, > > which returns a path url relative to my domain ( /api/... instead of > http://localhost/api/... for

{% url %} template and javascript Get with callback

2010-09-19 Thread Ben Kraft
I'm trying to do a javascript post to an internal api and use a callback to process the JSON result. I'm referencing the api using, {% url %}, which returns a path url relative to my domain ( /api/... instead of http://localhost/api/... for the dev site). The problem is js does not recognize