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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:42:41+00:00 2026-06-12T07:42:41+00:00

I am trying to redirect to different page after current form has been submitted

  • 0

I am trying to redirect to different page after current form has been submitted but as it turns out, using window.location am diverted to new page very quickly and seems like my current form is not at all submitted.

Here the function that am using.

function updateImportJobTypeSettings()
{
    var importJob = document.getElementById("jobtype").value;
    var parser = document.getElementById("selectparser");
    var parserValue = parser.options[parser.selectedIndex].value;
    document.importJobManagmentForm.action="/admin/ImportJobManagment.jsp";
    document.importJobManagmentForm.requestAction.value="updateImportJobSettings";
    document.importJobManagmentForm.ImportJobParser.value=parserValue;
    document.importJobManagmentForm.ImportJobManagmentType.value=importJob;
    document.importJobManagmentForm.DivHidden.value="visible";
    document.importJobManagmentForm.submit();
    window.location = "/admin/ImportJobManagmentList.jsp"
}

My goal is that after ImportManagment.jsp page is submitted, I want to come back to ImportJobManagmentList.jsp page to see all data that were submitted to ImportJobManagment.jsp

Think to note here is that if I put debugger on then I do see that new job is created on JobList but if I go and try to update it, again new job is created rather than doing an update to the previous job.

  • 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-12T07:42:42+00:00Added an answer on June 12, 2026 at 7:42 am

    You have a race condition. You are trying to do two different actions! The form submission tries to go to one page and you are trying to redirect to another.

    The redirect should happen from the server with the form submission, not from the clientside.

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

Sidebar

Related Questions

I'm trying to figure out how to redirect to a new page (different application,
I am trying to redirect the user to a different page after 1 second
I am trying to redirect users to a different page using the Header function
I was trying to redirect to a different page after editing an entry, I
So I'd like to redirect mobile users to a different page. But instead of
I am trying to redirect a user to a different asp page with some
I'm trying to perform a redirect to a different page in Javascript AND also
I am trying to redirect the user to a different page upon clicking on
I'm trying to redirect this page Page to a Jquery mobile website that I'm
I've been trying to redirect my subdomain buynow.mydomain.info to the product link which is

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.