the only thing is, netscape on mac and pc are basically identical. there are
a few platform specific differences, but the architecture is the same. the
need for checking platform with netscape is much lower (although i've seen
it being done in events.js, so maybe i should eat my words). on the other
hand the codebase for pc and mac ie are completely different.
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of martin
> ström
> Sent: 31 January 2001 16:19
> To: [EMAIL PROTECTED]
> Subject: RE: [Dynapi-Help] RE: + more questions.
>
>
> this could be done without adding the values manually.
> something like this (haven't tested it though) in the end
> of Browser()
>
> for (var i in this) {
> var b=i.substring(0,2);
> if (b=='ns' || b=='ie')
> eval('this.'+(this.platform=='win32'? 'win' :
> this.platform)+''+i+'='+this[i])
> }
>
> perhaps something like that, just an idea..
>
> /maritn
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Pascal
> > Sent: den 31 januari 2001 16:54
> > To: [EMAIL PROTECTED]
> > Subject: RE: [Dynapi-Help] RE: + more questions.
> >
> >
> > Cameron's idea is actually good.. if we need alot of
> is.platform checks
> > when checking for Mac browsers, then it's alot easier to add 1 single
> > variable to check on, saving multiple bytes across the complete API.
> >
> >
> > Pascal Bestebroer ([EMAIL PROTECTED])
> > Software ontwikkelaar
> > Oberon Informatiesystemen b.v.
> > http://www.oibv.com
> >
> > > -----Oorspronkelijk bericht-----
> > > Van: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]Namens Doug Melvin
> > > Verzonden: woensdag 31 januari 2001 19:29
> > > Aan: [EMAIL PROTECTED]
> > > Onderwerp: Re: [Dynapi-Help] RE: + more questions.
> > >
> > >
> > > You mean, increase the amount of ram it uses?
> > > If I'm not misstaken, we are trying to avoid using as many
> > > variable, object,
> > > and functions as we can crap in..
> > >
> > >
> > > I would like to point out www.zara.com as an exacmple..
> > > They used far too much advanced tech in far to many ways that
> > > COULD have
> > > been done
> > > with basic tech..
> > > (I STILL have yet to see the sight in full operation... maybe
> > > I need a P4..)
> > > ----- Original Message -----
> > > From: "Cameron Hart" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, January 31, 2001 2:44 AM
> > > Subject: RE: [Dynapi-Help] RE: + more questions.
> > >
> > >
> > > > I know, but perhaps it would be good to have an is.macie, is.macie5,
> > > > is.winie, etc. in addition to what is there already. It is
> > > faster to make
> > > > this boolean comparision, and in reality mac and pc
> > > versions of ie are
> > > > nearly as different as ie and netscape.
> > > >
> > > > I think the is.dom test isn't quite right either. is.dom
> > > what? The test
> > > used
> > > > is for optional dom2 functionality. perhaps there should be
> > > tests for
> > > dom1,
> > > > dom2 and dom3. ns6 is the only browser that passes the
> > > current is.dom
> > > test,
> > > > but win ie5.5 and mac ie5 are nearly completely dom1
> > > compliant (not sure
> > > > about dom2).
> > > >
> > > > > -----Original Message-----
> > > > > From: [EMAIL PROTECTED]
> > > > > [mailto:[EMAIL PROTECTED]]On Behalf
> > > Of Pascal
> > > > > Sent: 31 January 2001 10:18
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: RE: [Dynapi-Help] RE: + more questions.
> > > > >
> > > > >
> > > > > that's why there is the is.platform value :)
> > > > >
> > > > > Pascal Bestebroer ([EMAIL PROTECTED])
> > > > > Software ontwikkelaar
> > > > > Oberon Informatiesystemen b.v.
> > > > > http://www.oibv.com
> > > > >
> > > > > > -----Oorspronkelijk bericht-----
> > > > > > Van: [EMAIL PROTECTED]
> > > > > > [mailto:[EMAIL PROTECTED]]Namens
> > > Cameron Hart
> > > > > > Verzonden: woensdag 31 januari 2001 11:07
> > > > > > Aan: [EMAIL PROTECTED]
> > > > > > Onderwerp: RE: [Dynapi-Help] RE: + more questions.
> > > > > >
> > > > > >
> > > > > > in browser.js it is for both mac and pc. probably not a good
> > > > > > idea really as
> > > > > > they are totally different browsers!
> > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: [EMAIL PROTECTED]
> > > > > > > [mailto:[EMAIL PROTECTED]]On
> > > Behalf Of Richard
> > > > > > > Bennett
> > > > > > > Sent: 31 January 2001 00:12
> > > > > > > To: [EMAIL PROTECTED]
> > > > > > > Subject: Re: [Dynapi-Help] RE: + more questions.
> > > > > > >
> > > > > > >
> > > > > > > hi,
> > > > > > > > 1) NS4 window doesn't scroll content no matter what.
> > > > > > > Somebody posted a fix for this a while back, maybe search the
> > > > > > > archives. (+-
> > > > > > > 2 months ago)
> > > > > > >
> > > > > > > >? I fiddled around with removeChild(), removeFromParent(),
> > > > > > > > and document.recreateAll(),
> > > > > > > recreateAll is apparently broken in this release, expect a
> > > > > > fix in SP1.
> > > > > > > But normally you would only want to do this in NS4 (to counter
> > > > > > > the bug) but
> > > > > > > in IE you can also move the layers to their position again
> > > > > > (slideTo or
> > > > > > > moveTo).
> > > > > > > That's better, because DynAPI.document.deleteAllChildren()
> > > > > > > doesn't actually
> > > > > > > free up any ram, so each time you resize the browser
> > > you increase
> > > > > > > the ram in
> > > > > > > use.
> > > > > > >
> > > > > > > >
> > > {DynAPI.document.load('steve_jobs_is_not_the_messiah.htm')} ;
> > > > > > > LOL, and even if he was, MS would release such a buggy browser
> > > > > > > for Mac as to
> > > > > > > make Mac unusable on the internet.
> > > > > > >
> > > > > > > Actually, I have a related question, does if(is.ie)
> > > specify IE on
> > > > > > > PC (as it
> > > > > > > seems to) or IE on all platforms?
> > > > > > >
> > > > > > > Cheers,
> > > > > > > Richard Bennett
> > > > > > >
> > > > > > > [EMAIL PROTECTED]
> > > > > > > www.richardinfo.com
> > > > > > > (Everything running on, and ported to the 19/12/2000
> > > > > > snapshot of DynAPI2)
> > > > > > >
> > > > > > > ----- Original Message -----
> > > > > > > From: "Greg Bumpus" <[EMAIL PROTECTED]>
> > > > > > > To: <[EMAIL PROTECTED]>
> > > > > > > Sent: Tuesday, January 30, 2001 9:43 PM
> > > > > > > Subject: [Dynapi-Help] RE: + more questions.
> > > > > > >
> > > > > > >
> > > > > > > > > Hi,
> > > > > > > > >
> > > > > > > > > I'm newbie.
> > > > > > > > >
> > > > > > > >
> > > > > > > > . . . me too. I am still sifting through the list archives,
> > > > > > > apologies if
> > > > > > > I
> > > > > > > > ask something already documented.
> > > > > > > >
> > > > > > > > First, can I say, this stuff is great. Amazing. Thoroughly
> > > > > > > engaging way to
> > > > > > > > while away the hours. Now to bombard the group
> > > with questions.
> > > > > > > >
> > > > > > > > 1) NS4 window doesn't scroll content no matter what. I
> > > > > > set massive layer
> > > > > > > > heights, I load external files that are miles long,
> > > IE scrolls
> > > > > > > nicely, and
> > > > > > > > NS4 always clips everything at the botom of the browser
> > > > > > window with no
> > > > > > > > scrolling. Is there a way around this?
> > > > > > > >
> > > > > > > > 2) onResize methods: I am using "liquid" layers (remember
> > > > > > dynapi1?) by
> > > > > > > > setting width and height to DynAPI.document.w and .h
> > > > > > respectively. Works
> > > > > > > > great. But I ned a good method to redraw everything
> > > on resize,
> > > > > > > of course.
> > > > > > > > Here's what I use:
> > > > > > > >
> > > > > > > > DynAPI.onResize = function() {
> > > > > > > > DynAPI.document.deleteAllChildren() ;
> > > > > > > > DynAPI.onLoad() ;
> > > > > > > > }
> > > > > > > >
> > > > > > > > This is fine on Windows browsers I've tested, but
> > > (gulp) I need
> > > > > > > to support
> > > > > > > > Macintosh and this function really hosed IE5 on the
> > > Mac G3. I
> > > > > > > repeated the
> > > > > > > > experiment a few times, each time getting "Error type 2"
> > > > > > (thanks for the
> > > > > > > > info, mac engineers), followed shortly by a full system
> > > > > > crash. Yikes. So
> > > > > > > is
> > > > > > > > there a better way? I fiddled around with removeChild(),
> > > > > > > removeFromParent(),
> > > > > > > > and document.recreateAll(), but probably not in the right
> > > > > > > combination. Any
> > > > > > > > tips here appreciated.
> > > > > > > >
> > > > > > > > 3) The last problem led me to investigate the browser
> > > > > > (is.) methods. I
> > > > > > > don't
> > > > > > > > get the right syntax to check for the mac; is.platform
> > > > > > seems to be the
> > > > > > > way,
> > > > > > > > but neither is.mac nor is.platform = "mac" seems to do it:
> > > > > > > > if ((is.platform="mac") && (is.ie))
> > > > > > > >
> > > {DynAPI.document.load('steve_jobs_is_not_the_messiah.htm')} ;
> > > > > > > >
> > > > > > > > weirdly this returns true on my PC. Again apologies
> > > for any basic
> > > > > > > javascript
> > > > > > > > blindness on my part.
> > > > > > > >
> > > > > > > >
> > > > > > > > OK. I develop and browse on a PC but use a Mac at
> > > work, so I'll
> > > > > > > volunteer
> > > > > > > to
> > > > > > > > help test that platform as needed. I seem to remember
> > > > > > that issue came up
> > > > > > > > somewhere.
> > > > > > > >
> > > > > > > > Thanks for suggestions on any front,
> > > > > > > >
> > > > > > > > Greg
> > > > > > > >
> > > > > > > >
> > > > > > > > _________________________________________________________
> > > > > > > > Do You Yahoo!?
> > > > > > > > Get your free @yahoo.com address at http://mail.yahoo.com
> > > > > > > >
> > > > > > > >
> > > > > > > > _______________________________________________
> > > > > > > > Dynapi-Help mailing list
> > > > > > > > [EMAIL PROTECTED]
> > > > > > > > http://lists.sourceforge.net/lists/listinfo/dynapi-help
> > > > > > > > ____________________________________________________________
> > > > > > > > Get your free domain name and domain-based e-mail from
> > > > > > > > Namezero.com. New! Namezero Plus domains now available.
> > > > > > > > Find out more at: http://www.namezero.com
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > Dynapi-Help mailing list
> > > > > > > [EMAIL PROTECTED]
> > > > > > > http://lists.sourceforge.net/lists/listinfo/dynapi-help
> > > > > >
> > > > > >
> > > > > > _______________________________________________
> > > > > > Dynapi-Help mailing list
> > > > > > [EMAIL PROTECTED]
> > > > > > http://lists.sourceforge.net/lists/listinfo/dynapi-help
> > > > > >
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > Dynapi-Help mailing list
> > > > > [EMAIL PROTECTED]
> > > > > http://lists.sourceforge.net/lists/listinfo/dynapi-help
> > > >
> > > >
> > > > _______________________________________________
> > > > Dynapi-Help mailing list
> > > > [EMAIL PROTECTED]
> > > > http://lists.sourceforge.net/lists/listinfo/dynapi-help
> > >
> > >
> > > _______________________________________________
> > > Dynapi-Help mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/dynapi-help
> > >
> >
> >
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help