Hi!
I have a JavaScript function that receives an Array with words. This
Array can be gotten from a query to a DB using JSP.
The JavaScript function is executed when onFocus event occurs:
<input type='text' onFocus='myFunc tion(this.event , myArray);' />
myArray is declared as:
<script>
var myArray = new Array('j'habite ', 'tu habites', 'il habite');
</script>
I want to tell JavaScript:
var myArray = myJSPArray;
Where myJSPArray is declared some where in the JSP document.
Is it possible? If so, how can I do it?
TIA!
I have a JavaScript function that receives an Array with words. This
Array can be gotten from a query to a DB using JSP.
The JavaScript function is executed when onFocus event occurs:
<input type='text' onFocus='myFunc tion(this.event , myArray);' />
myArray is declared as:
<script>
var myArray = new Array('j'habite ', 'tu habites', 'il habite');
</script>
I want to tell JavaScript:
var myArray = myJSPArray;
Where myJSPArray is declared some where in the JSP document.
Is it possible? If so, how can I do it?
TIA!
Comment