Re: error message
John J Barton <[email protected]> Fri, 13 Nov 2009 14:01:49 -0800
| Newsgroups | gmane.comp.mozilla.devel.jsdebugger |
|---|---|
| Message-ID | <[email protected]> |
ncosco wrote:
> Hi, i'm new in javascript programming, this is my first working code
> <HTML>
> <HEAD>
> <TITLE>Test Input</TITLE>
> <SCRIPT LANGUAGE="JavaScript">
> <!--
> function testResults (form) {
> var TestVar = form.inputbox.value;
> alert ("You typed: " + TestVar);
>
> var frame = new java.awt.Frame("FrameDemo");
> frame.setSize(200,300);
> frame.setVisible(true);
>
> }
> // -->
> </SCRIPT>
> </HEAD>
> <BODY>
> <FORM NAME="myform" ACTION="" METHOD="GET">Enter something in the box:
> <BR>
> <INPUT TYPE="text" NAME="inputbox" VALUE=""><P>
> <INPUT TYPE="button" NAME="button" Value="Click" onClick="testResults
> (this.form)">
> </FORM>
> </BODY>
> </HTML>
>
> if i try to use javax.swing.JFrame instead a simple Frame, i get an
> error from debugger "javax is not defined".
>
> Can anyone help me? thanks
Probably not. I doubt many readers here try to mix Java and Javascript,
not a great combination. If you are new to Javascript, use it. Forget
about Java.
jjb