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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:33:31+00:00 2026-05-26T09:33:31+00:00

I’m trying a redirect on a page that goes like this: original URL: http://www.foo.com/products/

  • 0

I’m trying a redirect on a page that goes like this:

original URL: “http://www.foo.com/products/”

js to redirect:

window.location.href = 'http://www.foo.com/dept/' + product_var + '/s?template=products/details&layoutVariation=centerbar';

*product_var = is the name of the product stored in a variable.

It is working fine on FF and Chrome, but on IE it the original url loads and it never goes to
the new one.

Is it beacuse of the params? Any suggestion?

Tried to use document.location, but it didn’t work either.

Thanks for your attention!

  • 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-26T09:33:32+00:00Added an answer on May 26, 2026 at 9:33 am

    Answering my own question. 🙂

    The code has this huge declaration of products, image, text, etcs organized this way:

    content: function () {
           Content = {
                'product-01': {
                    'flash': 'swf file',
                    'tabs': {
                        0: {
                            'img': 'image',
                            'paragraphs': {
                                0: {
                                    'headline': 'h.',
                                    'text': 'lorem lorem',
                                    'modal': {
                                        'headline': 'lorem lorem.',
                                        'img': 'image',
                                        'text': 'lorem'
                                    }
                                },
                               1: {
                                    'headline': 'h.',
                                    'text': 'lorem lorem',
                                    'modal': {
                                        'headline': 'lorem lorem.',
                                        'img': 'image',
                                        'text': 'lorem'
                                    }
                                },
                               2: {
                                    'headline': 'h.',
                                    'text': 'lorem lorem',
                                    'modal': {
                                        'headline': 'lorem lorem.',
                                        'img': 'image',
                                        'text': 'lorem'
                                    }
                                },
                                }
                            }
                        },
                        1: {
                            'img': 'image',
                            'paragraphs': {
                                0: {
                                    'headline': 'h.',
                                    'text': 'lorem lorem',
                                    'modal': {
                                        'headline': 'lorem lorem.',
                                        'img': 'image',
                                        'text': 'lorem'
                                    }
                                },
                               1: {
                                    'headline': 'h.',
                                    'text': 'lorem lorem',
                                    'modal': {
                                        'headline': 'lorem lorem.',
                                        'img': 'image',
                                        'text': 'lorem'
                                    }
                                },
                               2: {
                                    'headline': 'h.',
                                    'text': 'lorem lorem',
                                    'modal': {
                                        'headline': 'lorem lorem.',
                                        'img': 'image',
                                        'text': 'lorem'
                                    }
                                },
                                }
                            }
                        }, // and so it goes
    

    Turns out the problem was just a COMMA at the end of one of these declarations. IE just didn’t want to continue the script and redirect. Weird thing is, it haven’t showed any error…

    Thanks all you guys and remember: one missing or extra comma can lead to a huge amount of waste of dev time. Always take a good look at your codes. 😉

    Cheers!

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

Sidebar

Related Questions

I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm not entirely sure how I managed to jack this up. http://pretty-senshi.com If you
Basically, what I'm trying to create is a page of div tags, each has
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I am trying to render a haml file in a javascript response like so:
I know there's a lot of other questions out there that deal with this

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.