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

  • Home
  • SEARCH
  • 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 6472487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:21:02+00:00 2026-05-25T06:21:02+00:00

I have a few buttons in my script that call window.open(‘myUploadScript.php?arguments=test…’,”). I’m passing querystring

  • 0

I have a few buttons in my script that call window.open(‘myUploadScript.php?arguments=test…’,”).

I’m passing querystring parameters in the arguments() for the target file myUploadScript.php to process.

I’d like to call this script without opening it in a popup. Can I use jQuery for this without having to start from scratch on my popup window script?

In other words, my window.open contains:

<input 
type="button" 
id="myButton" 
value="myValue" 
onclick="window.open('myUploadScript.php?action=test',
    'popup',
    'width=330,
    height=300,
    scrollbars=no,
    resizable=no,
    toolbar=no,
    directories=no,
    location=no,
    menubar=no,
    status=no'); 
    return false" 
/>

Can I instead call a jQuery that loads the contents of myUploadScript.php into a placeholder div, passing it the “test” argument?

  • 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-25T06:21:03+00:00Added an answer on May 25, 2026 at 6:21 am

    You can easily do it as other posters explained. However, if it’s an actual file upload script, this will not help you.

    The issue is that file upload doesn’t work via AJAX (only works in select browsers, but not generally). The only way to implement ajax file upload in pure html/javascript is using iframe, like so:

        <form id="vinsearchform" target="upload_target" action="/Home/VINUpload" method="post" enctype="multipart/form-data">
           <input type="file" name="filename" />
           <input type="submit" />
        </form>
    
        <iframe style="display:none" id="upload_target" name="upload_target"></iframe>
    

    What this does is post the upload into a hidden iframe. The iframe has to emit javascript which will tell the page that it’s done, something like this:

    <script language="javascript" type="text/javascript">
       window.top.window.uploadCompleted();
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a few controls that inherit from ASP.NET buttons and use onserverclick .
I have form with few buttons and I want to know what button is
I have a form with a few buttons which execute code when pressed like
HI I have a form with a few buttons. Each button runs a few
I have a few text boxes and buttons on my form. Lets say txtBox1
I have a bookmarklet, clicking the bookmarklet includes a PHP script (evaluated as a
I am using a PHP login script that challenges user for username & password.
I have a query that is quite long and takes a few seconds to
I have few import statements in my index.php file. The website is bit slow
How do you unit test a large MFC UI application? We have a few

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.