Advertisement

08.16.2008 at 03:56AM PDT, ID: 23653314
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.3

Javscript submit actions

Asked by GSD4ME in JavaScript, Scripting Languages

Tags:

I have developed a perl/html/javascript form.
The user has to answer a  series of questions, using a submit button on each page, with the information fed back to the perl driver .cgi program that verifies and then loads the next page and so on.
The last page shows a summary of all the data, which the user then prints off, hence, there is no HTML submit button on that page, so I am using JAVASCRIPT to do the submit. When the final page is closed, I want the driver cgi program to be informed of that situation, done via returning some information by a 'hidden' text box ('hbFinalPage')
I cannot 'see' the submit from the javascript in my .cgi driver file. What am I missing concerning submit from javascript. I have put all sorts of options into the code to try (perhaps some overkill with 'onsubmit' 'onunload' etc) and see what is going on but all to no avail. Can anyone help?Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <script language="Javascript">
  var printClickValue;
  
  function loadActions ()
  {
    printClickValue = "dummy";
  }
 
  function unloadActions ()
  {
    document.form1.elements["hbFinalPage"].value = printClickValue;
	document.form1.submit();
  }
  function printActions ()
  {
    window.print()
	printClickValue = "printed";
  }
  </script>
</head>
 
<body  link="#000000" vlink="#000000" alink="#000000" onLoad="loadActions()" onUnload="unloadActions()" onSubmit="javascript:return true;">
<!-- Start of FORM -->
<form method="POST" name="form1" action="http://my program.cgi">
<input type="hidden" name="hbFinalPage" value="XXX">
</form>
</body>
</html>
[+][-]08.16.2008 at 05:44AM PDT, ID: 22243936

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: JavaScript, Scripting Languages
Tags: Javscript
Sign Up Now!
Solution Provided By: Zvonko
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628