hi everyone, i found this neat trick at http://javascript.internet.com/messa...page-auto.html
that automatically pops up a little box when someone hits your receipt page asking if they would like to print the page....
it works neatly
one thing to remember is that if you are adding it to an existing <body> tag, you need to do it this way..
existing actinic body tag,
<body NETQUOTEVAR:BGIMAGE "NETQUOTEVAR:ONLOAD" NETQUOTEVAR:BGCOLOR text="NETQUOTEVAR:FGCOLOR" NETQUOTEVAR:LINKCOLOR NETQUOTEVAR:VLINKCOLOR NETQUOTEVAR:ALINKCOLOR>
and they tell you to insert
<BODY OnLoad="printPage()">
now because you already have a body tag there, you would naturally think that simply cutting out their OnLoad="printPage()" and pasting it into your actinic <body NETQUOTE etc> tag would be sufficient but you need to add a semi colon to seperate it from your existing onload statements from actinic
OnLoad= printPage();
so.... the proper way to add it to the actinic example above would be
<body OnLoad= printPage(); NETQUOTEVAR:BGIMAGE "NETQUOTEVAR:ONLOAD" NETQUOTEVAR:BGCOLOR text="NETQUOTEVAR:FGCOLOR" NETQUOTEVAR:LINKCOLOR NETQUOTEVAR:VLINKCOLOR NETQUOTEVAR:ALINKCOLOR>
we used to just make a print window hyperlink out of the word print...
hurrah for well thought of javascrips...
steve quinn
harlequin domains
www.harlequindomains.com
0800 0832077
Actinic Design, Hosting and Search Engine Optimisation
that automatically pops up a little box when someone hits your receipt page asking if they would like to print the page....
it works neatly
one thing to remember is that if you are adding it to an existing <body> tag, you need to do it this way..
existing actinic body tag,
<body NETQUOTEVAR:BGIMAGE "NETQUOTEVAR:ONLOAD" NETQUOTEVAR:BGCOLOR text="NETQUOTEVAR:FGCOLOR" NETQUOTEVAR:LINKCOLOR NETQUOTEVAR:VLINKCOLOR NETQUOTEVAR:ALINKCOLOR>
and they tell you to insert
<BODY OnLoad="printPage()">
now because you already have a body tag there, you would naturally think that simply cutting out their OnLoad="printPage()" and pasting it into your actinic <body NETQUOTE etc> tag would be sufficient but you need to add a semi colon to seperate it from your existing onload statements from actinic
OnLoad= printPage();
so.... the proper way to add it to the actinic example above would be
<body OnLoad= printPage(); NETQUOTEVAR:BGIMAGE "NETQUOTEVAR:ONLOAD" NETQUOTEVAR:BGCOLOR text="NETQUOTEVAR:FGCOLOR" NETQUOTEVAR:LINKCOLOR NETQUOTEVAR:VLINKCOLOR NETQUOTEVAR:ALINKCOLOR>
we used to just make a print window hyperlink out of the word print...
hurrah for well thought of javascrips...
steve quinn
harlequin domains
www.harlequindomains.com
0800 0832077
Actinic Design, Hosting and Search Engine Optimisation
Comment