Advertisement

07.21.2008 at 12:29PM PDT, ID: 23583075
[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.6

Preview window from form variables

Asked by Windinthewillows in Active Server Pages (ASP), JavaScript, Hypertext Markup Language (HTML)

Tags: ,

Hi folks

I am having problem with a bit of ASP/JS/HTML code...

I have a page with multiple fields in different forms. For two of the forms I would like to be able to click a link to open up a preview page so that I can see what the page will look like before submitting it to the Database. (The data being passed to the preview page WILL contain HTML tags.)

I have got a semi working solution, however when I use the "Preview..." link the item will no longer submit to the database when clicking on the "Submit" button. Instead the preview page keeps popping up... If however I don't click the "Preview..." link the form submits to the Database successfully!

"Preview.asp" page simply uses:
   strItemTitle = Request("TestTitle")
   strItemDescription = Request("TestDescription")
To grab the text from the "addnew.asp" page...

"TestDescription" field can hold up to 3000 characters so I can't use a query string I believe...

On submitting the "Addnew.asp" page there is ASP code to insert the data into a SQL Database.

Thanks in advance :-)Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
// In the head tag...
function Preview2() {
     var obj;
      obj = document.getElementById("NewTest");
      obj.action = 'preview.asp'; //your popup page
      //obj.method = 'get'; //or don't use this line if you don't need to change method
      obj.target = '_blank';
	  //obj.target.window.width = '1000'
      obj.submit();
}
 
<!-- In the body. One of several forms-->
<form action="addnew.asp" method="post" name="NewTest" id="NewTest">
<input name="TestTitle" type="text" class="TableBody" id="TestTitle" size="100" maxlength="100" />
<textarea name="TestDescription" cols="100" rows="10" id="TestDescription"></textarea>
<!--And a link to call the preview window-->
<a href="#TestItem" class="TableBodyLink" onclick="Preview2();">Preview...</a>
<!--And a submit button-->
<input name="Submit" type="submit" value="Submit" />
[+][-]07.21.2008 at 01:56PM PDT, ID: 22054271

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.

 
[+][-]07.21.2008 at 03:29PM PDT, ID: 22054932

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.

 
[+][-]07.21.2008 at 03:49PM PDT, ID: 22055086

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.

 
[+][-]07.21.2008 at 04:25PM PDT, ID: 22055313

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.

 
[+][-]07.21.2008 at 04:29PM PDT, ID: 22055325

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.

 
[+][-]07.21.2008 at 04:30PM PDT, ID: 22055331

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: Active Server Pages (ASP), JavaScript, Hypertext Markup Language (HTML)
Tags: JavaScript, ASP, IE 6.5 and above
Sign Up Now!
Solution Provided By: golfDoctor
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.21.2008 at 05:16PM PDT, ID: 22055539

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.

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