Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Javascript HTML
Hi, i am trying to do it simple and will be happy to see / hear, examples / ideas
for the right approach :
 
suppose i have an jpg image: width of 780px and height of 2546px
that contains coupons.
 
my goal is to click on a coupon and print it...
 
my question is what is the best way to implement it
 
i thought about image map the will trigger a java script call when ever specific "coupon" is clicked and through the image map specification it would load an image(of the specific) coupon for printing.
 
i think that maybe there is a better solution..
 
keep in mind that my only option is one large image that contains coupons for printing.
Posted 17-Oct-12 6:42am
eran11341
Comments
Marcus Kramer at 17-Oct-12 11:56am
   
Could you explain why your only option is to have one large image?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Create an image cropping control[^]
 
May be the above link can help. It will allow you to select certain area on the image.
 
[edit] clickable link [/edit]
  Permalink  
v3
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

i did it eventually with the use of image maps:
 
coordinated the 'send to print button' and send to javascript 'print()' method that accept parameter
 
the parameter is a number of a picture(coupon)
 
i have a folder that contains all the coupons images:
1.jpg, 2.jpg ..... etc'
 
the print method retrieve the string (1.jpg)
and then print it.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 7,448
1 OriginalGriff 5,996
2 Peter Leow 4,292
3 CHill60 2,858
4 Mika Wendelius 2,850


Advertise | Privacy | Mobile
Web03 | 2.8.150224.1 | Last Updated 4 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100