let an HTML button and textbox change a java parameter
Hello Programmers,
I would like to know how to make an textbox and a button which changes the command parameter to the input java applet (Runned in browser)
<param name="userName" value="player name">
like if i enter marlon006 in the textbox and click the button the applet would reload and use the param
<param name="userName" value="marlon006">
i know this is possible but i forgot how to use the code.
Re: let an HTML button and textbox change a java parameter
Are you asking about methods in the Applet class for getting the values of <param tags in the <applet html code?
Re: let an HTML button and textbox change a java parameter
No for outside of the applet class just in the body tags.
But if it is easier to change it inside the applet class that would be fine to
Re: let an HTML button and textbox change a java parameter
Is this a java programming problem? What are you trying to change?
Re: let an HTML button and textbox change a java parameter
I am trying to ADD a feature to my chatbox so users can input a username OUTSIDE of the applet (the source doesn't need editing) like the jave applet and below that an textbox + button to change your user/nickname
Re: let an HTML button and textbox change a java parameter
How is this a java programming problem?
Re: let an HTML button and textbox change a java parameter
this is a a mix of html and java coding..
Re: let an HTML button and textbox change a java parameter
Can you post the java code that you are working with and your questions about it?