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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:06:41+00:00 2026-05-31T18:06:41+00:00

I have a ExtJs application. When user needs to view PDF report generated on

  • 0

I have a ExtJs application. When user needs to view PDF report generated on the server side I open a new link using window.open() function. I pass URL for service that provides PDF file stored on the web server.

This function is called from two different places: user can scroll list of reports and click toolbar button on one of them and see the report, or user can execute report, wait till it generated and then application will automatically present it. The only difference between two scenarios – second one is async and the last step where report is open is called from callback functions.

But these two cases behave differently. First one – will open new tab in Chrome, and in Safari and this will not be considered a popup window. In second case – it will be opened in new window (in the same browsers of course – so the configuration is exactly same).

I’m stuck to figure out why the behavior is different.

Any idea?

Update: To clarify – both are JS calls. one is something like:

buttonClick: function() {
   window.open('myreporturl');
}

other is a bit more complicated but at the end:

runReport: function() {
   store.on('load', function {
      window.open('myreporturl');
   });
   store.load();
}

Update2: I was able to figure out what’s going on. If JS opens external window immediately after user initiated event (user click basically) – it gets treated by browser as new tab. If I put a 5 sec delay for the same button click event handler – it gets treated as new window.

Does it make sense to anybody?

  • 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-31T18:06:42+00:00Added an answer on May 31, 2026 at 6:06 pm

    I was able to figure out what’s going on. If JS opens external window immediately after user initiated event (user click basically) – it gets treated by browser as new tab. If I put a 5 sec delay for the same button click event handler – it gets treated as new window.

    Does it make sense to anybody?

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

Sidebar

Related Questions

Server side extjs form validation using zend framework I have extended Zend_Form class to
I have an application using OpenLayers , Extjs and GeoExt . My application runs
I am using a extjs field container for my application where I have details,
I have use wizard window in extjs application. It open at center of window
I am using this article of architecture http://blog.extjs.eu/know-how/writing-a-big-application-in-ext/ I have this one function where
I am using this article of architecture http://blog.extjs.eu/know-how/writing-a-big-application-in-ext/ in my code: I have this
I have generated a pdf using iTextSharp, when its created it saves automatically in
I am using the ExtJS framework and I have the following handler that is
I'm using ExtJS on a registration page which should have no effect on this.
We have RoR application and we are planning to make js interface(extjs or closure)

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.