Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10

Thread: LayerEmu

  1. #1
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts

    Netscape LayerEmu

    Just because Jeewhiz is "pimping his site" already, I'm gonna expose my recent MozDev project.

    http://layeremu.mozdev.org

    It will (in theory) emulate <nolayer>, <layer>, <ilayer>, an the Layer() constructor from NS4 in Mozilla, saving some DHTML from a rewrite. I also am doing it to kind of prove a point about how powerful Mozilla is.

    If you want to see some semi-working examples already (the project was just announced today at mozdev.org ), find me on AIM or MSN Messenger...


    Why post it in this forum though? Good question, since there is no DHTML forum it appears, and it is not solely a JS-related topic, not to mention this *is* emulating some old-fashioned proprietary HTML tags .

  • #2
    New Coder
    Join Date
    Jun 2002
    Location
    Stuck in the inner reaches of my mind
    Posts
    84
    Thanks
    0
    Thanked 0 Times in 0 Posts
    emulate that? I mean its good for backwards compatablity, but otherwise, /me ==

  • #3
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    I know exactly what you're saying Javaman. But with Mozilla finally > 1 (1.1 Alpha was just recently released, and branched a while ago ), and with AOL seemingly about ready to implement Gecko, more and more people will be using the awesome browser. But of course, that means more and more uneducated people complaining "oh, I'll never use Gecko because none of my poorly coded cut-n-paste, err, I mean my excellent DHTML works!"

    By suppyling the legacy support, I hope to eliminate some of those complaints and turn more users on to Gecko.

    I mean, what kind of browser allows a developers to fully emulate a pre-existing model without touching the source code of the browser? A very well-thought out one.

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That is very impressive

    I think that supporting legacy browsers is beyond useful, it is absolutely essential. There's serious need for a project like this, because at this particular point in time, enough people still use netscape 4 that supporting it is necessary (personally I still support netscape 3 ...) But for someone who's only just starting to learn DHTML, it can seem, and indeed is, a daunting prospect to learn the ins and outs of programming for ns4.

    I should know ... it took me long enough to grock it ... and some of it's more hardcore features are so bizarre to implement, it's hard to remain sane at times

    As for the point you're proving .... well, I've made my views clear enough. It's just the rendering .. that's all ... I just don't like the way things look in it; there's a harsh quality to its rendering that I just can't get comfortable with.

    Anyway. Nice one

  • #5
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Just a quick status update (current files have *not* been uploaded through CVS yet so it only exists on my hdd), but I have a *very* usable emulation going.

    There are only two significant problems I need to tackle, both of which are easy:
    1. Implement clip and child properties (that's by far the most important)
    2. Fix my src and load() implementation - it kinda works but doesn't at the same time.

    I think pretty soon I can take it to the test - against the often-ugly and just as often poorly coded DynamicDrive scripts .

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by jkd
    I think pretty soon I can take it to the test - against the often-ugly and just as often poorly coded DynamicDrive scripts .
    Sorry to preach here, but I wish you would show a bit more respect. Some of the scripts on that site may be a bit hacked or sloppy, but they work, and that's the bottom line.

    I wonder if you appreciate the day to day realities of maintaining a public web site. It is not practical to take such a high-minded, academic approach, however "correct" that might ultimately be.

    You know, I don't see your name next to any of the scripts on that site

    Sorry to go off topic ... apart from that minor irritation, full kudos to you mate

  • #7
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    Originally posted by jkd
    2. Fix my src and load() implementation - it kinda works but doesn't at the same time.
    well, then, it works just the same way NS4 does.
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #8
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Originally posted by brothercake


    Sorry to preach here, but I wish you would show a bit more respect. Some of the scripts on that site may be a bit hacked or sloppy, but they work, and that's the bottom line.

    I wonder if you appreciate the day to day realities of maintaining a public web site. It is not practical to take such a high-minded, academic approach, however "correct" that might ultimately be.

    You know, I don't see your name next to any of the scripts on that site

    Sorry to go off topic ... apart from that minor irritation, full kudos to you mate
    You made your point. True, they work, and that's what really matters to most people. But whenever I look at the code for one, I see so many ways it could have been written better, performance-wise, variable-wise, etc etc.
    Of course, not all of them are like that, but a good many are, and when people start complaining about script conflicts with DD scripts, I just sigh.

    And as for my name not appearing next to any scripts (), I write code all the time, but I never document it nor explain it well enough for other people to use it. I'm trying to change that - my LayerEmu code is becoming highly commented, and I *need* to write a detailed page describing what properties/methods it emulates 100%, kinda, and not at all.

    But I will try to stop dissing Dynamic Drive so much, as you did make a few good points.


    And joh6nn, excellent point.

  • #9
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by jkd

    I write code all the time, but I never document it nor explain it well enough for other people to use it. I'm trying to change that - my LayerEmu code is becoming highly commented, and I *need* to write a detailed page describing what properties/methods it emulates 100%, kinda, and not at all.

    Yeah man. Good documentation make any script twice as useful, even though it takes a long time. I find it helps with development - writing a README you might find yourself saying something like, "if you do x then y will hapen because such and such a behaviour is not supported .." and then thinking, but hang on, maybe that can be supported Simply writing the documentation helps in development because the process of explaining something to someone else helps you to step away from it, as it were, and see it from a user's perspective.

    Like I said before, you've hit on something that a lot of people will want. I almost hate to mention $ ... but you could definitely make some

  • #10
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Originally posted by brothercake
    Like I said before, you've hit on something that a lot of people will want. I almost hate to mention $ ... but you could definitely make some
    I don't think any money could be made, even if I wanted to try commericalizing it:
    http://www.geckonnection.com/layer/
    and
    http://bclary.com/xbProjects-docs/layer-emulation/

    Are two other projects aiming to do the same thing, with different implementations. As a matter of fact, the owner of the latter project posted to the LayerEmu mailing list offering usage of any of his code. Nice guy...

    Anyway, at the rate this is going, I could have 95%+ emulation done by Sunday .


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •