I have a site of ASP pages. Those ASP pages all use the same <SCRIPT> for a menu system. The location of that script is in one of each page's #INCLUDE(d) files. (More: I have a top.asp page that is included that writes the same <html><head>, <script> etc. tags for every page.)
I am NOT using frames.
Probably 98% of the pages all work great. The other 2% are giving me issues with the error in the Subject line. Here's the scoop:
I have a basic ASP page that is passed a document name (for a .htm file) and then checks to see if it exists (using the FileSystemObject). If it does exist, it opens it up with a ReadAll and I Response.Write the string.
The page loads up fine but if I click Refresh or Back, I get "Can't execute code from a freed script." By process of elimination, I have narrowed it down to the following line:
Response.Write(txtDoc.Readall)
of...
If fso.FileExists(m_strPath & "\MyDocuments\" & m_strDocName & ".htm"
Then
Set txtDoc = fs
penTextFile(m_strPath & "\MyDocuments\" & m_strDocName & ".htm",1, False)
Response.Write(txtDoc.Readall)
End If
--- If I comment out the Response.Write line, I do not get the error but I'm also removing the key functionality of the page - writing the text of the specified file.
Everything I read online points to client-side JavaScript, thus my post. Can any of you JS gurus give me some direction? Thanks!
I am NOT using frames.
Probably 98% of the pages all work great. The other 2% are giving me issues with the error in the Subject line. Here's the scoop:
I have a basic ASP page that is passed a document name (for a .htm file) and then checks to see if it exists (using the FileSystemObject). If it does exist, it opens it up with a ReadAll and I Response.Write the string.
The page loads up fine but if I click Refresh or Back, I get "Can't execute code from a freed script." By process of elimination, I have narrowed it down to the following line:
Response.Write(txtDoc.Readall)
of...
If fso.FileExists(m_strPath & "\MyDocuments\" & m_strDocName & ".htm"

Set txtDoc = fs

Response.Write(txtDoc.Readall)
End If
--- If I comment out the Response.Write line, I do not get the error but I'm also removing the key functionality of the page - writing the text of the specified file.
Everything I read online points to client-side JavaScript, thus my post. Can any of you JS gurus give me some direction? Thanks!