Great advice Dave. Like you idea. I just trying to do one other thing if
anyone can check my syntax. I'm trying to open a window once the user clicks,
plus redirect the page that the user clicks on to open the window. (parent).
I've got ..
<a href="JavaScript:;"
onClick="MM_openBrWindow('http://www.domainname.com/Coupon/install2.cfm?ID=<CFOUTPUT>#ID#</CFOUTPUT>;
','print','width=1,height=1')">Install Now</a>
Could I add a MouseDown to this a href like ... (syntax?)
<a href="JavaScript:;"
onMouseDown="document.location.href="http://www.domainname.com";"
onClick="MM_openBrWindow('http://www.domainname.com/Coupon/install2.cfm?ID=<CFOUTPUT>#ID#</CFOUTPUT>;
','print','width=1,height=1')">Install Now</a>
>> So this install page performs a task that I don't want people
>" + <CFOUTPUT>#ID#</CFOUTPUT>);
>
>I think that, if your goal is to prevent people from printing out a coupon
>multiple times, don't put it on a web server. This would be very easy to
>circumvent no matter what you do, with CF or JavaScript. For example, a user
>could simply set his default printer to PDF, like mine already is.
>
>That said, I can think of a couple of measures you could use. First, you
>could include a barcode in your coupon, and provide information within the
>barcode to prevent reuse of multiple printings. This is how online tickets
>are handled; Ticketmaster is one example. Second, you could present the
>ticket in a separate window, opened through JavaScript; this window could
>present no browser controls, and could close when complete. This would make
>it more difficult (though not impossible) to reprint the coupon. Within the
>opening page, you could determine whether the child window has been opened
>once already, to prevent it from being reopened. Of course, this approach
>requires the use of a popup window, so it may be defeated by aggressive
>popup blockers.
>
>Dave Watts, CTO, Fig Leaf Software
>http://www.figleaf.com/
>
>Fig Leaf Software provides the highest caliber vendor-authorized
>instruction at our training centers in Washington DC, Atlanta,
>Chicago, Baltimore, Northern Virginia, or on-site at your location.
>Visit http://training.figleaf.com/ for more information!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287394
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4