Re: error message

ncosco <[email protected]> Fri, 13 Nov 2009 15:19:01 -0800 (PST)
Newsgroups gmane.comp.mozilla.devel.jsdebugger
Organization http://groups.google.com
Message-ID <dbab0002-90fc-4a54-9563-31c7df37f2d1@a21g2000yqc.googlegroups.com>
On 13 Nov, 23:01, John J Barton <[email protected]> wrote:
> 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

I'm developing an application, I would like to use different
interfaces, like mozilla extension, web page or normal gui. In order
to use mozilla extension I need to call java from javascript, the
previous code was an attempt to understand how it works.