Your page should be:
<html><head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 4</title>
<meta name="Microsoft Theme" content="indust 1111, default">
<meta name="Microsoft Border" content="tlb, default">
<script language="JavaScript">
function Agree() {
var msg = 'TERMS - blah blah blah' + '\n' + '\n'
+ 'Term1' + '\n'
+ 'Term2' + '\n' + '\n'
+ 'Click "OK" if You Agree to the Terms' + '\n'
+ 'Or click "Cancel" if You Do Not Agree' + '\n'
if (confirm( msg )) { return true; }
else { history.go(0); return false; } }
</script>
</head>
<body>
<form method="post" action="<!--#ystore_order id="czcmhrtt" -->"
<input type="submit" value="Place Order" onclick="return Agree();">
</form>
</body></html>
| Below is the script as it currently stands. I hope you can help me... Thanks! .....
|
| The script goes in the HEAD section, not the BODY,
| and you can add the onclick function to your submit button
|
| <html><head>
| <script language="JavaScript">
| function Agree() {
| var msg = 'TERMS - blah blah blah' + '\n' + '\n'
| + 'Term1' + '\n'
| + 'Term2' + '\n' + '\n'
| + 'Click "OK" if You Agree to the Terms' + '\n'
| + 'Or click "Cancel" if You Do Not Agree' + '\n'
| if (confirm( msg )) {return true; } else { history.go(0); return false;}; };
| </script>
| </head>
| <body><p>
| <form method="post" action="<!--#ystore_order id="czcmhrtt" -->">
| <input type="submit" value="Place Order" onclick="return Agree();">
| </form>
| </p></body>
| </html>
|
| --
|
| _____________________________________________
| SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| "Warning - Using the F1 Key will not break anything!" (-;
| To find the best Newsgroup for FrontPage support see:
|
http://www.net-sites.com/sitebuilder/newsgroups.asp
| _____________________________________________
|
| Hello Stefan!
| Thank you again for your help... I know I'm doing a number of things wrong, but not being familiar with JavaScript, I have no
idea
| what it is. From what you gave me I came up with the following.
|
| <body><p>
| <script language="JavaScript">
| function Agree() {
| var msg = 'TERMS - blah blah blah' + '\n' + '\n'
| + 'Term1' + '\n'
| + 'Term2' + '\n' + '\n'
| + 'Click "OK" if You Agree to the Terms' + '\n'
| + 'Or click "Cancel" if You Do Not Agree' + '\n'
| if (confirm( msg )) {return true; } else { history.go(0); return false;};
| };
| <a href="<form method="post" action="<!--#ystore_order
| id="czcmhrtt" -->"><input type="submit" value="Place Order"></form>
| target="_blank" onclick="return Agree();'>Buy Now</a>
| </script>
| </p></body>
|
|
| | Thank you Stefan, I'll see what I can do.
| |
| | "Stefan B Rusynko" wrote:
| |
| | > Best you do it server side (ASP/PHP) but if you can't you can use JavaScript
| | >
| | > In a script file or HEAD section:
| | >
| | > function Agree() {
| | > var msg = 'TERMS - ...' + '\n' + '\n'
| | > + 'Term1 ....' + '\n'
| | > + 'Term2 ....' + '\n' + '\n'
| | > + 'Click "OK" to if You Agree to the Terms' + '\n'
| | > + 'Or click Cancel if You Do Not Agree.' + '\n';
| | > if (confirm( msg )) {return true; } else { history.go(0); return false;};
| | > };
| | >
| | > Then each link is
| | > <a href="thelinktothecartform.htm" target="_blank" onclick="return Agree();">Buy now</a>
| | >
| | > --
| | >
| | > _____________________________________________
| | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| | > "Warning - Using the F1 Key will not break anything!" (-;
| | > To find the best Newsgroup for FrontPage support see:
| | >
http://www.net-sites.com/sitebuilder/newsgroups.asp
| | > _____________________________________________
| | >
| | >
| | > | Thank you Stefan! You're comments are always appreciated... Conceptually, I
| | > | know what needs to be done. I might be wrong, but I don't think a link to my
| | > | terms page will work since I have 25 different "place order buttons" on my
| | > | site. That would mean that the "agree to terms button" on the Terms Page
| | > | would have to be able to discriminate between the 25 different items and know
| | > | which one to place in the shopping cart.
| | > |
| | > | I believe what needs to happen is that when a user clicks one of the "place
| | > | order buttons" a pop-up message appears that has my standard terms in a
| | > | nested window of the pop-up message. The pop-up message would have 2 buttons
| | > | on it. One button to agree to the terms (which would allow the user to place
| | > | their order of a "particular" item in the shopping cart) and another button
| | > | to disagree to terms (which would bring the user back to the Main Page).
| | > | Because I have 25 different types of "place order buttons" on my site (each
| | > | one is customized to add only a specified item and not any choice of items to
| | > | the shopping cart) I will need to have 25 different types of pop-up messages.
| | > | However, if I have the main script to create a pop-up message I can easily
| | > | cutomize the script for each of my products. I just need help creating the
| | > | script for the pop-up message with an agree and a disagree button on it that
| | > | will work as explained above.
| | > |
| | > | Thanks again!
| | > |
| | > | Vince
| | > |
| | > |
| | > | "Stefan B Rusynko" wrote:
| | > |
| | > | > Then you need that link (to the terms page) as a normal page link for any order (before it even goes to the submit form
| page)
| | > | >
| | > | > --
| | > | >
| | > | > _____________________________________________
| | > | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| | > | > "Warning - Using the F1 Key will not break anything!" (-;
| | > | > To find the best Newsgroup for FrontPage support see:
| | > | >
http://www.net-sites.com/sitebuilder/newsgroups.asp
| | > | > _____________________________________________
| | > | >
| | > | >
| | > | > | I use FrontPage 2002 and have "Place Order" buttons on my site (a2zfit.com)
| | > | > | with similar HTML script like:
| | > | > |
| | > | > | <form method="post" action="<!--#ystore_order id="itemID#" -->"><input
| | > | > | type="submit" value="Place Order"></form>
| | > | > |
| | > | > | I'd like to have it so that when a user clicks a "Place Order" button a
| | > | > | pop-up message of my Terms & Conditions is displayed. Then the user can
| | > | > | accept the terms (which will bring him/her to my Yahoo! shopping cart) or
| | > | > | reject the terms (in which case the user will stay on my product page and not
| | > | > | be able to order).
| | > | > |
| | > | > | Can anyone help me with this? Thank you in advance! I sincerely appreciate
| | > | > | it...
| | > | > |
| | > | > | Vince
| | > | >
| | > | >
| | > | >
| | >
| | >
| | >
|
|