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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:27:40+00:00 2026-05-15T03:27:40+00:00

I have tabs that calls via javascript urls of django to complete the container

  • 0

I have tabs that calls via javascript urls of django to complete the “container”

But i am getting 301, any idea why this is happening?

Server misconfiguration?

urls.py

urlpatterns = patterns('',
     (r'^admin/', include(admin.site.urls)),
     (r'^list/', 'carsproj.cars.views.list'),
)

view

def list(request):
if request.is_ajax():
    return render_to_response('templates/generic_list.html',
                          { 'items' : Cars.objects.all(), 'name' : 'List - Cars' },
                          context_instance = RequestContext(request))

javascript

the_tabs.click(function(e){

    var element = $(this);

    if(element.find('#overLine').length) return false;

    var bg = element.attr('class').replace('tab ','');

    $('#overLine').remove();

    $('<div>',{
        id:'overLine',
        css:{
            display:'none',
            width:element.outerWidth()-2,
            background:topLineColor[bg] || 'white'
        }}).appendTo(element).fadeIn('slow');


    if(!element.data('cache'))
    {   
        $('#contentHolder').html('<img src="/media/img/ajax_preloader.gif" width="64" height="64" class="preloader" />');

        $.get(element.data('page'),function(msg){
            $('#contentHolder').html(msg);

            element.data('cache',msg);
        });
    }
    else $('#contentHolder').html(element.data('cache'));

    e.preventDefault();
})

Please tell me what more information you need, js code? template? url.py? I WILL EDIT THIS POST FOR ADD MORE DATA

  • 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-05-15T03:27:40+00:00Added an answer on May 15, 2026 at 3:27 am

    The problem was adsense code!!
    remove the adsense from the ajax response and now its workign!

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

Sidebar

Related Questions

I have this tabs that are working perfect in any browser apart from IE
I have an AjaxControlToolKit TabContainer with 2 tabs that I load via a custom
I have several tabs that are loaded via ajax, and each one has a
I have some tabs that I load the content up via ajax. I am
I have a javascript function that calls another function, I am now facing a
I've created a series of tabs that have a fixed width of 100px. A
I have an application with tabs that are all webviews. I'm using UIWebViewDelegate so
I have some CSS and HTML for horizontal tabs that works perfectly in jsfiddle.
I have a page with two tabs that I want to be able to
I have been looking into packages that would enable me to have tabs in

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.