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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:01:08+00:00 2026-06-07T04:01:08+00:00

Sorry but I don’t know how to ask this better. This is my main

  • 0

Sorry but I don’t know how to ask this better.

This is my main page:

caller window image

when I select the “New Element” option from the select element, a popup window (or whatever is named) should open:

popup window image

After the form is completed, the submit button should perfom a POST to the server in order to insert a new element
in the Data Base, the popup window should close automatically and the dropdown list must be selected in the newest inserted element

caller window with the updated select element

THE POPUP WINDOW IS NOT PART OF THE DOM of the main page.

How could I do this in jQuery? The popup window is a web page that will have to be loaded some how. I guess that I should
do a jQuery.post() to send the data from the popup window to the server.

Thanks in advance!

  • 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-07T04:01:10+00:00Added an answer on June 7, 2026 at 4:01 am

    You can use window.open() for this, and use querystrings to populate your popUp window.

    So your select box would look something like this:

     <select onChange="popUp(this.value);">
       <option value="0">New Element</option>
       <option value="1">Element 1</option>
       <option value="2">Element 2</option>
       <option value="3">Element 3</option>
     </select>
    

    Then your popUp() function would look like this:

     function popUp(val) {
       window.open('mypopupwindow.php?element=' + val,'_target','width=400,height=400');
     }
    

    I would use some sort of server side language on mypopupwindow.php , otherwise you would need to use javascript to read the querystrings in the url to populate your text box.

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

Sidebar

Related Questions

Sorry, I know this question is easy, but I don't know how to get
I'm really sorry to have to ask this, but I clearly don't understand something
attrubuI'm new to python but don't know how to solve this: import wx class
Sorry for the stupid title, but I don't know how else to name this
Sorry for the title but I don't know other way of asking. EDITED FOR
Sorry if the title is not that specific, but I don't know how else
Sorry but I am not sure how to ask this question but I am
Sorry I'm really new to this, but I can't find anything in the docs.
I think this should be releated to IIS settings but don't know exactly what
I'm sorry but I don't know how to explain it in English. I can

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.