OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Slow TOC tree in webhelp when there are alargenumber of heading entries

When I ran a medium-size webhelp document on MSIE 8 and clicked a search 
result I also got slow performance. And this error, which even appears 
when I run the small webhelp demo.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; 
Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 
3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 
3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
Timestamp: Fri, 25 Feb 2011 20:59:29 UTC

Message: Object doesn't support this property or method
Line: 65
Char: 13
Code: 0
URI: file:///C:/webhelp/demo/out/common/main.js

Here's the referenced line in main.js:
   if (style != null && !style.match(/background-color: Background;/)) {

The generated HTML has this line with the background-color style:
<div id="leftnavigation" style="padding-top:3px;

Maybe this error explains why expanded TOC trees don't have shaded 
backgrounds in MSIE 8, as they do in other browsers.

Googling on this connection, I read that MSIE 8 doesn't support the 
match function. I tried switching to the search function, with the same 

Too bad you can't just advise people not to use MSIE -- that might solve 
a whole bunch of other problems too ;-)


On 03/31/2011 06:41 PM, david@thingbag.net wrote:
> Also see the Recommended Apache Configurations section to improve
> performance. In fact, those settings are all things Kasun researched
> last summer :-) The TDG example on thingbag.net that Kasun pointed to
> benefits from those settings:
> http://docbook.sourceforge.net/release/xsl/current/webhelp/docs/content/ch02s02.html
> The TDG example is a pretty large book and it works ok in webhelp. At
> some point, however, you would indeed hit a limit since one of the side
> effects of having no frameset is that the toc tree is on every page in a
> div.
> A possible improvement would be to store the toc tree in a separate js
> file, so it could be cached. It's on the list of things we'd like to
> improve: http://docbook.xmlpress.net/tiki-index.php?page=WebHelp2011
> Thanks,
> David

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]