Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9104801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T01:56:54+00:00 2026-06-17T01:56:54+00:00

I am working with plugin datatable and django. I have url to view ajax_table

  • 0

I am working with plugin datatable and django.

I have url to view ajax_table in urls.py:

url(r'^someurl/$', 'someapp.views.ajax_table', name='ajax_table'),

This way I can call function ajax_table from my datatable.

var datatable = $("#my_table").dataTable({
    "bJQueryUI" : true,
    "bProcessing":true,
    "bServerSide": true,
    "sAjaxSource": "{% url ajax_table %}",
    "sPaginationType": "custompagination"
};

It is working properly.

But when I try to send some params from client to server code:

"sAjaxSource": "{% url ajax_table %}?param=some_number"

I can not get this param on server side (‘no param’ printed):

def ajax_table(request):
    print 'param: %s' % request.GET.get('param','no param')

How can I send param to server properly?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T01:56:56+00:00Added an answer on June 17, 2026 at 1:56 am

    This isn’t a django problem (you’re doing the right thing here as far as django is concerned), it’s a datatables issue. You can’t add params directly to the sAjaxSource parameter, you have to do it with the datatables API.

    The following documentation describes how to send extra data to the server in the form of parameters.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on datatable plugin in Jquery. And have to set the default
I am enabling jQuery DataTable Plugin like this and it is working: $('#MyList').dataTable( {
I have Phonegap's Facebook plugin working perfectly within my Android app. This plugin uses
I have this fantastic little plugin working but I need to require that at
I've got my autocomplete plugin working perfectly... except I have certain info that I
I am trying to get this awesome JQuery plugin working with SQL Server. I
I'm working on a plugin and there's a view which has a treeviewer. I
Because there isn't a working plugin for Joomla 2.5 which provides canonical URLs (beside
I have the galleria.js plugin working perfectly on local, but when I move it
I am not able to get jQuery Address plugin working. I have an index

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.