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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:26:28+00:00 2026-05-25T01:26:28+00:00

Ok so the usage scenario is as follows: I have a button that opens

  • 0

Ok so the usage scenario is as follows:

I have a button that opens the current page for printing using the jquery print plugin.

 $("#Section1").printElement({
        leaveOpen: true,
        printMode: 'popup',
        pageTitle: '<%=Resources.Reporting.Text_Title%>'
    });

The result is what I expect. A print preview window and a printing settings dialog are shown.

If I click one more time and the print preview page is minimised i get “Access Is Denied” js error pointing to JQuery.printElement.js.

If it’s not minimised it just opens the same print preview popup as before.

This is IE behaviour just to mention. In Firefox there’s a “Not Available” alert from the browser.

Is this something I can fix?

From what I’ve searched so far this “Access is denied error” is linked to
making a call to a sub domain from a different domain”

  • 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-25T01:26:29+00:00Added an answer on May 25, 2026 at 1:26 am

    Thanx Blowsie, it might give that a go.

    The problem was due to the fact that the print plugin tried to open a new window with the
    same name every time I would press the print page button. I changed it so that a new and unique name is used every time the print preview page is open.

      if (opts["printMode"].toLowerCase() == 'popup') {
            popupOrIframe = window.open('about:blank', 'printElementWindow', 'width=650,height=440,scrollbars=yes');
            documentToWriteTo = popupOrIframe.document;
        }
    

    to:

        var windowName = "printElementWindow";
        windowName = windowName + (Math.round(Math.random() * 99999)).toString();
        if (opts["printMode"].toLowerCase() == 'popup') {
            popupOrIframe = window.open('about:blank', windowName, 'width=650,height=440,scrollbars=yes');
            documentToWriteTo = popupOrIframe.document;
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Usage scenario We have implemented a webservice that our web frontend developers use (via
My usage-scenario may seem a bit unusual, but here it is: When using vim
Scenario: I am parsing values from an XML file using C# and have the
Consider this scenario: Using Javascript/E4X, in a non-browser usage scenario (a Javascript HL7 integration
I have a scenario where I have to get an array of strings that
I have some daily analytics-style records that track usage on my site, and they
Typical usage scenario: I have master, branch_foo and branch_bar. All are up to date.
oftentimes I have this kind of usage scenario: entity A is connected to B
I'm trying to implement a basic worker pool using pthreads. The scenario is that
What is the common usage of using ant to execute a java class or

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.