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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:17:49+00:00 2026-05-24T06:17:49+00:00

link to page exhibiting problem hi, My jq script, assembled from tuts on the

  • 0

link to page exhibiting problem

hi,
My jq script, assembled from tuts on the web, is being overridden by the main tabbing jQ and its associated styling. This is the part of my script that is being overridden $(reff2+' li:first').addClass('ui-tabs-selected'); The rest of the script below:

$(document).ready(function() {

    $("#propagin a").live('click', function(eve) {
        eve.preventDefault();

        var link = $(this).attr('href');
        var reff = $(this).attr('href').replace(/^.*?(\d+)\/.*$/g, "$1");
        var reff2 = '#fragment-' + reff ;

        $.ajax({
            url: link,
            type: "GET",
            dataType: "html",
            success: function(html) {
                $(reff2).html(html);
            }
        });

        $(reff2 + ' li:first').addClass('ui-tabs-selected');
    });
});

The behaviour I want is that the first sub-tab should be selected or in other words have the correct class assigned to it by my jq script. Clicking the pagination links brings into view the right set of new sub-tabs which means that the ajax part of my script is working. But the first sub-tab of the new set doesn’t have the right class e.g ui-tabs-selected.

You can see the process unfolding in the browser. The new set of sub-tabs appears on clicking the pagination links, and for a moment the first sub-tab is correctly styled, before the more senior tabbing jq with its styling kicks in and removes the style that I want.

What can I do about this that doesn’t clobber the senior jquery and its associated CSS which together make possible the slightly convoluted tabbing scheme that I have ?

Tom

  • 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-24T06:17:50+00:00Added an answer on May 24, 2026 at 6:17 am

    Much of the code in the page you provided is still linking to localhost.

        <link type="text/css" href="http://localhost/gopag//css/ui.tabs.css" rel="stylesheet"> 
        <link type="text/css" href="http://localhost/gopag//css/nested-jquery-yui.css"  rel="stylesheet"> 
    

    Once those are fixed, then it’ll be easier to see what the issues might be.

    You may also want to fix the #propagin div – having three divs with the same ID can cause unpredictable behaviour (each element should have a unique id). You can either change the div to a class (and update your CSS/jQuery to .propagin), or have ids like #propagin1, #propagin2 etc.

    EDIT:

    Hi Tom,
    Sorry I wasn’t able to get back to you right away. I scraped a copy of your website and found the same issue you had, until I moved the addClass inside the $.ajax function. The style applied properly after that:

    $.ajax({
        url: link,
        type: "GET",
        dataType: "html",   
        success: function(html){
            $(reff2).html(html);
            $(reff2 + ' li:first').addClass('ui-tabs-selected');
        }
    }); 
    

    Hopefully, that works for you.

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

Sidebar

Related Questions

I have a link to a page which invokes the 'Sexy Alert Box' script
I click on a link from one page that does a redirect to another
I want to retrieve the HTML code of a link (web page) in PHP.
Let's take as an example 3 entities being page (a webpage), a link and
I have used the code from apples example from this page: Link , but
I want to do something like this: page A has a link to page
I want to link to a page which contains multiple support topics. When the
I add my page top link button like this: <a name=top></a> . . .
I have a link on a page that pops up a new window, and
this is my link in my page asp:HyperLink ID=HyperLink1 runat=server NavigateUrl=~/Default.aspx>Add Record /asp:HyperLink with

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.