JAVA1

Back to Java

If java is installed, and enabled, the above Year, Month, Day date display comes from an external file, dispdate.js, containing the function todaydate(), thus such an 'included' function could be available to every page, that has the following code, in it head :-

<script type="text/javascript" src="dispdate.js">
</script>

Access to a set of personal library type functions ... think of the possibilities ... Actual code in the body is (although I use a 'class' to get the large red font) :-

<script type="text/javascript">
document.write('<p align="center">Current Date is : <b>');
todaydate();
document.write('</b></p>');
</script>

to produce the above date display ...

Back to Java

The contents of dispdate.js is :-
function todaydate(){
var today_date= new Date();
var myyear=today_date.getYear();
var mymonth=today_date.getMonth()+1;
var mytoday=today_date.getDate();
document.write(myyear+"/"+mymonth+"/"+mytoday);
}

Back to Java

y-s : javascript file input
http://vadivel.thinkingms.com/PermaLink.aspx?guid=77399765-5f49-478a-84d3-1538918744ce - use of an 'Active X' object ... to get SIZE of file ...
http://www.mozilla.org/js/js-file-object.html - 1998 Mozilla proposal ...
http://www.w3.org/TR/html4/interact/forms.html - HTML W3C 'form' specification ... Forms in HTML ...
http://www.irt.org/script/file.htm - how to read data from a file ... in the client ... with user's consent ... in Netscape ... uses netscape.security.PrivilegeManager.enablePrivilege( 'UniversalFileAccess' ); ...

y-s : javascript array
http://www.comptechdoc.org/independent/web/cgi/javamanual/javaarray.html - reference on arrays ... and an array from a string -
var words = new String("limit;lines;finish;complete;In;Out"); var swords = words.split(";")
http://www.prism.washington.edu/lc/CLWEBCLB/jst/js_arrays.html - short array reference ...

Back to Java

checked by tidy  Valid HTML 4.01 Transitional