[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

09/12/2003 at 03:14AM PDT, ID: 20736802
[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!

7.2

Auto Submit Form & Back Button disable

Asked by Ellmb122 in JavaScript

Tags: disable

Hi Guys,

I've been wrestling with this for a while but I can't figure out what's wrong with it.

I am trying to send details through a form, this info is sent to a second page which combines that data with data from a database and the page is autosubmitted to a processing script. The problem is, when the user clicks the back button on the last page they are taken to the second page and the details are resent. I need to delete the second page from the browsers history so they can't go back to it.

I've used a previous thread from experts-exchange.com for the solution, but it didn't work -

http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20282674.html

I've used this script, but when the form on my page is automatically submitted, the action of the form doesn't seem to work - the next page is '/undefined' e.g. www.myurl.com/undefined.

I've knocked up a quick example to show you what is happening in the most simple form.

http://www.bigwebhost.net/ee_examples/firstpage.htm

When you visit this page, click the send button and it takes you to the second page which includes the script as shown below;

<script language="javascript">
function firstrun()
{
  document.forms[0].submit();
  location.replace(this.href);
  return false;
}
</script>

########### in the body tag ################

<body onload = "firstrun()">

##################################

I have disabled the onload function on this page - http://www.bigwebhost.net/ee_examples/secondpage_code.php to show you the code that is on the second page.

it auto submits the form but the action of the form doesn't seem to work. The back button problem is solved but the details aren't sent through to the script.

I hope all of this is clear, if not I can explain further. Also, please don't provide any solutions in PHP, the pages will eventually be uploaded to an ASP server so if you could provide the solution in Javascript that would be a great help.

Thank you.

Elliott.
[+][-]09/12/03 03:55 AM, ID: 9344884

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/12/03 04:13 AM, ID: 9344949

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/12/03 04:20 AM, ID: 9344977

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/12/03 04:20 AM, ID: 9344981

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/12/03 04:25 AM, ID: 9344990

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/12/03 04:27 AM, ID: 9344998

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/12/03 04:27 AM, ID: 9345000

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/12/03 04:33 AM, ID: 9345022

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/12/03 04:35 AM, ID: 9345030

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/12/03 04:36 AM, ID: 9345036

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/12/03 04:42 AM, ID: 9345063

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/12/03 04:50 AM, ID: 9345099

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/12/03 06:38 AM, ID: 9345746

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/12/03 06:51 AM, ID: 9345835

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/14/03 12:59 AM, ID: 9356189

View this solution now by starting your 30-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

Zone: JavaScript
Tags: disable
Sign Up Now!
Solution Provided By: devic
Participating Experts: 4
Solution Grade: B
 
 
[+][-]09/15/03 12:08 AM, ID: 9360822

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

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

 
[+][-]09/16/03 12:15 PM, ID: 9372725

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91