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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:34:46+00:00 2026-05-23T07:34:46+00:00

The code below works fine in FF3.X and IE7 to 9, but not in

  • 0

The code below works fine in FF3.X and IE7 to 9, but not in FF4.

I have this code in 2 places in my file:

                var arguments = "method=getoptions";
                arguments += "&dropzone=" + dictKey;
                arguments += "&format=disc";
                arguments += "&datasetid=" + datasetid;
                arguments += "&varnumber=" + varnumber;
                arguments += "&varSectionId=" + varSectionId;
                arguments += "&catindex=" + catIndex;
                arguments += "&defaultid=dv_cat_opts_default_body";
                arguments += "&mmocid=dv_cat_opts_mmoc_body";

                 alert(arguments);

which produces

               method=getoptions&dropzone=Row_1&format=disc&datasetid=1&varnumber=206&varSectionId=FUV&catindex=&defaultid=dv_cat_opts_default_body&mmocid=dv_cat_opts_mmoc_body

and that is correct, but the same code elsewhere in the file

                 var arguments = "method=getoptions";
                arguments += "&dropzone=" + dictKey;
                arguments += "&format=disc";
                arguments += "&datasetid=" + datasetid;
                arguments += "&varnumber=" + varnumber;
                arguments += "&varSectionId=" + varSectionId;
                arguments += "&catindex=" + catIndex;
                arguments += "&defaultid=dv_cat_opts_default_body";
                arguments += "&mmocid=dv_cat_opts_mmoc_body";

                 alert(arguments);

outputs this which ends up calling an error in my ajax:

             [object Arguments]&dropzone=Row_1&format=cont&datasetid=1&varnumber=1125&varSectionId=FUV&catindex=&defaultid=dv_cont_opts_default_body&mmocid=dv_cont_opts_mmoc_body

So what’s the deal with that object Arguments?

  • 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-23T07:34:47+00:00Added an answer on May 23, 2026 at 7:34 am

    The variable arguments is a special object available within functions, it contains all the arguments passed to a function.

    https://developer.mozilla.org/en/JavaScript/Reference/functions_and_function_scope/arguments

    To put it another way, consider the variable name arguments to be a reserved keyword – just like you would never name a variable if, don’t use the variable name arguments or you will get unexpected results.

    Why is this thing here, you might ask – it lets you write your functions that use a varying number and order of arguments. Within your function, you’d write code to determine which arguments were passed and what they are. It takes quite a bit more code, but you can create some pretty flexible reusable code with this technique. Check out some of the internal functions for Mootools or jQuery and you’ll see that these popular frameworks make heavy use of the arguments object.

    Consider:

    function alertError() {
     var exception = false;
     var message = false;
     for( var i = 0; i < arguments.length; i++ ) {
      if (typeof arguments[i] == 'object')
        exception = arguments[i];
      if (typeof arguments[i] == 'string')
        message = arguments[i];
     }
    
     if (message == false)
       message = 'No details';
     if (exception != false)
       message += ', exception: '+exception.message;
    
     alert('There has been an error: '+message);
    }
    alertError("No exceptions here!");
    try {
     var t = t.doesnotexist;
    } catch (e) {
     alertError(e, 'Testing');
    }
    

    Try it here: http://jsfiddle.net/zwGMJ/

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

Sidebar

Related Questions

Please i need help, this code below works fine on my localhost, php5.3+ but
The code I have below works fine but I'm sure it could be more
This code below works fine in Chrome and IE 9. But breaks in IE
The code below works fine in Chrome but does not work in Firefox. The
The code below works fine but, in the textbox the decimal value has this
The code below works fine. But it seem clunky. How would you combine the
the code below works fine but it takes an absolute age to run. How
Currently my code below works fine but it's a bit of overkill. In my
I'm trying to open a ZIP file in JAVA. The code below works fine
The code below is creating a server to communicate with clients.This code works fine

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.