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 8271419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:50:09+00:00 2026-06-08T06:50:09+00:00

I’m currently looking through the Dajax examples on http://www.dajaxproject.com/pagination/ and when I execute the

  • 0

I’m currently looking through the Dajax examples on http://www.dajaxproject.com/pagination/ and when I execute the Random Number Example and the Simple Form Example, I could see:

[20/Jul/2012 15:06:37] “POST /dajaxice/couch.randomize/ HTTP/1.1” 200 61

[20/Jul/2012 15:06:38] “POST /dajaxice/couch.updatecombo/ HTTP/1.1” 200 438

These information tells me that the corresponding ajax tasks are being executed. Now I’m trying to do the pagination example, but I don’t know how to trigger my ajax, there’s no onclick or onchange event and it’s supposed to load directly when i serve my page.

When I use a button (onclick event) to invoke my pagination, it worked.

What am I missing here? Thanks.

  • 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-08T06:50:11+00:00Added an answer on June 8, 2026 at 6:50 am

    Are you using the code from the example completely as is, or have you added to it? If you have, posting the code might help. I presume you have one of the required javascript frameworks in place (jQuery, mootools etc) – a Dajax requirement.

    have you imported Dajax in your ajax.py? The example doesn’t have it, but I believe it’s required:

    from dajax.core import Dajax
    

    as the example uses Dajax()

    There are also some installed apps settings.py requirements for dajaxice and dajax – described in the docs https://github.com/jorgebastida/django-dajaxice/wiki/installation

    You might also want to turn on some logging for Dajax – see Dajax installation for an example, and run with debug=True for awhile if you’re not already.


    Update:

    @Nicholas TJ – Your comment about setup & success through alternate call noted. I did notice another question here where there was a problem with the pagination example, regarding how to call the Dajax process from the template.

    How do I call Dajax / Dajaxice functions from my Django template

    I’ve been calling Dajax through JS functions, so the template call method is unexplored territory for me. Sounds like you had similar success with your onclick call. Haven’t looked into the possibility of deprecated template call procedures – might be an out of date example.

    I also notice that the heading for the example ‘pagination_page.html’ is written as ‘paginator_page’ – if the heading is used as the template name there’ll be obvious problems. I’ll give the example a shot when I’m able.

    Ok – at the risk of absurdity – new Update . I got a slightly modified example to work after the vanilla example did not.

    It requires

    from dajax.core import Dajax
    

    in ajax.py, which the example did not have. It also did not work until I used a RequestContext for the base view – a la:

    def pagination_example(request):
    items = get_pagination_page(1)
    return render_to_response('paginator_example.html',{'items':items},context_instance=RequestContext(request))
    

    Then it worked as expected.

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

Sidebar

Related Questions

I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I am currently running into a problem where an element is coming back from
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
i got an object with contents of html markup in it, for example: string

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.