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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T12:25:12+00:00 2026-05-12T12:25:12+00:00

I have a page with jquery on it. It works fine in Firefox, Chrome

  • 0

I have a page with jquery on it. It works fine in Firefox, Chrome etc but if I load it in IE, none of the Jquery functions run, and IE’s script debugger shows:


Error

A Runtime Error has occurred.
Do you wish to Debug?

Line: 269

Error: Unterminated string constant

Yes No

The line in question is in my (unmodified) jquery.js that is causing the error is

style.left = ret || 0;

It also shows:


Error

A Runtime Error has occurred.
Do you wish to Debug?

Line: 835

Error: Invalid argument.

Yes No

With the line in question being:

ret = style.pixelLeft + “px”;

Any ideas?

EDIT:

Seems I may have been looking in the wrong place for the error. If I take this out, it works:

    $(".middlebox").children("p").hide();
    $(".middlebox").addClass("middlebox_closed", "fast");
  • 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-12T12:25:12+00:00Added an answer on May 12, 2026 at 12:25 pm

    The error is not necessarily in the jQuery code, but the argument value being passed as a parameter into a function in jQuery i.e. the step before.

    EDIT:

    This line is incorrect

    $(".middlebox").addClass("middlebox_closed", "fast");
    

    addClass() does not take 2 arguments, just one which is a string for the class that you wish to add. Change it to

    $(".middlebox").addClass("middlebox_closed");
    

    and it will work. Or maybe you wanted to add 2 classes, in which case this will work too

    $(".middlebox").addClass("middlebox_closed").addClass("fast");
    // or this for brevity
    $(".middlebox").addClass("middlebox_closed fast");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jQuery scrollbar in a static html page. The code works fine
This code works fine in IE8/7 and Firefox... But in Google Chrome i got
I have a script that works in Firefox, Safari, and Chrome. It just doesn't
I have a portlet application that works flawlessly in Firefox and Chrome, but is
I have a page that requires jQuery.tmpl, but I want to use native knockout
I have a page being loaded with jQuery. The initial load includes 100 records
I have an aspx page and imports jQuery, jTemplate and Flexigrid <script src=Scripts/jquery-1.4.1.min.js type=text/javascript></script>
We have a web site that uses extensively jQuery and it works fine in
I have an html page that calls some javascript and jQuery functions and also
I have a page that uses jQuery with a small glitch. I managed to

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.