E
Erwin Moller
Hi,
sIFR = Scalable Inman Flash Replacement.
I use version 3, revision 436.
In my current project our designerguy wanted me to implement sifr.
Sifr is a technic to replace certain fonts with a flash-object that
displays the content in a certain typeface...
Sifr can be found here:
http://www.mikeindustries.com/blog/sifr/
Allthough I really hate to implement thirdparty libs in my projects, our
designerguy insisted, so sifr it is.
The first thing I found was that an unrelated lib (of myself) stopped
working.
Look at the following code snippet from my lib:
if (window.event){
// alert (window.event);
elementName = window.event.srcElement.name;
} else {
elementName = FFref.name;
}
In Firefox (3.0.11) I appearantly had some window.event!
If I uncomment the alert it gives me on FF: 'Object UIEvent'.
If I disable sifr I get 'undefined', as expected.
I can't think of a valid reason for any lib to screw around with the DOM
like that.
To be honest, I don't even know what they did to it, so I looked into
the sourcecode of sifr, but it consists of a heavily compacted two-line
program, without comments of course, which makes it very hard to disect.
Then I visited their forum, which was a mess without a searchoption.
My main problem is not this particular problem because I can evade it by
a few modifications in my lib, but I am afraid this sifr-lib screws up
more. (That is why I seldom use thrid party libs)
So I ask in here before I dive deeper into this package: Does anybody in
here have experience with sifr?
And why should they make window.event available in FF?
Should I start a discussion with the designerguy who fell in love with sifr?
Thanks for your time!
Regards,
(A slightly irritated) Erwin Moller
--
"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies. The first method is far more difficult."
-- C.A.R. Hoare
sIFR = Scalable Inman Flash Replacement.
I use version 3, revision 436.
In my current project our designerguy wanted me to implement sifr.
Sifr is a technic to replace certain fonts with a flash-object that
displays the content in a certain typeface...
Sifr can be found here:
http://www.mikeindustries.com/blog/sifr/
Allthough I really hate to implement thirdparty libs in my projects, our
designerguy insisted, so sifr it is.
The first thing I found was that an unrelated lib (of myself) stopped
working.
Look at the following code snippet from my lib:
if (window.event){
// alert (window.event);
elementName = window.event.srcElement.name;
} else {
elementName = FFref.name;
}
In Firefox (3.0.11) I appearantly had some window.event!
If I uncomment the alert it gives me on FF: 'Object UIEvent'.
If I disable sifr I get 'undefined', as expected.
I can't think of a valid reason for any lib to screw around with the DOM
like that.
To be honest, I don't even know what they did to it, so I looked into
the sourcecode of sifr, but it consists of a heavily compacted two-line
program, without comments of course, which makes it very hard to disect.
Then I visited their forum, which was a mess without a searchoption.
My main problem is not this particular problem because I can evade it by
a few modifications in my lib, but I am afraid this sifr-lib screws up
more. (That is why I seldom use thrid party libs)
So I ask in here before I dive deeper into this package: Does anybody in
here have experience with sifr?
And why should they make window.event available in FF?
Should I start a discussion with the designerguy who fell in love with sifr?
Thanks for your time!
Regards,
(A slightly irritated) Erwin Moller
--
"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies. The first method is far more difficult."
-- C.A.R. Hoare