Click here to Skip to main content
15,880,608 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have downloaded a sample web project to use fingerprint authentication in asp.net(here is the link http://onlinedemo.digitalpersona.com/Samples/UareU/Windows/dotNET/UareU_MySql_WebCSharp.zip ),but there is some syntax error(as shown by VS) in the following javascript statement-
JavaScript
function objReader::On_Captured(reader, captureResult)
{
}

where objReader is the id of an object tag. Please help i am unable to understand this line.
Actually i dont understant what is use of '::' here
Posted
Updated 13-Feb-13 21:07pm
v2
Comments
Richard MacCutchan 14-Feb-13 5:10am    
What is the name of the file that contains this code and what is the error you receive?
Himu from Orissa 14-Feb-13 5:28am    
Visual studio says....Expected '('
Himu from Orissa 14-Feb-13 5:29am    
this code is written in the same page inside script tag
[no name] 14-Feb-13 21:32pm    
There is no operator like "::".

1 solution

The '::' is not valid in a JavaScript identifier, so the parser is reading "objReader" and expects it to be followed by "(" - the beginning of a JS parameter list.

I'd expect '::' in C++ code, not JavaScript. This code is valid in neither.

Maybe there is something else in the project that should process this to produce valid JS code? In which case Visual Studio may be unaware of that processing but it may run anyway. This seems unlikely.
 
Share this answer
 
Comments
Himu from Orissa 15-Feb-13 1:00am    
i think this function is written as an event of the object tag, but there is some syntactic error
Rob Grainger 15-Feb-13 7:04am    
If I get time I'll download and have a look at the weekend.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900