in reply to Talk with Javascript
All you need to do is print
with the rest of your generated file<script language=javascript> <!--// var myaarray = new Array("item0","item1"); var myarray[0] = "f00f00f0"; function myClientSideSortFunction(foo) { //sortstuffnow //output result of sort to form field } //--> </script>
I suggest you use arrays, because forms can be changed by a user, unless you make them read only with javascript, or hidden.
Another reason to use arrays, it takes less characters than form fields, plus less code.
What kind of sort do you want to do?
for javascript help see http://www.webreference.com/js/
"cRaZy is co01, but sometimes cRaZy is cRaZy".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Talk with Javascript
by Anonymous Monk on Sep 09, 2000 at 23:07 UTC | |
by chromatic (Archbishop) on Sep 10, 2000 at 06:14 UTC | |
by merlyn (Sage) on Sep 10, 2000 at 06:16 UTC | |
by Anonymous Monk on Sep 09, 2000 at 23:13 UTC |