Pop-up Terms Msg. Before Ordering

V

Vince

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
 
V

Vince

Hello Clinton! I wasn't sure how to respond to your question, so I called
Yahoo! since it's their server. Their answer was RTML.

Looking forward to your help!

Thnaks again...
 
C

clintonG

I work with Microsoft ASP/VBScript or the .NET Framework and do not have any
hands on experience with Yahoo RTML but all of these development languages
have much in common as they are created to support the Internet protocols
which are standards. I wouldn't know if Yahoo's RTML supports the following
which is perhaps the most common way to implement a terms and conditions
page without using a popup...

If not passing secure information the form submission in the
PlaceOrder page is used to pass its data to the T&C page which is stored in
the T&C page using hidden form fields. Thse hidden form fields do not
display the data in the browser but the data in the hidden form fields can
be read when viewing source.

The customer reads the T&C and if the customer agrees and submits the T&C
page the data in the hidden form fields is passed to the next page. This can
be repeated as neccessary.

Read Yahoo's documentation and see if there is any mention of passing data
between pages.


--
<%= Clinton Gallagher, "Twice the Results -- Half the Cost"
Architectural & e-Business Consulting -- Software Development
NET (e-mail address removed)
URL http://www.metromilwaukee.com/clintongallagher/
 
B

Bob Lehmann

WTF! You mean Remote Telescope Markup Language????
http://hou.lbl.gov/rtml2/

Or did you mean this - http://shop.store.yahoo.com/vw/rtml.html

What a joke! Yahoo has their own language???? Holy Shit!!!! I'm sure all the
IDE developers are rushing to incorporate it into their software.

Maybe we should have BLML (Bob Lehmann Markup Language), or HIIIJIITML (Here
It Is I Just Invented It Markup Languge).

MFMOG!

<laughing intensity="gutsplitting">bwahhahahahahahah</laughing>

Bob Lehmann
 
S

Stefan B Rusynko

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)




| 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
 
V

Vince

Clinton, I believe you're making this too hard. When I first posted my
question I gave the following HTML script that is used to create the "Place
Order" button on my site. It is: <form method="post"
action="<!--#ystore_order id="itemID#" -->"><input type="submit" value="Place
Order"></form>

I guess you don't know the answer to my question so thanks for your help.
 
V

Vince

Bob, I guess this is HILARIOUS to you! Your sarcastic comments were
"tasteless" and uncalled for. Maybe you have the knowledge to work in this
industry, but your personality SUCKS!!! All I'm trying to do is get an
answer to my problem, one which apparently the "great" Bob Lehmann can not
answer...
 
V

Vince

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
 
S

Stefan B Rusynko

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>




| 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
| >
| >
| >
 
V

Vince

Thank you Stefan, I'll see what I can do.

Stefan B Rusynko said:
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>




| 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
| >
| >
| >
 
S

Stefan B Rusynko

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>



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>&nbsp;
<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
| > | >
| > | >
| > | >
| >
| >
| >
 
S

Stefan B Rusynko

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>&nbsp;
| <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
| | > | >
| | > | >
| | > | >
| | >
| | >
| | >
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top