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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:10:19+00:00 2026-06-05T02:10:19+00:00

I have an upload form, then the submit is a link that goes to

  • 0

I have an upload form, then the submit is a link that goes to a confirm box. Both of those are made with the jquery plugin fancybox. So technically its not a confirm box, its just a div. I had my submit button in the confirm box but that didnt work in IE/FF so i used .submit() .

It works in Chrome, IE, and Firefox but i’ve heard you can never be sure with javascript. Is there a way i can be sure this will work “forever”?

<form name="importForm" action="<?=site_url('headquarters/importDesign')?>" method="POST" enctype="multipart/form-data">
  <div id="import-design">
    <div id="inline2">
        <div class="form-section">
            <ul>
                <li><span class="input">File:</span><input name="userfile" size="40" type="file" /></li>
                <li><span class="input">File Name:</span><input type="text" name="name" /></li>
            </ul>
        </div>
        <div class="form-section">
            <a class="various1" href="#inline3"><button>Submit</button></a>
        </div>
    </div>
</div>
<div id="import-confirm">
    <div id="inline3">
        <h2>Confirm Reset?</h2>
        <p>Do you really want to proceed? All design data will be overwritten.</p>
        <hr class="inv-hr" />
        <div id="buttons">
            <button class="float-right" onClick="window.location.href='<?=site_url('headquarters/migrationDetails')?>'">Cancel</button>
            **<a href="javascript:document.importForm.submit();">Click to submit the form</a>**
        </div>
    </div>
</div>          
</form>
  • 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-05T02:10:20+00:00Added an answer on June 5, 2026 at 2:10 am

    The only 100% reliable way to ensure JavaScript code will work in all browsers you care about is to test it on those platforms.

    There are a number of tools and services out there that try to make this easier for you. See e.g.

    http://www.smashingmagazine.com/2011/08/07/a-dozen-cross-browser-testing-tools/

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

Sidebar

Related Questions

I am new to Jquery. I have an upload form that when something is
So I have ajax file upload partial (using Jquery Form plugin), it's working perfectly,
I have jquery pop form to upload a file, after on submit (the page
I have an upload form that takes an image jpg/gif/etc, I use it to
I have an upload form that takes a user about 30 min. to complete.
I have an upload box... <form action=upload_file.php method=post enctype=multipart/form-data><BR> <label for=file>Filename:</label><BR> <input type=file name=file
I have a simple form that uploads a selected file using Apache Commons Upload
I have a web page with a form, a submit button for that form,
Basically, I have this form that allows user to upload to my server: <form
I have an upload form with a file to be uploaded. The issue I

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.