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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:24:43+00:00 2026-06-13T19:24:43+00:00

I am using ajax page loader plugin in wordpress . in every post page

  • 0

I am using ajax page loader plugin in wordpress . in every post page i m using

<a id="a_link" rel="nofollow" title="Print This Page" target="_blank" href="http://myurl.com/temp/?page_id=444&print=1">
<img class="WP-PrintIcon" style="border: 0px;" title="Print This Page" alt="Print This Page" src="http://myurl.com/temp/wp-content/plugins/wp-print/images/print.gif">
</a>
<a id="a_link" rel="nofollow" title="Print This Page" target="_blank" href="http://myurl.com/temp/?page_id=444&print=1">Print This Page</a>

But failed to open new tab. i also write code of JS in ajax page loader plugin’s script where content loaded.
to load this this script on ajax page loading.

jQuery('a').click(function (event) {

            var id = jQuery(this).attr("id");
            if(id == 'a_link'){ var href = jQuery(this).attr("href");
                jQuery('#supersized-loader').css('display','none');
                window.open(href);
            }
        });
  • 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-13T19:24:44+00:00Added an answer on June 13, 2026 at 7:24 pm

    You should change the design of your selector a bit to prevent it handling all links:

    jQuery('a[target!="_blank"]').click(function (event)
    

    This should prevent the ajax page loader from running on links with the attribute target="_blank". The code you added inside the loader is obsolete then.

    And: You can use an id only once. In your example you are using a_link at least twice.

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

Sidebar

Related Questions

I am using Galleria plugin for a image gallery on a page this page
I'm building Wordpress website where all content pages are loaded using Ajax. This is
How to include loader image without usng AJAX controls like Scriptmanager, UpdateProgerss. Note: Page
I have a drop down list which is dynamically generated using ajax on page
I am working on ajax-page using PageMethods (web service) to interact with server. I
How to send looping data from html page to php page using ajax. I
I want to retrieve HTML and Javascript from the same page using AJAX calls.
I'm using AJAX to get data for several business-card like divs on my page
I am using jQuery to load a page by AJAX using $.ajax (suppose test.html).
I have a page where I load a table of information using ajax. Once

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.