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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:55:52+00:00 2026-06-15T03:55:52+00:00

I have a weird bug that is present only in IE (7/8/9/9CV). FF and

  • 0

I have a weird bug that is present only in IE (7/8/9/9CV).
FF and Chrome do not have this issue.

I have a pretty big, complex page. In the bottom of the page I have two pieces of JavaScript code right one after another. The first one has no problems, but the second one for some reason is being displayed as a text when I load the page first time. If I just refresh the page without doing anything else – everything works and looks just fine.

Two pieces of JS being generated on a server from two different pagelets so I cannot put them together into one script tag. The first piece of JavaScript code is nothing more but a call to the same function couple of times with different parameters, and the second script is just a declaration of a JSON like object that is being consumed by another function that is defined earlier on the page.

So the page code looks something like this:

<!DOCTYPE html>
<html>
<head>
  ...
<title>...</title>
</head>
<body>
...
<script type="text/javascript">
//Some javascript that executes perfectly fine every time and is nothing more but just couple of calls to some function
someFunction("param1");
someFunction("param2");
someFunction("param3");
</script>
<script type="text/javascript">
var myObject = {"success":[{"header":"Form successfully submitted","messages":["Some message 1"]}]};
</script>
</body>
</html>

So when a form submitting happens I take this object and use it to display a message on the page. But instead, when user submits the form and it opens the page for the first time, I see this in the bottom of the page:

var myObject= {"success":[{"header":"Form successfully submitted","messages":["Some message 1"]}]};

But when I refresh the page – I do not see that code, but instead I see the message being displayed with values from this object.

When I open the “developer tools” and navigate to the HTML tab, I see that my tag for the second JS piece is shown as commented out!

<!-- sctipt ... -->

But if I refresh the page – it works fine, and in HTML tab of the developer tools it actually shown as a script node that I can expand and see the Javascript code.

Does anyone know what is going on here?!?! This issue has been bugging me for couple of days now!

  • 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-15T03:55:53+00:00Added an answer on June 15, 2026 at 3:55 am

    Well, I found an answer to this problem. Well, more of a work around I guess, as this is not something I expected but it works.

    Basically, if you put anything between the two script elements – IE wokrs fine!
    So what I did was – I put br tag in between and it now works fine. I have no idea why. Perhaps some weird bug in IE rendering engine.

    The end result looks like this:

    <script type="text/javascript">
    //Some javascript that executes perfectly fine every time and is nothing more but just couple of calls to some function
    someFunction("param1");
    someFunction("param2");
    someFunction("param3");
    </script>
    <br>
    <script type="text/javascript">
    var myObject = {"success":[{"header":"Form successfully submitted","messages":["Some message 1"]}]};
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a weird bug in Chrome which affects a page in Wordpress. I
This has been driving me nuts all day. I have a weird bug that
I have this weird bug that I cannot fix. Can anyone help me? Thank
I have this really weird bug at my page. I wrote this comment system
In chrome (and safari of course), I have this really weird behaviour that I
This is a weird bug that I can't figure out because I have tested
I have this supper weird bug, where this method fails in IE9. What is
I have a weird bug in my application that causes an activity to relaunch
Hey fellas, I have this weird bug, and I have no clue how to
I have this weird bug, where C++ calls the wrong function: So this bit

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.