azraf — 2011-02-28T15:08:25-05:00 — #1
I have posted a thread in PHP section http://www.sitepoint.com/forums/showthread.php?t=737982
I need to print one form from Multiple forms in one page
I am planning to make a page which will contain 6 receipt form. [Six form in One page]. When the form filled up, then jQuery Ajax will submit the form without reloading the page, and there will also be 6 different button to print each individual form.
N.B. One person give a hints that, I need 6 id with 6 listener. I need little more detail guideline.
chris_upjohn — 2011-02-28T17:49:12-05:00 — #2
azraf — 2011-03-01T01:23:36-05:00 — #3
I actually need to make option for mutiple print option [for each form, individually] in one page.
Your given link is only a for Form plugin.
Thanks for your time.
paul_wilkins — 2011-03-01T01:43:16-05:00 — #4
That could most easily be done by applying a different CSS print stylesheet, depending on which form you want the print stylesheet to display.
sguduru — 2011-03-01T17:34:54-05:00 — #5
give six unique ids for forms and when click on print button create a print window, write html content related print area, print this window and close.
here is the sample code i have created in my page
call the below function on print button click by passing unique id
html+="<link rel='Stylesheet' type='text/css' href='css/print.css' media='print' />";
var printWin = window.open('','','left=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0');
azraf — 2011-03-02T00:02:21-05:00 — #6
Thanks a lot. I am going to try it soon.
sguduru — 2011-04-13T23:28:57-04:00 — #7