Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss
Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

<object> tag causing asp page to timeout and me to pull hair out

5 views
Skip to first unread message

andrewg

unread,
Aug 3, 2007, 5:23:01 PM8/3/07
to
I've added a vbscript to an asp page in order to print without showing
the print dialog box.

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?

0 new messages