Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows VistaWindows XPWindows MeWindows 98Windows 95Virtual PCInternet ExplorerOutlook ExpressWindows MediaSecurity
Related Topics
MS Server ProductsMS OfficePC HardwareMore Topics ...

Windows Forum / Internet Explorer / General Topics / June 2007

Tip: Looking for answers? Try searching our database.

Javascript Print Preview error in Secure Site (https)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chief Wun - 25 Jun 2007 23:45 GMT
* Using IE 7 Version 7.0.5730.11

* Using javascript:
    function showPrintPreview() {
         var objPrintPreview = '<object id="printPrev" width="0" height="0"
classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>';
         document.body.insertAdjacentHTML('beforeEnd', objPrintPreview);
         printPrev.ExecWB(7, 2);
         printPrev.outerHTML = "";
     }  

* The window is a popup in a secured site (https)

* Getting this error:

    A runtime error has occured.
    Do you wish to Debug?

    Line: 615
    Error: Object doesn't support this property or method

Can anyone help me out on this one?  The problem is that when using the same
browser, same code, and same popup the script works just fine.  After
migrating to the test server, the problem started happening.  I can still run
this page all day in the IDE and IE7.

Signature

Some days you''re the pigeon, some days the statue!

Rob ^_^ - 26 Jun 2007 06:07 GMT
Ug Cheif,

Check your zone security settings for 'enable scripting of web browser
control'.

Otherwise I think(from memory) that the ExecWB method in IE7 does not accept
the prompt parameter (or is it a feature). Try printPrev.ExecWB(7) instead.

Regards.
>* Using IE 7 Version 7.0.5730.11
>
[quoted text clipped - 24 lines]
> run
> this page all day in the IDE and IE7.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.