On 18.4.2012 14:01, Hussein Shafie wrote: >> It seems that sufficient solution is to replace newlines with spaces. >> Javascript code is the same but IE8 will not trigger warning message. > > Yes, we have noticed that but we thought that there was a way to disable > this warning in IE8 (which also requests the user to confirm the > execution of JavaScript, no matter the size of the script).
It seems that situation is more complex, thanks IE :-( If you open WebHelp from local drive then you are asked for ebabling script execution. This doesn't happen if you open files from network share or over HTTP. Slow script execution dialog is another issue which can be solved by disabling this through registry, see: http://support.microsoft.com/kb/175500 >> It seems that sufficient workaround is to modify saveTo() methods to >> emit space instead of \n. > > Please confirm that this workaround actually works, so we can do the > same change in the next release of whc. Hmm, it seems that IE8 has unpredictable behavior here. After replacing newlines in search/index/toc.js with spaces messages seems appear less frequently but it's still there. So finally it seems that this proposal is not solution at all. Instead I have tried to put HTML rendering of ToC directly to each generated page instead of loading it dynamically from toc.js. This solves issue (except that you can still get warning from loading search.js) but resulting pages are really large and if you have many such pages whole documentation then became really huge (hundreds of MB compared to few MB). I will update you if I will find something which really works in IE8. > Sure. Please point your Web browser to: > > http://www.xmlmind.com/archive/whc/ Thanks! Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: [email protected] http://xmlguru.cz ------------------------------------------------------------------ Professional XML consulting and training services DocBook customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member ------------------------------------------------------------------
signature.asc
Description: OpenPGP digital signature
-- XMLmind DITA Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/ditac-support

