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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:15:07+00:00 2026-05-30T18:15:07+00:00

I am creating a popup chat window that allows the users to pop the

  • 0

I am creating a popup chat window that allows the users to pop the call script out of the page into its own window, so that they can keep that window up but also travel to other pages of the website. I am just grabbing the html from the call script and inserting it into the popup window. The problem is when the options are clicked, changed, whatever by the user nothing is happening bc the new window does not have the same files as its home page. I am wondering how can I wire up or transfer logic/functionality to the new window? For example I need to make an ajax call, which goes into a controller in a c# file within the project. Anyone know what I’m talking about and how to do this?

  • 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-30T18:15:08+00:00Added an answer on May 30, 2026 at 6:15 pm

    One approach would be to make the popup window a “real” page, so that the popup renders the same page, just without a layout, and all of the ‘logic’ (I assume this means including javascript files?) will be included. No copying of HTML here, you’re rendering the page on the server. I’m not familiar with C#-based frameworks/web apps, but simply passing a URL query param, like ‘layout=false’ is an easy way to tell your script to render a page in a “plain” layout. There are likely more elegant approaches available here. For example, in a Sinatra app (Ruby), my route could detect what type of layout to use based upon some suffix on the route. E.g. /app/chat vs. /app/chat.part … oftentimes you do this to render JSON, vs HTML, and so forth. ‘.part’ can be anything you want, depends on if your framework allows for this (you can always roll-your-own function to examine the request vars, not that hard).

    Another approach, which I’ve never tried, would be to embed or inject javascript in the html that gets copied into the popup window before allowing the popup to open. Here is a SO answer related to that: Capture new browser window open event with javascript

    I think there are more advanced approaches that would include some simple Javascript in the page which downloads necessary files from the server when the popup is opened, but that seems like overkill for what you described. My 2 cents is just use window.open, and use the query vars to tell the server what to render. But if you’re a javascript guru, by all means, get fancy.

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

Sidebar

Related Questions

Creating a popup window from main page with window.open, the child/popup page uses the
I am creating modal popup canvas window in a parent page. When I close
I'm creating a popup window that has a beforeunload handler installed. When the Close
I am creating a program that displays a popup at certain times (just like
I'm creating a non-intrusive popup window to notify the user when processing a time-consuming
I'm creating a popup window with no URL source using window.open(). I don't give
I'm creating a popup window in a listactivity in the event onListItemClick. LayoutInflater inflater
I'm creating HTML (popup window), EXCEL and PDF report and would like to show
I am creating a popup dialog using microsoft's WPF. The thing is that this
I am creating popup windows using window.open and setting the height and width of

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.