[Javascript] forms and js

Paul McGuire pmcguire at cguk.co.uk
Wed Mar 3 10:42:11 CST 2004


I will try that now, I dont like it either, but believe me its unavoidable
in the context of the whole application.

----- Original Message ----- 
From: "Matt Barton" <javascript at mattbarton.org>
To: "[JavaScript List]" <javascript at LaTech.edu>
Sent: Wednesday, March 03, 2004 4:36 PM
Subject: Re: [Javascript] forms and js


> Ugh.  Don't like the look of that in the slightest.  Special chars in
> element names?  Not for the likes of me...
>
> Anyway... you could try (and my usual caveat[*] applies) something like
> this:
>
> <!-- ************************ -->
> <form name="TESTTEST" action="">
> <input type="text" name="(TEST)">
> </form>
>
> <script>
> sControlName = "(TEST)";
> TESTTEST[sControlName].value = 'HELLO';
> </script>
>
> <!-- ************************ -->
>
> HTH
>
> Matt
>
> [*] Usual caveat: I've not tried this myself, and I've no idea if it'll
> work, but it might help.
>
>
> ----- Original Message ----- 
> From: Paul McGuire
> To: [JavaScript List]
> Sent: Wednesday, March 03, 2004 4:31 PM
> Subject: [Javascript] forms and js
>
>
> The below code wont work because of the brackets in the form name. I cant
do
> anything about those brackets the nature of the program means there there.
> How can I write to that form text field with JS if brackets (or other
> special characters) are there?
>
>
> <form NAME="TESTTEST" action="">
> <input type="text" name="(TEST)">
> </form>
>
> <SCRIPT>
> TESTTEST.(TESTS).value = 'HELLO';
> </SCRIPT>
>
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list