Trouble with "print page" link

S

sheetrum

I have created a confirmation page with confirmation feilds (3). I was
wondering if, being in "/_vti_bin/shtml.exe/" folder on the server is
keeping me from having people print the page for their records. I had this
working last year and I thought I had everything set up the same way as
before.

Each time I try to click on a link to print the page, I get an "Error on
Page" notice in the lower left corner of the browser window.

I have included the code for the problem section of the page below.



Thanks you for your support!</font></p>
<p align="center"><u><i><b><font face="Tahoma" size="5"
color="#000080">&nbsp;<a href="javascript:print_page()">Please print this
page for your records</a> </font></b></i></u>
</p>
<p align="center">&nbsp;</p>
<p align="center"><span style="FONT-SIZE: 14pt">On </span>
<span style="TEXT-DECORATION: underline"><font
size="5">&nbsp;&nbsp;</font></span><span style="text-decoration:
underline"><font size="5"><!--webbot bot="TimeStamp" s-type="REGENERATED"
s-format="%m/%d/%y" --></font></span><span style="TEXT-DECORATION:
underline"><font size="5">&nbsp;
</font></span><span style="FONT-SIZE: 14pt">,&nbsp; &nbsp;</span><u><font
size="5">&nbsp;
<!--webbot bot="ConfirmationField" s-field="contact" -->&nbsp; </font></u>
<span style="FONT-SIZE: 14pt">&nbsp;has registered as a </span><font
size="5"><u>&nbsp;<!--webbot bot="ConfirmationField"
s-field="sponsor_type" -->
</u></font><span style="FONT-SIZE: 14pt">&nbsp;at<br>
Sacred Heart School's Annual Golf Tournament to be held at <br>
 
T

Thomas A. Rowe

Suggest that you just let people print the page using the normal browser's print command.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
S

sheetrum

....but that doesn't solve the problem!



Thomas A. Rowe said:
Suggest that you just let people print the page using the normal browser's
print command.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
T

Thomas A. Rowe

But is a workable solution to the issue and maybe the only solution since the page is being process
by the FP Form handler, which give you no control to change the behavior.
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
S

Stefan B Rusynko

Post a URL to your form page and the confirmation page (w/ the print script/link) in it

--




|I have created a confirmation page with confirmation feilds (3). I was
| wondering if, being in "/_vti_bin/shtml.exe/" folder on the server is
| keeping me from having people print the page for their records. I had this
| working last year and I thought I had everything set up the same way as
| before.
|
| Each time I try to click on a link to print the page, I get an "Error on
| Page" notice in the lower left corner of the browser window.
|
| I have included the code for the problem section of the page below.
|
|
|
| Thanks you for your support!</font></p>
| <p align="center"><u><i><b><font face="Tahoma" size="5"
| color="#000080">&nbsp;<a href="javascript:print_page()">Please print this
| page for your records</a> </font></b></i></u>
| </p>
| <p align="center">&nbsp;</p>
| <p align="center"><span style="FONT-SIZE: 14pt">On </span>
| <span style="TEXT-DECORATION: underline"><font
| size="5">&nbsp;&nbsp;</font></span><span style="text-decoration:
| underline"><font size="5"><!--webbot bot="TimeStamp" s-type="REGENERATED"
| s-format="%m/%d/%y" --></font></span><span style="TEXT-DECORATION:
| underline"><font size="5">&nbsp;
| </font></span><span style="FONT-SIZE: 14pt">,&nbsp; &nbsp;</span><u><font
| size="5">&nbsp;
| <!--webbot bot="ConfirmationField" s-field="contact" -->&nbsp; </font></u>
| <span style="FONT-SIZE: 14pt">&nbsp;has registered as a </span><font
| size="5"><u>&nbsp;<!--webbot bot="ConfirmationField"
| s-field="sponsor_type" -->
| </u></font><span style="FONT-SIZE: 14pt">&nbsp;at<br>
| Sacred Heart School's Annual Golf Tournament to be held at <br>
|
|
|
|
|
 
S

sheetrum

I was missing a script from the head of the page. I found it after
inspecting each page line by line. (I had a copy of the page that worked
last year.)

Here is what I was missing:

<script type="text/javascript">
function print_page(where){
var is_mac=(navigator.platform.indexOf("ac") != -1);
(document.all && is_mac)?
alert("Select \"Print\" from the menu") : where? where.window.print() :
window.print();
}
</script>

Now I can print with the click of a button, as desired!

sheetrum
 
S

sheetrum

Thanks Stefan,

But I found out that I was missing a script in the head of the document.
See my reply to Thomas for details.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top