× 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.



Nicolas

Wonderful.

Defer seems to have solved my problems. You were obviously correct about the sequence of events. Perhaps I misread the text books on this.

Its been said before, but , the Midrange lists are a wondeful resource with some most helpful contributors (not forgetting David who makes it all possible!)

Very many thanks

Rob

nicolas faucheux wrote:

I have seen text book examples that I assume work where the script code
is earlier than the button definitions.


the page is executed from top to bottom, including script codes.
this allows an old form of  "dynamic" part of page using
document.write("...")
the examples you've seen probably don't use elements
declared after the script (or just to learn you can't)
or maybe they just do so to declare functions that
are called by the onClick, onXXX attributes of the button

or maybe they use the keyword to defer the execution (but i've rarely seen
it)
<SCRIPT LANGUAGE="JavaScript" defer="defer">
this may be a way not to put the code at the end of the page if you have
access to it

Rob Dixon





_______________________________________________
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.