Email:   
Home
In This Issue
EasyPrint
Click here for the RSS feed's XML code. This is not a browser URL.
INTERNET TUTORIAL
Getting started with JavaScript development in Domino
By Tony Patton

In many ways, JavaScript has evolved into the de facto standard for programming in Web clients. Microsoft has introduced VBScript and Jscript, but JavaScript is the only scripting language supported by the major browsers such as Internet Explorer, Navigator/Communicator, and even the lesser known, but quite impressive Opera. JavaScript can be used to accomplish tasks within the browser in the same way that LotusScript does in the Lotus Notes client.

"Domino 5.0 includes native support for JavaScript. Finally the same code you developed for your Web-based clients can be interpreted by the R5 client."

What it is
Many tout JavaScript as a scripting language, but I just don't like the sound of that. It is a programming language and that's that. Now, many non-programmers do take advantage of the numerous Web sites that offer code snippets to achieve desired effects (see end of article for sites). But it has all the control constructs and elements of a "real" programming language, and so, therefore, it is.

JavaScript can be used to control both the browser and browser content appearance. In addition, it can be used to interact with the user, browser content, cookies, and Java applets.

What it isn't
JavaScript is not a derivative or variation of Java, they are completely unrelated. [When Netscape defined JavaScript, they just snarfed the "java" term because it seemed like good marketing. -- DG] Java and JavaScript do have some similarities in syntax, and they can be used to together to build powerful applications and Web sites. JavaScript is not for non-programmers, it requires programming skills to be used effectively. But JavaScript is more of a "scripting language" while Java is more of a traditional language. The boundaries of those are quite blurred since scripting languages on powerful processors can often do much of what you might have previously used a "hard core" language to accomplish previously.

JavaScript in Domino 4.6
Developing an application to be used by both Notes and Web clients in Release 4.6 was a nightmare that entailed double the amount of work. Features had to be built on the form for the Notes client as well as the Web client. The Notes client supported LotusScript, but the browser didn't -- it supported JavaScript only. Hide-When formulas are a developers best friend when working in this environment. Thankfully, Lotus finally shipped Domino R5 earlier this year.

JavaScript in Domino 5.0
Domino 5.0 includes native support for JavaScript. That's right, finally the same code you developed for your Web-based clients can be interpreted by the R5 client. JavaScript is a now a viable option (along with Java and LotusScript) when choosing your scripting language.





[ Next ]

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
-- Advertisement --

Learn Notes and Domino 8 at your place and pace!
Learn Notes and Domino in your office and/or home! TLCC's highly acclaimed distance learning courses for users, developers, and admins will enhance your career and your resume.

The many included activities and demos will make you a pro! Expert instructor help is a click away.

Click here to try a FREE demo course!!

-- Advertisement --

The Ultimate Notes Domino Training Experience - Amsterdam, 11-13 November
Get in-depth technical training that you can put to use on the job right away at THE VIEW's Admin2008 and Lotus Developer2008 Europe! One registration gets you into your choice of over 70 new and updated expert know-how sessions, one-on-one consultations, hands-on labs, and more.

See complete agendas and register by 10 October to save 495 euros!
Copyright © 1998-2008, ZATZ Publishing. All rights reserved worldwide.
Editor's Login