|
-
Jan 26th, 2003, 04:22 PM
#1
Thread Starter
Lively Member
Help with <input ...>
Hi,
I am new to javascript and I'm having difficulties to make a formulary. Here is my problem.
<input type="hidden" name="abc" value="abc"> // This is ok
but with a variable
variable="abc"; // This variable is declared in an another frame
<input type="hidden" name="abc" value='parent.variable'> // Give me an error here
What I want is to populate a form by code and putting the value of somes variables into hidden textbox.
Is it clear ?
Sorry if I make some mistakes or have difficulty to write, english is not my maternal language.
-
Jan 27th, 2003, 06:05 AM
#2
Frenzied Member
<script type="text/javascript"><!--
document.writeln('<input type="hidden" name="abc" value="' + parent.variable + '">');
//--></script>
-
Jan 27th, 2003, 08:39 AM
#3
Thread Starter
Lively Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|