× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Walden


2009/1/8 Walden H. Leverich <WaldenL@xxxxxxxxxxxxxxx>

Do you know a way of reducing the amount of Javascript?

You certainly could clean it up some w/something like jQuery or
prototype, plus be more x-browser. I know I'd rather read

$('popupText').innerHTML = msgt;

than

javascript:document.getElementById('popupText').innerHTML=msgt;


Also, any reason you're not using ID= attributes in some cases? Why:

document.getElementsByName('NAM64I')[0].value = num;

instead of

$('NAM64I').value = num;


These are obvious improvements for which I thank you. My excuse is that I
knew nothing about JavaScript so purchased a book, worked out a solution
(not necessarily the best!) and implemented it and, with help from this
list, it worked.




Also, don't forget, the keycodes are different between different
browsers... been there.


I am aware of this but with WSG it was difficult to have more than one lot
of codes because of the limits of what I could do to modify it. With
CGIDEV2, I should be able to cope with a variety of key codes.


Finally, FONT tags? Ewwww.... CSS man!


I know you are absolutely correct, and when I have got to a reasonable
solution that appears to work, I will refine it. None of the HTML or
Javascript is stored. The font tags are put out by my code and changing
them will be simple.

Thanks for you help.

Rob



-Walden

--
Walden H Leverich III
Tech Software
(516) 627-3800 x3051
WaldenL@xxxxxxxxxxxxxxx
http://www.TechSoftInc.com

Quiquid latine dictum sit altum viditur.
(Whatever is said in Latin seems profound.)
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.





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.