473,385 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

dynamic form submit

i want to submit my form dynamicalyy through javascript.

code:
<script type="text/javascript">
function submitForm(){
document.accountForm.action="AccountInqury.jsp";
document.accountForm.submit();
}
</script>

but i m encountering a javascript error:
" object doesnt support this property or method "
plz suggest.
thanx
Jun 15 '07 #1
4 2707
dmjpro
2,476 2GB
i want to submit my form dynamicalyy through javascript.

code:
<script type="text/javascript">
function submitForm(){
document.accountForm.action="AccountInqury.jsp";
document.accountForm.submit();
}
</script>

but i m encountering a javascript error:
" object doesnt support this property or method "
plz suggest.
thanx
Welcome to TSDN.
Plz send me ur HTML code .. then it ll be better to solve ur problem.....

Kind regards,
Dmjpro.
Jun 15 '07 #2
i want to dynamically submit a form on onChange event of a dropdown box.

my code :

<script type="text/javascript">
function submitForm(){
document.myForm.action="Account.jsp";
document.myForm.submit();
}
</script>
<form name="myForm" action="#" method="post">
<select name="drop" onChange="submitForm()">
<option value="1">1</option>
<option value="2">2</option>
</select>
</form>

I m encountering a javascript error :
Object doesn't support this property or method.

I have already tried out this in my another code and that is working fine. but this time i am unable to trace the error.
plz suggest
thanx
Jun 15 '07 #3
dmjpro
2,476 2GB
i want to dynamically submit a form on onChange event of a dropdown box.

my code :

<script type="text/javascript">
function submitForm(){
document.myForm.action="Account.jsp";
document.myForm.submit();
}
</script>
<form name="myForm" action="#" method="post">
<select name="drop" onChange="submitForm()">
<option value="1">1</option>
<option value="2">2</option>
</select>
</form>

I m encountering a javascript error :
Object doesn't support this property or method.

I have already tried out this in my another code and that is working fine. but this time i am unable to trace the error.
plz suggest
thanx

Don't DO Double POST.
Frnd

Kind regards,
Dmjpro.
Jun 15 '07 #4
r035198x
13,262 8TB
i want to submit my form dynamicalyy through javascript.

code:
<script type="text/javascript">
function submitForm(){
document.accountForm.action="AccountInqury.jsp";
document.accountForm.submit();
}
</script>

but i m encountering a javascript error:
" object doesnt support this property or method "
plz suggest.
thanx
Well since you've done this before in some pages. Just cross check how you did it there with how you're doing it now.
And next time please use code tags when posting code.
P.S Threads merged.
Jun 15 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Nick | last post by:
Loop to create an array from a dynamic form. I'm having trouble with an application, and I'll try to explain it as clearly as possible: 1. I have a form with two fields, say Apples and...
4
by: pizzy | last post by:
INTRO: I tried to clean it up for easy reading. I hope I didn't make any mistakes. PROBLEM: WOW, this is some crazy sh!t. I can't get my checkbox (see "TAGSELECTED") to print my textboxes (see...
7
by: pizzy | last post by:
PROBLEM: I CAN'T GET THE LAST RESUTS TO WORK CORRECTLY. I WOULD PROVIDE THE CODE (AND WILL IF REQUESTED). BUT IN MY OWN WORDS I AM TRYING TO HAVE THE FIRST FORM DYNAMICALLY CREATE INPUT BOXES...
0
by: Pat Patterson | last post by:
I'm having serious issues with a page I'm developing. I just need some simple help, and was hoping someone might be able to help me out in here. I have a form, that consists of 3 pages of...
26
by: Jerim79 | last post by:
I need to create a form that takes a number that the user enters, and duplicates a question the number of times the user entered. For instance, if the customer enters 5 on the first page, when...
1
by: Derek Basch | last post by:
I spent several hours struggling with dynamic form fields added with appendChild or innerHTML not POSTing on submit in Firefox. The only way I found to make it work is to append any created fields...
0
by: Slickuser | last post by:
From my PHP page: Grab all data from the database. Go through a loop to generate the HTML. Client side: From the Color drop menu list, if a user change the value. It will grab that value &...
0
by: Slickuser | last post by:
From my PHP page: Grab all data from the database. Go through a loop to generate the HTML. Client side: From the Color drop menu list, if a user change the value. It will grab that value &...
0
by: Slickuser | last post by:
From my PHP page: Grab all data from the database. Go through a loop to generate the HTML. Client side: From the Color drop menu list, if a user change the value. It will grab that value &...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.