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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:40:17+00:00 2026-05-27T14:40:17+00:00

In this scenario: User enters some information into a textbox User clicks a button

  • 0

In this scenario:

  • User enters some information into a textbox
  • User clicks a button
  • Server-side processing of the entered information takes place
  • Depending on the result of that server-side processing, either a new window is to be opened, or a message is to be displayed on the current page (and no popup)

I cannot come up with an approach other than to use async: false in the jQuery ajax call, which is strongly discouraged:

Setting this option to false (and thus making the call no longer
asynchronous) is strongly discouraged, as it can cause the browser to
become unresponsive.

I’ve tried:

  • having the call be async and in the callback handler, depending on what the server said, sometimes opening a new window – this gets blocked by popup blockers
  • another idea, which I’ve not even bothered with due to its unpleasantness, is to always open a window, and it is this new window that calls the server, and sometimes closes itself (somehow updating text in the parent on its way out)

What I’ve settled on is what I’ve described above: in the click handler, do a synchronous server call, and if the server says to do so, open a new window. Popup blockers are happy with this, because the window opening is done in the click handler. But…


Similar (but not duplicate, as I don’t always want to open a new window) questions that have not provided a nice solution:

  • How can I open a new window using a URL that is generated inside the getScript callback function, and avoid pop-up blockers?
  • (How) can I open the result of a form submission in a new window?
  • 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-27T14:40:18+00:00Added an answer on May 27, 2026 at 2:40 pm

    I tried out my ‘unpleasant’ idea: to always open a new window, and have that new window make the server call, closing itself if the results of the server call dictated that it was not required.

    But that was pretty horrible, so I stuck with the synchronous call.

    So for me, the answer to this question is no, you can’t avoid being synchronous in this situation.

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

Sidebar

Related Questions

Here's the scenario: if this is a user's first time logging into my web
I have a edittext which the user enters some text into Once they press
My scenario: I have a textbox that the user enters text The textbox has
This is the standard scenario: User registers on the site User receives an account
Here is my scenario. User fills out this large page which is dynamically created
scenarioi:- 1) User enters an address into a search field. Address maybe zip,state or
Scenario: I am calling a function that returns a field that the user enters
I'm running some tests with Cucumber/Capybara. I've got one scenario where the user goes
I have a scenario that looks like this: User A is a registered user.
I have scenario where if user enters for example 000.03 , I want to

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.