[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 a largenumberof heading entries
To get rid of that error, in main.js, change line 64 from: var style = a.getAttribute("style"); to: var style = a.getAttribute("style", 2); For more information see: http://msdn.microsoft.com/en-us/library/ms536429%28v=vs.85%29.aspx David On 03/31/2011 09:15 PM, David Cramer wrote: > Thanks for reporting the information Denis. I've opened a tracker item > for it: > https://sourceforge.net/tracker/?func=detail&aid=3266134&group_id=21935&atid=373747 > > David > > On 03/31/2011 06:22 PM, Denis Bradford wrote: >> 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; >> background-color:white;"> >> >> 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 result. >> >> Too bad you can't just advise people not to use MSIE -- that might >> solve a whole bunch of other problems too ;-) >> >> Cheers, >> Denis >> >> 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 >>> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]