A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Engineering
»
HTML, CSS and JavaScript
Author
get the form name
Gayatri Sinha
Ranch Hand
Joined: Feb 13, 2006
Posts: 34
posted
Sep 01, 2006 11:30:00
0
Hi,
I have a two forms
<form name="a" action="a.jsp" method="post">
.....
</form>
and one more form
<form name="b" action="b.jsp" method="post">
.....
</form>
and from these forms I am calling a javascript function that is written in a different file. In the function I want to get the name of the form "a" or "b".
Is it possible?
Thanks,
- Gayatri
Thanks
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56185
13
I like...
posted
Sep 01, 2006 13:01:00
0
Originally posted by Gayatri Sinha:
from these forms I am calling a javascript function
I have no idea what you mean by this.
How
are you calling a javascript function "from a form"?
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
I agree. Here's the link:
http://aspose.com/file-tools
subject: get the form name
Similar Threads
How to get Events associated with DOM elements ?
Trouble submitting form with 'onsubmit' handler defined
Javascript error in Mac OS 9 IE 5
display html message on multiple form same action
Loading multiple forms in single jsp
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter