Thank you, Jorge! Yes, that helps a lot! On Apr 2, 5:18 am, Jorge Bastida <neo2...@gmail.com> wrote: > Hi Lj, > > > I am building a django web app that has a control panel with various > > icons. Right now, the icons have href tags that load a new page when > > the user clicks the icon. I want to change this to instead call a > > jQuery function that will use ajax, or dajaxice, to render only the > > content part of the page. > > Does this sound possible? > > Yes, absolutely. > > > Would this be easier to do with Dajaxice, or with jQuery functions? > > Could I still use django templates for the content that corresponds > > with each icon? > > In every panel icon, you should register an onclick event and call your > registered dajaxice function or instead use jQuery to call your own view. > > That dajaxice function or your own view should return the html content that > you want to show. How? probably rendering that code using render_to_string > [1] > > [1]http://docs.djangoproject.com/en/dev/ref/templates/api/#the-render-to... > > Hope this helps you, > > Jorge Bastida.
-- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.