Re: Styleswitcher sometimes does not load CSS
Peter Zechmeister <[email protected]>
| Newsgroups | gmane.comp.cms.zms.devel |
|---|---|
| Message-ID | <1190886031.6673.64.camel@peterz-desktop> |
Found a workaround: dtml/javascript/styleswitcher.dtml replace all lines of this kind: return null; with this: return "size1"; where size1 is your default stylesheet. There were some cases (sometimes double click in the menue, ...) where JavaScript seemed to break in the middle of a block and returned null. With this patch it returns the title of the default stylesheet and the worst thing what happens now is, that a user gets the default css instead of his chosen one. This patch seems to work for now. I did not succeed to reproduce the error again. But I am not 100 percent sure because it came rather rare. Regards Peter Zechmeister, WebOffice / JKU Am Mittwoch, den 06.12.2006, 12:19 +0100 schrieb PeterZ: > ZMS 2.8.1-a52 > > Hi, > > sometimes on visiting a site, the stylesheet does not get loaded. Even > the browser force-reload button does not load it. In our template the > user has to click on one of the Fontsize-Links (setActiveStyleSheet > gets > performed then) to get a stylesheet rendered page again. > > This problem comes up very infrequent, so it is difficult to track it > down. It has been sighted in Firefox an IE. > > I want to ask here if we are the only ones with this problem or is it > a > known issue? > > BR > Peter Zechmeister, WebOffice, JK-University of Linz > > > > > -- It's struck me that the desire of people to market the RUP as the single process led to a result where people can do just about anything and call it RUP - resulting in RUP being a meaningless phrase. (http://www.martinfowler.com/articles/newMethodology.html)