Can someone please convey to me where as well as how I can put your hands on an really good piece of JAVASCRIPT code intended for " print Function" Which can be fully editable and has an affirmation page.
can anyone help me on this.
XENAWORX
What exactly don’t you mean a print function’ In order what gets printed that they are different from what the heck is displayed on the screen, you can either develop a different page, or start using a different CSS stylesheet (you can set a stylesheet to become for particular mass media, like print’ just for this case).
We need more detail to actually understand what you’re seeking to do. Regardless, what you’re requesting is unlikely as a Javascript-based solution.
Firstly thank for ones reply.
I am performing like an details park for my wedding as a web web site and what I would really prefer the print function for could be the invition part the place that the user can RSVP presently there details with there name and how many is coming next print and send to us.
I do employ a java script function but it really is petty basic i always found on line. I am exclusively really a newbie a JavaScript but I am aware enough to know the way it work and also meging it in to a page.
XENAWORX
Ok, this is actually not at all hard. Achieving this is supplied in three steps:
* Write a regular CSS stylesheet that shows the shape fields and hides one or two divs where that recorded information can be displayed — the hidden fields are the ones that might be printed.
* Write a print-based stylesheet that hides the form fields and shows the hidden job areas from above.
* Write a Javascript function which gets triggered while you click on the button that takes the information from the form fields and fills while in the information in the divs which are being hidden from the regular stylesheet. And then run the browser’s printer function.
This basically is the reason why the print mouse fills data from the page as in the event that it had always been there. Then the browser’s art print function reads your print stylesheet and hides the form, thus producing the page since you want it published.
I’m unsure if I’ve read this correctly, but in order it so that after you click a switch the page marks, just do this specific script:
< your href=" javascript: eye-port. print()" > Print Page< /a>
hopefully we’ve read your concern right.
Why do they have to print it out and about and mail the item back
There has to be a reason they can’t be given a log-in and they
visit online to RSVP. Each wedding has their account
I’m specialist something like " evite. com"… and you have
your own thing for your own web site.