Exam 190-513: Using JavaScript in Domino R5 Applications
Yep, you guessed it; Yesterday I did the JavaScript exam. Why am I telling you, you may well ask? Well, firstly to show-off (I got 94%) and secondly to let you know what it was like and some of the "trickier" questions asked.
I have to admit that I went in to the exam brimming with confidence, there's not much I don't know about JavaScript ;-) This confidence was probably brought on because I had forgotten how badly those damn questions are worded. I got to the end only half as confident of passing as when I walked in. Most questions are of the type where it could be A or it could be B, depending how you read it. Luckily I've done enough Lotus exams to know what they are getting at.
In general most of the questions asked are a push-over for anybody familiar with JavaScript. There are lots that are simply checking you know that JS is case sensitive, along the lines of:
Q. Which of these will properly access the value of a field called "City" on the form on a page:
- document.Forms[0].City.value
- document.forms[0].City.value
- document.orm.City.value
- Some other silly suggestion
There are also a few that test whether or not you know the difference between "=" and "==". For example:
Q. In the following code the alert box always appears, which line will fix this?
var city = document.forms[0].City;
if (city.value = "London")
{
alert("I am in London")
}
- if (city.text = "London")
- if (city.value == "London")
- if (city == "London")
- if (city = "London")
Q. How are variables typed and declared in JavaScript?
- Explicitly declared, Loosely typed
- Implicitly declared, Loosely typed
- Explicitly declared, Strongly typed
- Implicitly declared, Strongly typed
- Contains the URL of a hypertext link
- Contained by the history object
- Contained by the document object
- Contains the URL of the current doc
var x = document.forms[0];
- The form object of the current page
- A document object with a form referrer
- Silly
- Silly
function clickButton(){
document.forms[0].submitMe.onClick();
}
What does it do?
- Runs a global JS function called onClick()
- Runs onClick event of the onSubmit object
- Runs a JS function called onClick that is on a form object called submitMe
- Obviously wrong
onClick = "submitMe(this.form);"
- Call the function and pass form object of current page
- Call the function and pass form object of the current button object
- Wrong
- Wrong
- Belongs to window object
- Belongs to document object
- Belongs to location object
- Silly answer
- Access from a "popup" window back to the original using window.opener
- Linking from frame to another using things like window.top.frames[2].location...
- What characters get ignored ny JS => Tabs
If you do the exam then good luck. It's worth it alone just to put it on the resumé.......
Exam Resources
Here's the compilation of all the resources I referred for this exam.
You can get the official Lotus courseware from a LAEC, they quoted me a figure of ~$309. To find a LEAC in your area http://www.lotus.com/rw/lewwschd.nsf/08a78cc1f5d33ed085256583005ba63d?OpenView
The BEST book to learn JavaScript is JavaScript bible By Danny Goodman http://www.amazon.com/exec/obidos/ASIN/0764533428
Another book, which covers JavaScript within Domino environment, is Domino 5: Web Programming with XML, Java, and JavaScript by Randall Tamura http://www.amazon.com/exec/obidos/ASIN/0789722755
There is a chapter on using JavaScript in R5 in one of the redbooks titled Lotus Domino R5.0: A Developer's Handbook http://www.redbooks.ibm.com/abstracts/sg245331.html To get a Hardcopy for this book http://www1.fatbrain.com/asp/bookinfo/bookinfo.asp?theisbn=0738414123
Online tutorials and references
http://developer.netscape.com/tech/javascript/index.html http://r5update.horbett.com http://c57656-a.mntp1.il.home.com/tutorials/javascript/client-side/cs_frames.htm http://www.devguru.com/Technologies/ecmascript/quickref/javascript_intro.html
Kamal kamrij AT usa.net
Reply