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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:14:35+00:00 2026-05-13T15:14:35+00:00

Solution var options = { opacity: opacity }; //Many thanks to David Higgins for

  • 0

Solution

var options = { opacity: opacity }; //Many thanks to David Higgins for his help
var direction;
if(id == "chat") { 
    direction = {right: dir + amt, top: dir + amt };
} else if(id == "rplayed") { 
    direction = {left: dir + amt, top: dir + amt };
} else if(id == "info") { 
    direction = {right: dir + amt, bottom: dir + amt };
} else if(id == "player") { 
    direction = {left: dir + amt, bottom: dir + amt };
}
$.extend(options, direction);
$(wid).animate(options, 200);

Question

I’ve been working on a website that is very jQuery intensive in Chrome and Firefox. It’s now come to the stage where one opens it in IE see how IE treating the website.

I’ve gone through the jQuery stuff and I really can’t see what is wrong with anything I have written and IE just gives the error “Invalid arguament – line 142 – jquery.js” (the actual jQuery source file).

On the website jQuery has two main purposes, updating elements with Ajax and JSON and moving elements around (hiding/showing & sliding) to create a window’d interface).

The website is at deadlink and the JS is in deadlink

Can anyone explain what is wrong with my jQuery code? I have no idea where to start, I’m not expecting you to fix it just point me in the right direction and give me an idea of what’s going on!

If you want to see what the website is supposed to do open it in FF or Chrome!

Many Thanks,

  • 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-13T15:14:36+00:00Added an answer on May 13, 2026 at 3:14 pm

    Appears that your code around line 102 of main.js:

    $(wid).animate({
      opacity: opacity,
      left: left,
      top: top,
      bottom: bottom,
      right: right
    }, 200);
    

    Is passing ‘undefined’ as a value for ‘top’.

    My suggestion,

    the code above it … should do something more like this:

    var options = { opacity: opacity };
    if(id == "chat") {
      jQuery.extend({right: dir + amt, top: dir + amt }, options);
    } else if(id == "rplayed") {
      jQuery.extend({left: dir + amt, top: dir + amt}, options);
    } // snipped - you get the point
    $(wid).animate(options, 200);
    

    I haven’t tested the whole jQuery.extend() call … but this should solve your invalid parameter problem – IE does not like setting invalid values to CSS properties (this includes ‘null’, ‘undefined’, alpha when numeric was expected, ‘0’ when ‘none’ was expected, etc). FF, Chrome and Safari all handle this gracefully … by just ignoring the CSS value (and in this case, it was omitting the value for you – causing the render to look right).

    Hope this helps.

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

Sidebar

Related Questions

Solution for writing a program for keep secret photos. I have many secret photos
Solution -- WorkflowProject   -- Workflow1   -- Workflow2 -- WebProject (WAP)   -- App_Data     -- MyDatabase.vdb3
Solution: I've misinterpreted the example from SQL Books Online. Yes, that below the section
Solution to original problem (below) may have been discovered. I commented out <identity> ...
Programmatic solution of course...
The solution we developed uses a database (sqlserver 2005) for persistence purposes, and thus,
The solution is crying out for the MSMQ solution but unfortunately the posting service
Our solution has a lot of todo comments, but unfortunately it seems the only
my solution has multiple projects and in one of them I have the code
Made solution change: I am trying to display a html table of data.. In

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.