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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:22:06+00:00 2026-05-26T00:22:06+00:00

Would you be able to say something like: document.DataForm.submit(); //and following this if (document.DataForm.submit().completed)

  • 0

Would you be able to say something like:

document.DataForm.submit();    //and following this

if (document.DataForm.submit().completed) {

console.log("page reload has been completed");

}

// I need to write a javascript code to confirm that submit() completed reloading the page.
  • 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-26T00:22:06+00:00Added an answer on May 26, 2026 at 12:22 am

    Normally, this is done using an asynchronous request.

    1) User clicks submit.

    2) Form data gets submitted, page is still active.

    3) Once form data is submitted, server sends acknowledgement and error messages if any .

    4) Now, your “.completed()” method’s body code can run.

    The thing to realize here is that, once you submit data in a form, a request is invoked and control is lost by the page.

    • The best library I know of for this is in Java is GWT, which autogenerates javascript for you – it allows you to build statefull web applications which do these things under the hood, so the code looks pretty similar to what your wrote.

    • Remember : The web is stateless. Once you start adding state and monitors to your javascript, you are building a “rich” web app – and the various app frameworks out there (i.e. like GWT) become very powerful allies for managing your workflow.

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

Sidebar

Related Questions

I would like to be able to say things like cd [.fred] and have
I would like to see how this example of existing code would be able
I want to do this so that I can say something like, svn mv
I can do something like this in bash: myCommand arg1 arg2 2>&1 >> myLogFolder/myLogFile.log
Okay, simple template question. Say I define my template class something like this: template<typename
Let's say I have an xml document like this: <director> <play> <t>Nutcracker</t> <a>Tom Cruise</a>
I would like to find out where I would be able to find the
So I have a a text file that looks something like this: public >ret
I would like to be able to declare a function as void foo(<any value
Say you have something like an ASP.NET ASP:DetailsView to show and edit a single

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.