SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Error

  1. #1
    SitePoint Enthusiast redhead's Avatar
    Join Date
    Feb 2004
    Location
    Ontario
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Error

    Hi there I need help with 2 scripts that are pretty much the same i keep getting the error object does not support method on line 15 char 1 in this script as soon as it is loaded.


    Code:
     
    <script language="JavaScript"> 
    <!-- // 
    function printing() { 
    factory.DoPrint(false, infoFrame); 
    showModalDialog('printing.htm', null,  
                'dialogWidth:300px;dialogHeight:200px;center:1;sta
    tus=0;help=0;resizable=0;scroll=0');  
    } 
    </script> 
    <object id="factory" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" 
    viewastext codebase="../contractor/4points/ScriptX.cab#Version=5,0,5,35"> 
    </object> 
    <base target="infoFrame"> 
    </head> 
    <body onLoad="printing()" bgcolor="#FFFFFF"> 
    <div align="center"> 
      <center> 
    <IFRAME name="infoFrame" framespacing="0" border="0" frameborder="0" width="100%" height="415" scrolling="no" noresize src="light.html"></IFRAME> 
        <table border="0" cellpadding="0" cellspacing="0" width="100%"> 
          <tr> 
            <td align="center"></a> <div align="left"> </div></td> 
          </tr> 
        </table> 
      </center> 
    </div> 
    </body> 
    </html>
    I'm getting the same error in this script when the button is pressed any ideas please help me

    Code:
      
    <script language="JavaScript"> 
    <!-- // 
         
    function printing() { 
    factory.DoPrint(false, infoFrame); 
    showModalDialog('printing.htm', null,  
                'dialogWidth:300px;dialogHeight:200px;center:1;sta
    tus=0;help=0;resizable=0;scroll=0');  
    } 
    
    </script> 
    
    <object id="factory" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" 
    viewastext codebase="ScriptX.cab#Version=5,0,5,35"> 
    </object> 
    <base target="infoFrame"> 
    </head> 
    <body bgcolor="#FFFFFF"> 
    <div align="center"> 
      <center> 
    <IFRAME name="infoFrame" framespacing="0" border="0" frameborder="0" width="100%" scrolling="no" noresize src="MegaCityRoofingInc.html"></IFRAME> 
        <table border="0" cellpadding="0" cellspacing="0" width="100%"> 
          <tr> 
            <td align="center"></a> <div align="left"> 
                <input name="print_image" type="image" value="border=" src="../images/print.jpg"  onclick="printing()" width="147" height="59"> 
                <a href="java script:history.back();"><img border="0" src="../images/back.jpg" width="147" height="59"></a></div></td> 
          </tr> 
        </table> 
      </center> 
    </div> 
    </body> 
    </html>

  2. #2
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you positive "DoPrint" is a valid method of the factory object?

    There's no way for me to test it, unless you provide a link to the page online.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •