logo

Articles by Category - JavaScript

Create a "Login" anchor link

If you have domino sites that do not explicitly require the user to login, but you want to create a link to let them do so at will, then this may be helpful..... It makes use of the fact that you can...

26 Sep 2000 | Keywords: Login, URL | Read »

Managing JavaScript "popup" windows

When you use the JavaScript window.open method to open a new browser window you may experience problems when you try to re-use it. For example, open the link below and then click back inside this win...

11 Oct 2000 | Keywords: Focus, Blur, Window, Open | Read »

Date validation on global servers

Are you creating databases that live on servers all around the world and worried that you don't know which format the server expects dates to be entered in to fields of the date/time data type? You c...

13 Oct 2000 | Keywords: Date, Format | Read »

Using the void operator in anchor links

Have you noticed that if you create a URL that calls a JavaScript function or method, in which an object gets returned but the browser is not told what to do afterwards, the browser will then do some...

16 Oct 2000 | Keywords: Return, window, confirm | Read »

Limit the types of files users can upload

The following JavaScript function can be used to validate that the type of file that a user tries to upload is of a certain format. It does this by checking that the files extention (eg .html) is in ...

19 Oct 2000 | Keywords: File, upload, type | Read »

Locating File Upload Controls with JavaScript

In JavaScript there is no way of getting a direct handle on File Upload Controls via the Document Object Model (DOM) unless you know their "name" (ID). Unless you are using R5, where you can specify ...

18 Oct 2000 | Keywords: File Upload | Read »

Copying text from a document to the clipboard

This is another one of those things that you will either love or hate. I love it ;-) It only works in Internet Explorer on 32 bit Windows platforms, so is only really useful for things like Intranets...

26 Oct 2000 | Keywords: copy, range, select | Read »

Creating dynamic references to objects

Take the following JavaScript function. It is meant for a form that has six fields whose names are all of the format "QuantityX" where X is a number from 1 to 6. Have a look at the code and see if yo...

27 Oct 2000 | Keywords: input, object, string | Read »

The form Submit method and event

Anybody with any programming experience starting to use JavaScript would expect that when they call a form's submit() method the corresponding onSubmit() event would be triggered. This is not the cas...

2 Nov 2000 | Keywords: Form, submit, onsubmit, validate | Read »

Using the if statement effectively

"If" is probably the most used JavaScript statement in any one given function or script. There are a variation of ways it can be used and your choice of which method can make your coding a lot easier...

29 Jan 2001 | Keywords: if, else, case, conditional | Read »

 icon Page 1 of 3Last » | Next ›