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

  • Home
  • SEARCH
  • 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 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 webpage that implements a set of tabs each showing different content.
I have using the following code for developing tabs. $(document).ready(function() { $('#container-1').tabs(); } ....
I have a jQuery tabs element that is working great at loading remote content.
If I have 10 tabs opened, I have to close each one using :q
I have created some rounded navigation tabs using CSS and am having trouble when
I have created an interface using jQuery UI Tabs, however one of my requirements
We have a few very large Excel workbooks (dozens of tabs, over a MB
I have an ajax toolkit TabContainer control on my page with a couple tabs.

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.