Updating Applet param values with JavaScript
Posted: Sat Dec 26, 2009 2:54 am
I have the following defined in my applet tag:
document.write('param2="username" ');
document.write('value2="test"');
document.writeln('<PARAM NAME="param2" VALUE="username">');
document.writeln('<PARAM NAME="value2" VALUE="test">');
If I have a JavaScript variable defined as follows for example:
var theUsername = "xxxxxx"; // This value is dynamically generated
How can I set the applet value2 to the value of theUsername before the user selects files to be uploaded? In other words VALUE="test" should be VALUE="xxxxxx" before the upload starts.
If it is not possible, please say so.
Thanks.
Jonathan
document.write('param2="username" ');
document.write('value2="test"');
document.writeln('<PARAM NAME="param2" VALUE="username">');
document.writeln('<PARAM NAME="value2" VALUE="test">');
If I have a JavaScript variable defined as follows for example:
var theUsername = "xxxxxx"; // This value is dynamically generated
How can I set the applet value2 to the value of theUsername before the user selects files to be uploaded? In other words VALUE="test" should be VALUE="xxxxxx" before the upload starts.
If it is not possible, please say so.
Thanks.
Jonathan