Pass form as a parameter to a method in an applet
3 Message(s) by 2 Author(s) originally posted in java misc
| From: pedro2ramos |
Date: Friday, June 11, 2004
|
Hi,
I have got an
applet (MyApplet) in a page and I am calling a
method ,
from JAVAscript passing it all of my form elements in a String :
for (var I = 0; I < myform.elements.length; i++)
{
concString = concString + " " + form.elements[i].name+"="+
form.elements[i].value;
}
top.topwork.document.MyApplet.MACData(concString));
The
loop takes a
bit of time in JAVAscript since I've about 300
fields.
Is it possible to call the method with the form object, like
top.topwork.document.EEximbilsApplet.MACData(myform));
What
type of
parameter should the method have and how can I inside the
applet (JAVA) can I
concatenate all of the elements in myform ?TIA
Pedro
| From: Hal Rosser |
Date: Friday, June 11, 2004
|
your JAVAscript can create a new page - along with the tags for your
applet.
Include some params in your tags.
access the params from your applet.
perform the appropriate methods based on the params.
- thats my shot at it -
hal
Hi,
I have got an applet (MyApplet) in a page and I am calling a method,
from JAVAscript passing it all of my form elements in a String :
for (var I = 0; I < myform.elements.length; i++)
{
concString = concString + " " + form.elements[i].name+"="+
form.elements[i].value;
}
top.topwork.document.MyApplet.MACData(concString));
The loop takes a bit of time in JAVAscript since I've about 300
fields.
Is it possible to call the method with the form object, like
top.topwork.document.EEximbilsApplet.MACData(myform));
What type of parameter should the method have and how can I inside the
applet (JAVA) can I concatenate all of the elements in myform ?
TIA
Pedro---
Outgoing
mail is certified Virus Free.
Checked by AVG anti-
virus system (
http://www.grisoft.com).
Version: 6.0.690 / Virus Database: 451 - Release Date: 5/22/2004
| From: Hal Rosser |
Date: Friday, June 11, 2004
|
I saw something on the netscape site about JAVAscript and JAVA interacting
I haven't tried it - but made a mental note: - here's the
link to the page
http://devedge.netscape.com/library/manuals/2000/JAVAscript/1.5/guide/partlc.html#999869
from the page:
This chapter describes using LiveConnect
technology to let JAVA and
JAVAScript
code communicate with each other. The chapter assumes you are
familiar with JAVA programming.
This chapter contains the following sections:
a..
b.. Working with Wrappers
c.. JAVAScript to JAVA Communication
d.. JAVA to JAVAScript Communication
e.. Data Type Conversions
Hi,
I have got an applet (MyApplet) in a page and I am calling a method,
from JAVAscript passing it all of my form elements in a String :
for (var I = 0; I < myform.elements.length; i++)
{
concString = concString + " " + form.elements[i].name+"="+
form.elements[i].value;
}
top.topwork.document.MyApplet.MACData(concString));
The loop takes a bit of time in JAVAscript since I've about 300
fields.
Is it possible to call the method with the form object, like
top.topwork.document.EEximbilsApplet.MACData(myform));
What type of parameter should the method have and how can I inside the
applet (JAVA) can I concatenate all of the elements in myform ?
TIA
Pedro---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.690 / Virus Database: 451 - Release Date: 5/22/2004
Next Message: Performance problems on Intel but not AMD... strange
Blogs related to Pass form as a parameter to a method in an applet
Java Script
When you call the function above, you must
pass along two
parameters:
... If the confirm
method returns false, the user clicked Cancel,
... Represents an HTML
applet element. The
applet element is used to place executable content on a
...
JAVA BASIC QUESTIONS
Ans : The prefix
form returns the increment or decrement operation and
... Applet’s getParameter( )
method can be used to get
parameter values.
... Which of the following illustrates the correct way to
pass a
parameter into an
applet:
...
Java Interview Questions Part 5
This
method executes the statement and returns a
java. sql.
... Ø What is the difference between an
applet and a servlet?-
... The extra information can be in the
form of extra path information, added
parameters or some custom,
...
Interview Questions (From freshersworld.com)
What is the difference between
java and c++? In an htm
form I have a button which makes us to open another
... How do you swing an
applet? How will you
pass parameters in RMI?
... What is the order of
method invocation in an
Applet?
...
Java Questions
This can be changed using -Xms and -Xmx command line
parameters.
java -Xms5m
... a. write a jni app to retrieve the creation date and
pass back the value to
... What is the lifecycle of an
applet?- init()
method - Can be called when an
...
Portal & Portlets FAQs
Servlets and portlets are web based components that utilize
Java for their
... getInitParameter()
method. Portlet-wide initialization
parameters on the other hand
... The only way around this is to use an
applet on the client to keep a
...