template or javascript

2016-10-10 Thread Lorenzo Bernardi
Hello, I'm making a website with bootstrap and I use some menu items (in fact nav bars) and I was wondering what is the best practice to make a menu item highlighted when I am on the page connected with this menu item. I mean in bootstrap the nav bar has a to highlight the fact that I'm

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