Advertisement

05.14.2008 at 01:16PM PDT, ID: 23402987
[x]
Attachment Details

I have 2 forms in one coldfusion file.  When I select the second form it's submitting the first one instead

Asked by Cashmgmt in ColdFusion Application Server, JavaScript

I have to forms, with the name Form1 and Form2.  I have a javascript that looks like this
            function submitform()
            {
              document.Form2.submit();
            }
            function submitform()
            {
              document.Form1.submit();
            }
When I click on View transactions on the top form (see attached screenshot) it works fine.  But when I click on the view transactions on the bottom form, it submits the top form.  None of the options like beginning date or items per screen in the bottom form work.  How can I get the right form be submitted?Start Free Trial
Attachments:
 
Screenshot of Web Page with both forms
Screenshot of Web Page with both forms
 
 
Loading Advertisement...
 
[+][-]05.15.2008 at 02:12AM PDT, ID: 21571697

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 07:15AM PDT, ID: 21573845

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 11:03AM PDT, ID: 21576495

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: ColdFusion Application Server, JavaScript
Sign Up Now!
Solution Provided By: b0lsc0tt
Participating Experts: 2
Solution Grade: B
 
 
[+][-]05.16.2008 at 12:03AM PDT, ID: 21580510

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.17.2008 at 12:01PM PDT, ID: 21590425

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628