Bookmarking with server side processing

Bookmarking with server side processing

dcohendcohen Posts: 2Questions: 1Answers: 0

Description of problem:
Reposting garpinc's post as it still pertains to version 1.10
Is it possible to implement bookmarking (or to show the URL endpoint) when using Datatables' serverside processing with Django? The only implementation I have found with Django and serverside processing is to create a separate JSON view to handle the Ajax request. Is there a better way of doing this in order to show the full URL for bookmarking?

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    This blog post may help, it shows how to create URLs into your table. Is that what you were looking for?

    Colin

  • dcohendcohen Posts: 2Questions: 1Answers: 0

    Thanks for the reply @colin but not quite what I am looking for. The issue with serverside rendering, at least the only way I have seen it implemented, is that you need to create a separate Django view to handle the Ajax request. That means that the other Django view which handles rendering the rest of the HTML, has no access to the Ajax request and therefore does not show its parameters.

  • allanallan Posts: 63,445Questions: 1Answers: 10,465 Site admin

    Doesn't the blog post that Colin linked to show a method that links to the two. indeed, although it isn't Django (it uses a PHP script), the HTML that renders the table is not the PHP that returns the JSON data. The Javascript will use the data from the query parameters to modify its request for the data from the server-side script - thus allowing bookmarking.

    Allan

Sign In or Register to comment.