[kronolith] Printing in Mozilla

Oliver Kuhl okuhl at netcologne.de
Fri Mar 14 13:00:58 PST 2003


Zitat von Jan Schneider <jan at horde.org>:

> > > Does anyone has an idea how to fix it?
> > I found out that the javascript function for printing in
> > horde/templates/javascript/print.js "printWin();" is found at the bottom
> > of
> > that file _and_ is therefore called before the rest of the html-code is
> > loaded/rendered/written. Mozilla seems to call the function before
> > rendering.
> >
> > The solution would be to call that function later...
> 
> No, the problem is that Mozilla triggers the onerror event even on warnings
> and I didn't yet find a way to determine in the event handler if an error is
> really an error or a warning.
> 
> This applies to all print screens btw. The problem is that Mozilla throws
> warnings for all kind of stuff like variables not being initialized with
> "var" or the usual test in javascript if an object exists:
> "if (object_to_test) { }".
Hmm. Did you try something like <body onLoad="printWin();">?

Gruss,
   Ollie.


More information about the kronolith mailing list