Why would you use JavaScript in a R6 client?

I am trying to find some good examples of when to use JavaScript not on the web, but when designing an application for the Notes R6 client.Anyone got any ideas?

Subject: Why would you use JavaScript in a R6 client?

I have used JavaScript more in web apps than within the notes R6 Client.

The example for web aps were for calculations or using validation so it did not need to post back to the web server.

I have also seen it used for a simple web type menu as well.

HTH – cheers,

http://www.dangsite.com

Subject: Why would you use JavaScript in a R6 client?

Image rollovers, where changes in multiple locations are triggered by the mouseover in a single location work in the Notes client if image resources are used and src parameters preloaded (just as on the web) – something you can’t do in Formula Language or LotusScript. You can also use Regular Expressions to validate fields – something neither Formula Language nor LotusScript handle nearly as elegantly. I find setTimeout() in the onload a little more convenient than using a NotesTimer for simple tasks. Finally, there’s the “Marvin” 404 page (a web version appears here):

http://www.scintilla.utwente.nl/thisisabadpage.html

Using a dialogbox, JavaScript, a form with a black background, and a single Notes-style field with no delimiters, you can present a “console” dialog that complains to your user base far better than they can complain themselves. Better than a “Variant does not contain an object” system message any day of the week.

Subject: Regular expressions?

Can you explain to me what they are and how to use them?

Subject: RE: Regular expressions?

A crucial part of every coder’s toolkit, that’s what they are!

Check out these sites for more:

Regular Expressions Basics

http://www.evolt.org/article/rating/20/22700/

The Complete Regular Expression Guide

HTH

Subject: RE: Regular expressions?

… and one should add that “how to use them” almost always means “which reference should I have open at my desk while coding”. While Regular Expressions are very powerful, they are also something one shouldn’t count on having memorized. In terms of validation, you can think of them as being @Matches on steroids. If you need something to be formatted in a given way, especially if the format varies in a way that can be easily described but not easily coded (should start with one or more letters, but must contain at least one number and one space, all other punctuation is forbidden unless there’s a “w” present, which indicates it’s an old format, in which case there should be an underscore three characters from the end), then RegEx is the way to go.

Subject: Thanks a lot!

I have read and learned, thank you for your time!