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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:39:28+00:00 2026-06-17T18:39:28+00:00

What Am I trying to do: redirection to home page and to previous page

  • 0

What Am I trying to do: redirection to home page and to previous page with id.

Whats going wrong: fails to work in IE (9) works on Firefox.

What I have tried:

On click events:

<input type="hidden" id="product_id" value="<?php echo $_GET['product_id']; ?>" />
        <td><input type="submit" value="Update" onClick="update(); return false;" /></td>     
        <td><input type="submit" value="Go Back" onClick="redirect('go back'); return false;" /></td>
        <td><input type="submit" value="Done" onClick="redirect('home'); return false;" /></td>

redirect function:

function redirect(redirect){


    var id = $('#product_id').val();    

    if (redirect == "go back"){
        window.location.href = 'displayProduct.php?product_id='+id;
    }
    else if (redirect == "home"){
        window.location.href = 'index.php';
    }

}

I also tried adding a alert('1'); inside the redirect function which doesn’t appear to be firing in IE.

Am I missing something..?

  • 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-17T18:39:30+00:00Added an answer on June 17, 2026 at 6:39 pm

    It is possible IE is throwing an error on this line:

    var id = $('#product_id').val();
    

    Which could be preventing further execution. If you don’t already, make sure script debugging is not disabled in IE as well as show errors is turned on:

    screenshot

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

Sidebar

Related Questions

I'm trying to make the following redirection (301) using .htaccess *?page=1 redirects to *
I have been tying to get the site redirection to work but I keep
I’m trying to figure out whether FormsAuthentication.RedirectFromLoginPage (called inside method M() ), performs redirection
Hi i am trying to redirecting visualforce page to google.com page here is my
i am just trying to crawl a single page start_urls = ['https://www.mileageplusshopping.com/shopping/b____alpha.htm'] but redirecting
Trying to copy the msdn refernce here doesn't work and gives an error I
I am trying to do ssl redirection for few pages only e.g. viewcart, checkout
I am trying to learn PHP with codeigniter, had have come across a problem.
I have some background with python, and I've been trying to do a few
What I am trying to achieve is the following: I want to have numerous

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.