A
andrewg
I've added a vbscript to an asp page in order to print without showing
the print dialog box. This is run on a local computer with only one
printer installed not on the internet, so the usual security issues do
not apply.
Everything works fine when you first load the page, but when you try
and navigate away from the page, you get the "A script on this page
has caused internet explorer to run slowly" error.
this code was added in the <head> tags,
1. <script language="VBScript">
2. Sub cmdClickMe_OnClick
3. WBControl.ExecWB 6,2,3
4. set WBControl = nothing
5. End Sub
6. </script>
and this on the page body,
1. <object id="WBControl" width="0" height="0" classid="CLSID:
8856F961-340A-11D0-A96B-00C04FD705A2"></object>
2. <img src="images/print.gif" NAME="cmdClickMe" VALUE="Click
Me">
Taking the <object> tag off keeps the page working fast, replacing
either at the top, middle or bottom causes the page to time out when
navigating away from the page, regardless of having used the vbscript.
Any clues whatsoever?
the print dialog box. This is run on a local computer with only one
printer installed not on the internet, so the usual security issues do
not apply.
Everything works fine when you first load the page, but when you try
and navigate away from the page, you get the "A script on this page
has caused internet explorer to run slowly" error.
this code was added in the <head> tags,
1. <script language="VBScript">
2. Sub cmdClickMe_OnClick
3. WBControl.ExecWB 6,2,3
4. set WBControl = nothing
5. End Sub
6. </script>
and this on the page body,
1. <object id="WBControl" width="0" height="0" classid="CLSID:
8856F961-340A-11D0-A96B-00C04FD705A2"></object>
2. <img src="images/print.gif" NAME="cmdClickMe" VALUE="Click
Me">
Taking the <object> tag off keeps the page working fast, replacing
either at the top, middle or bottom causes the page to time out when
navigating away from the page, regardless of having used the vbscript.
Any clues whatsoever?