August 1999
Intermediate to advanced
1488 pages
72h 53m
English
cursor.prototype.method = methodName cursor.prototype.property
The prototype property of the Cursor object allows you to create new properties and methods of the object. If you are adding a method, you set the instance equal to the methodName of the method you have defined.
Listing 8.35 creates a new property and method of the Cursor object. An instance is created and the new property is set. The new method is then called to verify the property, and, if it is incorrect, an error is written to the page.
<SERVER> // Define the method that we prototyped function verifySELECT(){ // Check to see if the ... |
Read now
Unlock full access