Link to home
Start Free TrialLog in
Avatar of gd2141
gd2141

asked on

Not null or object error with Quicken registration page - a DLL problem, really?

Not my programming, but I am curious if the explanation Intuit gives for this error is possible. My error is: "Line 19 Error: 'document.all[...].SnapShot' is null or not an object.  Intuit says this is an issue with DLLs (http://www.intuit.com/support/quicken/2003/win/6100.html).  Does that make sense?  How?  Or is it problem in their code?
Here is the code:




<!-- 3F4E2394BAE6254C1E6A15C426F4D31DEF530BF1449E94B3CA25 -->
<!-- EF458210C6DB0868872409513C0CB41C90BB369B6380B84A1779 -->
<!-- 535A5424FCD23CA3308B50B5C9CEBE9EAF117A323CB3BC163297 -->
<!-- 0FBE78CEF0800975A016E19696A5883DF1B17E8C790783C2DA93 -->
<!-- 10CB7316C6A1939AB854BCE59A3CBCB81A89967E47C0A819A693 -->
<!-- DDBC93E3A87C9B241F674E84BC2C1A0114733B163E96D8729ABC -->
<html>
<head>
<title>Quicken Product Registration</title>
<style>
<!--
.bb          { font-family: MS Sans Serif; font-size: 8pt }
-->
</style>
</head>

<script>
function resize(snapshot)
{
    var h = document.all[snapshot].SnapShot.GetHeight();
    var w = document.all[snapshot].SnapShot.GetWidth();

    if (h > 0)
    {
        document.all[snapshot].width = w;
        document.all[snapshot].height= h;
        document.all[snapshot].SnapShot.Size(0,0,w,h);
    }
}

function size_zero(snapshot)
{
    document.all[snapshot].width = 1;
    document.all[snapshot].height= 1;
    document.all[snapshot].SnapShot.Size(0,0,1,1);
}

function DoICSetup()
{
    // Return code 0 cancels
    qw.Command.EndModal( 0, "http://qw.exe/qw?menuid=6407" );
}

function DoHelp()
{
    document.location = "http://qw.exe/qw?help=8511";
}

function DoCancel()
{
    // Return code -1 continues whatever was being done prior to reg
    qw.Command.EndModal( -1, 0 );
}

</script>

<SCRIPT LANGUAGE="JavaScript" FOR="uqw" EVENT="onSnapShotUpdate()">
resize('uqw');
</SCRIPT>

<SCRIPT LANGUAGE="JavaScript" FOR="qw" EVENT="onQuickenEvent(szType)">
    if(szType == "Registration")
    {
        var nState = qw.Command.REG_GetState();
       
        // Always turn the first two off
        idDiv1.style.display = 'none';
        idDiv2.style.display = 'none';
       
        if (nState == 1)
        {
            idDiv1.style.display = '';
            idDivUQW.style.display = '';
        }
        else if (nState == 2)
        {
            // Hide the third, just in case
            idDiv3.style.display = 'none';
            idDiv2.style.display = '';
            idDivUQW.style.display = '';
            location.href = qw.Command.REG_GetURL();
        }
        else if (nState == 3)
        {
            idDiv3.style.display = 'none';
            idDivUQW.style.display = '';
        }
        else if (nState == 4)
        {
            // Registration already complete
            var nType = qw.Command.REG_GetType();
           
            if (nType == 2)
            {
                // Type 2 is an "upgrader"
                document.location.href = "complete.htm";
            }
            else if (nType == 3)
            {
                // type 3 means skip the osu config
                document.location.href = "later.htm";
            }
            else
            {
                // Otherwise treat as new user
                document.location.href = "benefits.htm";
            }
        }
        else
        {
            // Show the error page
            // It's worth noting that hiding the snapshot by trying to change the display or visibility
            // attribute causes qwin to crash
            // Remove this call to size_zero if we don't hide the snapshot on the error pages
            size_zero('uqw');
            idDiv3.style.display      = '';
        }
    }
</SCRIPT>

<OBJECT ID="qw"  CLASSID=CLSID:C79C91A1-DB06-11D2-9E0C-00105A26F05D WIDTH=1 HEIGHT=1></OBJECT>
<script>
// Initialize
qw.Type="Data";
</script>

<body onload="resize('uqw');">
        <center>

      <table border="0" cellspacing="0" cellpadding="5" width="570">
       
        <tr>
          <td><b><font face="Arial" color="#336699"><br>
            </font>
            </b>
<table border="0" cellspacing="0" bgcolor="#336699" cellpadding="0">
  <tr>
    <td align="left" valign=top width="5"><img border="0" src="uplc2.gif" width="6" height="6"></td>
    <td nowrap>
      <table border="0" cellpadding="0" cellspacing="0" height="1">
        <tr>
          <td></td>
        </tr>
      </table>
      <font color="#FFFFFF" face="Verdana" size="2"><b>Welcome to Quicken registration...</b></font>
      <table border="0" cellpadding="0" cellspacing="0" height="2">
        <tr>
          <td></td>
        </tr>
      </table>
    </td>
    <td align="right" valign=top width="5"><img border="0" src="uprc2.gif" width="6" height="6"></td>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#336699" height="1">
  <tr>
    <td width="100%">
      <table border="0" cellpadding="0" cellspacing="0">
        <tr>
           <td></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
          </td>
        </tr>
       
        <tr>
          <td>
              <script>
              function TryAgain( bRegPage, eDiv )
              {
                  eDiv.style.display = 'none';
                 
                  if (bRegPage)
                  {
                      location.href = qw.Command.REG_GetURL();
                  }
                  else
                  {
                      // Remove this call to resize if we don't hide the snapshot on the error pages
                      resize('uqw');
                      qw.Command.REG_NextState();
                  }
              }
              </script>
         
              <div align="center" id="idDiv1" STYLE="display='none'" >
              <font face="MS Sans Serif" size="2">Quicken needs to initiate product registration.  This
              may take a few minutes....</font>
              </div>
             
              <div align="center" id="idDiv2" STYLE="display='none'" >
              <font face="MS Sans Serif" size="2">Going online to the registration pages...</font>
              </div>
             
              <div id="idDiv3" STYLE="display='none'" >
              <font face="MS Sans Serif" size="2">
              Connection to registration is unsuccessful.  Please check your
              Quicken Internet Connection Settings and then
              <a href="javascript:TryAgain( false, idDiv3 )" onMouseOver="window.status='Try again'; return true;" onMouseOut=window.status=''; return true;">
              try again</a>.  If this does not help, please visit the
              <a href="http://qw.exe/qw?externalurl=http://qw2003.quicken.com/cgi-bin/qd.cgi/w/2003/reghelp" onMouseOver="window.status='http://www.intuit.com/support/quicken/faqs/docs/w_onlinetroubleguide.html'; return true;" onMouseOut="window.status=''; return true;">
              Online Trouble Shooting Guide</a>, or click help below.
              </font>
             
              <p align="center"> <font face="Arial">
              <input type="button" value="Cancel" name="B1" class="bb" onclick="javascript:DoCancel()">&nbsp;
              <input type="button" value=" Help " name="B1" class="bb" onclick="javascript:DoHelp()">
              </font></p>
       
              </div>
             
              <div id="idDiv4" STYLE="display='none'" >
              <font face="MS Sans Serif" size="2">Registration did not complete successfully.
              <a href="javascript:TryAgain( false, idDiv3 )" onMouseOver="window.status='Try again'; return true;" onMouseOut=window.status=''; return true;">
              Try again</a> or if you are still not successful, visit the
              <a href="http://qw.exe/qw?externalurl=http://qw2003.quicken.com/cgi-bin/qd.cgi/w/2003/reghelp" onMouseOver="window.status='http://www.intuit.com/support/quicken/faqs/docs/w_onlinetroubleguide.html'; return true;" onMouseOut="window.status=''; return true;">
              Online Trouble Shooting Guide</a> for more information, or click help below.
              </font>
           
              <p align="center"><font face="Arial">
              <input type="button" value="Cancel" name="B1" class="bb" onclick="javascript:DoCancel()">&nbsp;
              <input type="button" value=" Help " name="B1" class="bb" onclick="javascript:DoHelp()">
              </font></p>
       
              </div>
             
              <div align="center" id="idDivUQW" STYLE="display='none'" >
                  <OBJECT ID="uqw"  CLASSID=CLSID:C79C91A1-DB06-11D2-9E0C-00105A26F05D WIDTH=400 HEIGHT=400>
                  </OBJECT>
                  <script language="JavaScript">
              uqw.Type="SnapShot";
              uqw.SnapShot.Init(168);
                  uqw.SnapShot.CreateView();
                  uqw.SnapShot.SetAreaDisplay(-1,1);
                  uqw.SnapShot.SetAreaDisplay(0,0);
              </script>
              </div>
          </td>
        </tr>
      </table>

<table border="0" cellPadding="0" cellSpacing="0" width="570" bgcolor="#FFFFFF">
  <tbody>
    <tr>
      <td align="center">
            <table border="0" cellpadding="0" cellspacing="0" width="570" bgcolor="#336699" height="1">
              <tr>
                <td width="100%">
                <table border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td></td>
                  </tr>
                </table>
                </td>
              </tr>
            </table>
        </td>
    </tr>
  </tbody>
</table>

</center>

<script>

var n = qw.Command.REG_GetState();
if (n == 0)
{
    qw.Command.REG_NextState();
}
else
{
    // We're somewhere in the reg process, so go to the reg error page
    // It's worth noting that hiding the snapshot by trying to change the display or visibility
    // attribute causes qwin to crash
    // Remove this call to size_zero if we don't hide the snapshot on the error pages
    size_zero('uqw');
    idDiv4.style.display      = '';
}
</script>
       
</body>
</html>
ASKER CERTIFIED SOLUTION
Avatar of gator4life
gator4life

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gd2141
gd2141

ASKER

Thanks, gator4life.  I can say that I have shutdown everything that WinXP Pro will let me and I still have the problem after uninstall/reboot/shutdown-everything/reinstall.  I will call Intuit when their offices are open for their advice.  A couple of other things:  the classid is found in the registry and references qwapp.dll which does exist in the Quicken directory.  When quicken is running, that DLL is not shown to be loaded from the tasklist /m command.  A Google search of newsgroups shows a somewhat similar error reported in a previous version of Quicken.  The workaround was to regsrv32 the DLL.  It does load the DLL, but the error still exists. -- Again, thank you for the comprehensive explanation -- I will update things after hearing from Intuit or any additional replies/suggestions here.
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: gator4life {http:#8232848}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jAy
EE Cleanup Volunteer