Solved

Pop-up coupon

Posted on 2003-11-03
2
299 Views
Last Modified: 2013-11-28
How do you make a pop-up coupon without menu bar? I need them to be able to print the coupon.  Is there way to put a counter on the coupon - to stop photo copy coupons?
I am using DreamWeaver 2.
0
Comment
Question by:lmcharlton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
ddarby14 earned 125 total points
ID: 9673783
Hi!

2 Options for you:

1) You want to open other popup windows

a)Put this in between the <head></head> tags of your main document from which you will launch the popup:

<script language="JavaScript" type="text/JavaScript">
<!--
function openPopup(URL,windowName,preferences) {
  window.open(URL,windowName,preferences);
}
//-->
</script>

b)Use this code to link text or an image somewhere in the body of your main document:

<a href="javascript:;" onclick="openPopup('coupon.htm','coupon','width=300,height=300,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no')">coupon</a>

c)adjust the width and height per your needs.  all of the rest of the options (toolbar, etc) can be left out - this is the same as NO, but i put these in to show you your options. You can use this same code for multiple links/popups by just changing the URL reference and preferences.


2) You only have 1 window to popup and want it quick and dirty:

a)Use this code to link text or an image somewhere in the body of your main document:

<a href="javascript:;" onclick="window.open('coupon.htm','coupon','width=300,height=300,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no');">coupon</a>

b)options are same as above and if option=NO, it can just be removed.


PRINT:
Inside your popup window, you could put a link such as:
<a href="javascript: window.print();">print coupon</a>

or if you are only displaying a graphic, you could include a "press CTRL-P to print" instruction in the graphic.

COUNTER:
My only thoughts for now are do you have access to CGI on your web server? The only way I can think to have a counter is to write the current 'coupon number' to a file, then use CGI to call the coupon window at the same time, increasing the counter by 1 each time.  Let me know if you would like more thoughts on this...

I hope this helps.
0
 
LVL 23

Expert Comment

by:Saqib Khan
ID: 9673936
I hope you got the Pop up solution Above.

For the Counter what exactly you want?
You want to increase the # each Time a user Click's your Coupon?

if yes then can you run ASP from your Server?
if yes then that is very simple and easy to do.

if you dont have ASP Support then we can Write javaScript Cookies to increament the Cookie value (1,2,3 and so on).
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Every business owner understands the significance of online customer reviews and the impact it can have on sales and revenues. With technology advancing at such a rapid pace, getting online reviews has never been easier, especially when many regions…
Read about the 3 stages of the buyer's journey: awareness, consideration, and decision.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question