By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,341 Members | 1,553 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,341 IT Pros & Developers. It's quick & easy.

prototype.__defineGetter__() equivalent in Konqueror

P: n/a
Is there an equivalent in Konqueror's KJS engine to Gecko's
__defineGetter__() and __defineSetter__() methods? Our web application
uses a ton of Javascript, written based on Internet Explorer's object
model as that's the primary platform that we're supporting. For
Netscape support we uses __defineGetter__() and __defineSetter__() to
emulate the many IE-only properties. I've tested our site using
Safari, and to my surprise, it renders perfectly. Alas, it's
completely non-functional. If it's somehow possible, I'd love to write
a similar emulation library for KJS so that our non-Windows users
would have an alternative to crummy Netscape/Mozilla.
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Chung Leong wrote:
[...] Our web application uses a ton of Javascript,
Can users without JavaScript use it? If not, your design is flawed.
written based on Internet Explorer's object model as that's the
primary platform that we're supporting.
Why on earth? Don't trust so-called "statistics", they are no
statistics at all.
For Netscape support we uses __defineGetter__() and
__defineSetter__() to emulate the many IE-only properties.


See? Get a hack on that proprietary code you are using, making
it standards-compliant since this is the direction in which the
Web is developing (recent IEs do support them, too). You do not
need the most of it, so you do not need to emulate the whole DOM.
And no, I do not know how to emulate the IE-DOM with KJS since I
write standards-compliant code where possible and therefore code
that can be used in the foreseeable future, independent of the
vendor which saves you a lot of trouble, once you turn around.

You may find this interesting:
http://devedge.netscape.com/viewsour...edge-redesign/
X-Post cwx.kde, cljs & F'up2 cljs

PointedEars
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.