How do fix: "Wrong number of arguments" / "invalid propert assignment"/ "Invalid argument"

Discussion in 'Java' started by Java Guy, Oct 15, 2006.

  1. Java Guy

    Java Guy Guest

    I'm trying to view a web page. IE tells me there are (Java?) errors
    on the page. Here they are:

    Line: 15
    Char: 7
    Error: Wrong number of arguments or invalid propert assignment
    Code: 0
    URL: http://(


    Line: 46
    Char: 3
    Error: Invalid argument
    Code: 0
    URL: http://(

    When it says "line 15" or "line 46" , is that really the 15'th and
    46'th line of "liveview.html" ???

    What is "Char" referring to?

    Here is the contents of "LiveView.html"

    <script language="javascript1.2">
    var video_on,audio_on,mdpc,aIPPort,self_port;
    var self_address,url;

    function setparameter()
    video_on = "y";
    audio_on = "n";
    mdpc = "n";

    if( mdpc == "y") SQ.mdpc = 1;
    else SQ.mdpc = 0;

    SQ.ShowText = 63;
    SQ.width = 640;
    SQ.height = 480;
    SQ.account = "cdefg";
    SQ.password = "cdefg";
    SQ.cookies = "RootCookie00000";
    SQ.webcamID = "=00150f00154d";

    if( aIPPort.length > 1 )
    self_port = aIPPort[1];
    SQ.port = 8085;
    SQ.IP =self_address;

    if( audio_on == "y" ) SQ.audio_on = 1;
    else SQ.audio_on = 0;

    if( video_on == "y" ) SQ.video_on = 1;
    else SQ.video_on = 0;
    function reload()
    if (SQ.width != SQ.img_width)
    SQ.width = SQ.img_width;
    SQ.height = SQ.img_height;
    <link href="template.css" rel="stylesheet" type="text/css">
    <body class=body>
    <div align=center>
    <table cellspacing=0 cellpadding=0 class=bsize>
    <td height="38" align=center valign=middle bgcolor=#408080>
    <b><font color=#FFFFFF size=1>Camera Name:
    <input type="text" name=WEBCAMNAME disabled class=ronly value=M_IP_C
    size="20" >
    &nbsp; &nbsp; <input type=button name=snapshot value=Snapshot onClick
    = "SQ.snapshot();" class=pfont>
    &nbsp; &nbsp;User Online:1</font>
    <td bgcolor=#408080 valign=middle align=center>
    <OBJECT id=SQ codeBase=/,0,0,61 height=480 width=640

    <script language="javascript1.2">
    url =;
    aIPPort = url.split(":");
    self_address = aIPPort[0];

    <form name= "ir_auto_det" method= "post" action= "ir_set.html">
    <input disabled type=submit value=NightView class=pfont size="20">
    Java Guy, Oct 15, 2006
    1. Advertisements

  2. Re: How do fix: "Wrong number of arguments" / "invalid propert assignment" / "Invalid argument"

    First off, they are not java errors - they are javascript errors.
    Secondly, use Firefox and open up 'Tools->Javascript Console', which
    will give you the line number in the javascript and even take you to
    the javascript code which is causing the error when you double click
    the error message.

    Manish Pandit, Oct 15, 2006
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.