5aLIVE
September 7th, 2006, 06:09
Hmm,
I recently downloaded an interesting eBook in CHM format, it has the annoying symptom of displaying an Internet Explorer Sript Error messsage box along the lines of :
An error has occurred in the script on this page
Line: 9
Char: 0
Error: Object expected
Code: 0
URL:mk:@MSITStore:C:\eBook\\My%Interesting%20eBook
The only pages which don't bring up this error is the cover page and ToC.
I've disabled the IE script debugging and check the I have the current version of hhctrl.ocx.
I also decompiled the .chm file and had a quick peer at the HTML source.
Here are the first few common lines :
I'm not really that well versed in HTML, the only problem I could see, I have highlighted in red, the '<' is missing from each htm file. I edited the first few pages and recompiled the file. Unfortunately the script error persists. Looking at this again, I don't think the missing '>' is an error afteral as it not a tag
Can anyone suggest how might I solve this? BTW, What tool could I use to do a batch search and replace for multiple files? Would a tool equivalent to grep for Windows do the job?
Thanks for reading.
I recently downloaded an interesting eBook in CHM format, it has the annoying symptom of displaying an Internet Explorer Sript Error messsage box along the lines of :
An error has occurred in the script on this page
Line: 9
Char: 0
Error: Object expected
Code: 0
URL:mk:@MSITStore:C:\eBook\\My%Interesting%20eBook
The only pages which don't bring up this error is the cover page and ToC.
I've disabled the IE script debugging and check the I have the current version of hhctrl.ocx.
I also decompiled the .chm file and had a quick peer at the HTML source.
Here are the first few common lines :
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0054)?bkid=61&chnkid=3 --><HTML><HEAD><TITLE>Introduction -</TITLE>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<SCRIPT language=JavaScript>
<!-- // Activate 33 cloak -->
</SCRIPT>
<META content="MSHTML 5.00.2920.0" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff leftMargin=0 link=#122eb2 onload=RefreshMenu();
<topMargin=5><A name=toppage></A>
<TABLE border=0 cellPadding=1 cellSpacing=1>
<TBODY>
<TR align=right>
<TD height=44><A href="http://www.books.com/toc.asp?bkid=61"
target=Content BORDER="0"></A><A
href="http://www.books.com/bookmark.asp?bkid=61&chnkid=3"
target=Content BORDER="0"></A><A
href="http://www.books.com/bookshelf.asp?bkid=61&chnkid=3&addbk=1"
I'm not really that well versed in HTML, the only problem I could see, I have highlighted in red, the '<' is missing from each htm file. I edited the first few pages and recompiled the file. Unfortunately the script error persists. Looking at this again, I don't think the missing '>' is an error afteral as it not a tag

Can anyone suggest how might I solve this? BTW, What tool could I use to do a batch search and replace for multiple files? Would a tool equivalent to grep for Windows do the job?
Thanks for reading.