S
stealth_spoof
Hi People wondering if anyone can help me with a problem I'm having
I'm trying to create an array with an unspecified length, the length is
based on the result i get from another task in the code that I have
what I have so far is a page that has a text box for user input, which
will take whatever the user enters, will count all the characters in
the inputted text which also then uses the "split" command, to split
the users text (string) into its individual pieces.
the code I have so far is as follows
<html>
<head>
<script type="text/javascript">
function myfunction()
{
var v = document.form1.Text_Box.value;
var chop =v;
var x = v.length;
var parts=chop.split("");
var winPtr = window.open('', '_blank', '...features...');
var str = '<html>\n';
str += '<head>\n';
str += '<title>Dynamic Page</title>\n';
str += '</head>\n';
str += '<body>\n';
str += '<p>\n';
str += v + '\n';
str += '<br>\n';
str += '<br>\n';
str += x + '\n';
str += '<br>\n';
str += '<br>\n';
str += parts + '\n';
str += '</p>\n';
str += '</body>\n';
str += '</html>';
winPtr.document.open();
winPtr.document.writeln(str);
winPtr.document.close();
}
</script>
</head>
<body>
<form name="form1">
<TEXTAREA NAME="Text_Box" COLS="20" ROWS="4" VALUE=""></TEXTAREA>
<input type="button"
onclick="myfunction()"
value="Font 1">
</form>
</body>
</html>
I'm aiming to perform some comparisons on the arrays elements, once
I've overcome this hurdle!
any and all help greatly appreciated!!!
Thanks In Advance!!!
I'm trying to create an array with an unspecified length, the length is
based on the result i get from another task in the code that I have
what I have so far is a page that has a text box for user input, which
will take whatever the user enters, will count all the characters in
the inputted text which also then uses the "split" command, to split
the users text (string) into its individual pieces.
the code I have so far is as follows
<html>
<head>
<script type="text/javascript">
function myfunction()
{
var v = document.form1.Text_Box.value;
var chop =v;
var x = v.length;
var parts=chop.split("");
var winPtr = window.open('', '_blank', '...features...');
var str = '<html>\n';
str += '<head>\n';
str += '<title>Dynamic Page</title>\n';
str += '</head>\n';
str += '<body>\n';
str += '<p>\n';
str += v + '\n';
str += '<br>\n';
str += '<br>\n';
str += x + '\n';
str += '<br>\n';
str += '<br>\n';
str += parts + '\n';
str += '</p>\n';
str += '</body>\n';
str += '</html>';
winPtr.document.open();
winPtr.document.writeln(str);
winPtr.document.close();
}
</script>
</head>
<body>
<form name="form1">
<TEXTAREA NAME="Text_Box" COLS="20" ROWS="4" VALUE=""></TEXTAREA>
<input type="button"
onclick="myfunction()"
value="Font 1">
</form>
</body>
</html>
I'm aiming to perform some comparisons on the arrays elements, once
I've overcome this hurdle!
any and all help greatly appreciated!!!
Thanks In Advance!!!