472,353 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

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

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://(address.of.my.webcam):port/LiveView.html


Line: 46
Char: 3
Error: Invalid argument
Code: 0
URL: http://(address.of.my.webcam):port/LiveView.html
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"

http-equiv="Page-Enter"content="revealTrans(Duration=0.5,Transition =21)">
<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=/view.cab#Version=1,0,0,61 height=480 width=640

<script language="javascript1.2">
url = location.host;
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">
Oct 15 '06 #1
1 7817
Java Guy wrote:
I'm trying to view a web page. IE tells me there are (Java?) errors
on the page.
You are executing JavaScript code, so you are getting JavaScript
errors, Java has nothing to do with it.
Line: 15
Char: 7
Error: Wrong number of arguments or invalid propert assignment
When it says "line 15" or "line 46" , is that really the 15'th and
46'th line of "liveview.html" ???
Yes, counting the first line from <htmltag and accounting all blank
lines (if any)
What is "Char" referring to?
Abbreviation of "Character at position:", nothing to do with Char data
type (moreover JavaScript doesn't have such type).

Line 15 (by above counting rules) will be:
else SQ.mdpc = 0;
As I don't see SQ declared anywhere, it is resolved to undefined, so
you are trying to assign new property to undefined value. Even
JavaScript doesn't tolerate such tortures ;-)

So what is SQ and where is it?

P.S. Is it new style in Java to omit block parenthesis?
if (condition) {
//do this
else {
//do that
looks so much more beautiful IMHO

Oct 15 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Tobiah | last post by:
Ok, I miss the idiom that my other languages use, something like: while( foo = getmore()){ process(foo); }
by: Charlie Zender | last post by:
Hi, I am unable to compile a large body of code with extremely pedantic compile time checks activate, so that warnings cause errors. With GCC...
by: GS | last post by:
Hi! I am getting an "Invalid Xml" exception when I try to load an xsl file using XslTransform.Load(string url). The Xsl file is valid and works...
by: Martin | last post by:
Hi, I have an aspx page with two dropdownlist controls. I update the options in the second ddl based on selection made in the first. I do this...
by: gretean | last post by:
I have a problem that's driving me crazy involving Microsoft's ability to deduce template parameters. I am using Visual Studio .NET (aka VC7?),...
by: robert | last post by:
On a server the binary (red hat) installed python2.4 and also a fresh compiled python2.5 spits "sem_post: Invalid argument". What is this and how...
by: eBob.com | last post by:
I have some code which is trying to determine where text will wrap in a custom text box (which Inherits from Control). It determines the number of...
by: markryde | last post by:
Hello, Followed here is a simplified code example of something which I try to implement; in essence , I want to assign a value to a return value...
by: 200dogz | last post by:
Hi guys, I want to have a button which opens up a new window when pressed. <asp:Button ID="Button1" runat="server" Text="Open new window" />...
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.