Michael, you've got some really good stuff here.  I won't try to quote
things, because it's all very good <grin>.  I do have one question,
though... are you using the Document Object Model?  The DOM allows you to do
some VERY nice things with JavaScript and dynamically attaching functions to
fields.  I find it a lot easier than trying to code things in the tags.

For example:

        elem = document.getElementsByName("FIELD1")[0];
        elem.onclick = myOnclickFunction;

is equivalent to

        <DIV NAME="FIELD1" onclick="myOnclickFunction();"></DIV>

"myOnclickFunction" is the name of the function to call when the field is
clicked.  You can use getElementsByName (which returns an array) or
getElementByID, which I prefer, because it returns only one element.  This
is because name does not have to be unique, but ID does.

The nice thing about this technique is that you can build your page
dynamically, then just include a short JavaScript function at the end that
attaches all your functions.  I find this much easier for generated screens.

Anyway, just thought I'd share this.

Joe Pluta
www.plutabrothers.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.