cannot find source of error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Middletree

    cannot find source of error

    This is an ASP-built Intranet app, so I have saved off a static
    version of the page for reference, and it is located at
    http://www.middletree.net/err.htm and the page to compare it to is


    If you go to the first page, in my case using IE 6/WinXP, you'll see
    that it shows a js error. More important than just the error is that
    the menu is gone. On the 2nd page, the error doesn't exist.

    That second page only differs, code-wise in one small snippet of ASP
    code which falls an IF/ELSE ASP condition. Here's the code which
    builds the page with the error (which falls under the ELSE half):


    Else
    'if no history items
    if strNoRecords = "1" then
    Else
    Response.Write "<table cellpadding=0 cellspacing=0 border=1
    width=620 bgcolor="&bgcol or2&">"
    Response.Write "<tr><td colspan=3 align=center><s pan
    class=cellnumbe r>No work history items have been added for this
    ticket</span></td></tr></table>"
    End if
    End if

    -----------------------------------

    Can anyone see what I am missing?
  • Michael Winter

    #2
    Re: cannot find source of error

    On 24 Nov 2004 13:10:39 -0800, Middletree <middletree@hot mail.com> wrote:

    [snip]
    [color=blue]
    > Can anyone see what I am missing?[/color]

    The "error" page doesn't contain an element with the id, WorkHistory,
    which you try to access when the page loads in order to hide the DIV
    elements it contains.

    Mike

    --
    Michael Winter
    Replace ".invalid" with ".uk" to reply by e-mail.

    Comment

    • Lee

      #3
      Re: cannot find source of error

      Middletree said:[color=blue]
      >
      >This is an ASP-built Intranet app, so I have saved off a static
      >version of the page for reference, and it is located at
      >http://www.middletree.net/err.htm and the page to compare it to is
      >http://www.middletree.net/noerr.htm
      >
      >If you go to the first page, in my case using IE 6/WinXP, you'll see
      >that it shows a js error. More important than just the error is that
      >the menu is gone. On the 2nd page, the error doesn't exist.
      >
      >That second page only differs, code-wise in one small snippet of ASP
      >code which falls an IF/ELSE ASP condition. Here's the code which
      >builds the page with the error (which falls under the ELSE half):
      >
      >
      >Else
      > 'if no history items
      > if strNoRecords = "1" then
      > Else
      > Response.Write "<table cellpadding=0 cellspacing=0 border=1
      >width=620 bgcolor="&bgcol or2&">"
      > Response.Write "<tr><td colspan=3 align=center><s pan
      >class=cellnumb er>No work history items have been added for this
      >ticket</span></td></tr></table>"
      > End if
      >End if
      >
      >-----------------------------------
      >
      >Can anyone see what I am missing?[/color]

      If there is no work history, in addition to writing that message, you
      need to avoid writing the onload handler that tries to hide the work history.

      Comment

      Working...