473,287 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 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

and

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"

-------------------------------------
<head>
<meta
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=self_port;
}
else
{
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;
}
setTimeout("reload()",1000);
}
</script>
<link href="template.css" rel="stylesheet" type="text/css">
</head>
<body class=body>
<div align=center>
<table cellspacing=0 cellpadding=0 class=bsize>
<tr>
<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>
</b>
</td>
</tr>
<tr>
<td bgcolor=#408080 valign=middle align=center>
<OBJECT id=SQ codeBase=/view.cab#Version=1,0,0,61 height=480 width=640
classid=CLSID:B0781EB7-16EA-49F1-9C1D-9716D88206CF></OBJECT>

<script language="javascript1.2">
url = location.host;
aIPPort = url.split(":");
self_address = aIPPort[0];
toString(self_address);
setTimeout("reload()",3000);
setparameter();

</script>
<form name= "ir_auto_det" method= "post" action= "ir_set.html">
<input disabled type=submit value=NightView class=pfont size="20">
</form>
</td>
</tr>
</table>
</div>
Oct 15 '06 #1
1 7968
VK
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

17
by: Tobiah | last post by:
Ok, I miss the idiom that my other languages use, something like: while( foo = getmore()){ process(foo); }
12
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 3.3.1, I do this with gcc -std=c99 -pedantic...
7
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 fine if I just rename the file. There are some...
3
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 with the ICallbackEventHandler interface, as per...
7
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?), and it gives an error compiling the following code....
4
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 can this solved? Robert ============== ...
1
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 characters which will fit in the first line, but...
11
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 of a method is C. I know, of course, that in this...
9
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" /> ... Button1.Attributes.Add("OnClick",
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.