A
aundro
Hello,
I've recently been developping a google-maps-like api.
Firstly, I started development under Firefox, but I now need to run it
under Internet Explorer, and I'm running into a little bit of
trouble..
With firefox, a "MapView" object actually subclasses a HTMLDivElement, as
follows:
----8<----
MapView.superclass = HTMLDivElement;
MapView.prototype = document.createElement ("div");
MapView.prototype.constructor = MapView;
----8<----
but that does not work with Internet Explorer, as it does not propose
the same (W3C) DOM api as Mozilla-based browsers.
I've been looking after the type of element to subclass under IE, or a
different subclassing mechanism, but without success. Can anyone point
me some reference documentation, or propose any kind of solution?
Many thanks in advance!
Cheers,
Arnaud
I've recently been developping a google-maps-like api.
Firstly, I started development under Firefox, but I now need to run it
under Internet Explorer, and I'm running into a little bit of
trouble..
With firefox, a "MapView" object actually subclasses a HTMLDivElement, as
follows:
----8<----
MapView.superclass = HTMLDivElement;
MapView.prototype = document.createElement ("div");
MapView.prototype.constructor = MapView;
----8<----
but that does not work with Internet Explorer, as it does not propose
the same (W3C) DOM api as Mozilla-based browsers.
I've been looking after the type of element to subclass under IE, or a
different subclassing mechanism, but without success. Can anyone point
me some reference documentation, or propose any kind of solution?
Many thanks in advance!
Cheers,
Arnaud