> * A nice improvement would be that we could attach a css class
> directly to a
> DynLayer, like:
> myLayer.setClass('greenborder')
> That would save a lot of time, and we could keep a library of css classes.
> Again not 100% compatible with NS4, but degrading gracefully.
I was thinking about the above. It is a nice idea, but it might require a
few changes to the core API. The reason why is the box model. If I create a
layer, and add a two pixel border style to it in the API, the right and
bottom borders are not visible anymore in NS6, because it uses the correct
box model after the border is added, the width of the layer is the width +
the border width. The DynAPI doesn't take this into account and clips the
layer to just it's width, thus clips part of the border. this will become a
problem in ie6 as well depending on what doctype you are using.
so what do you do? do you resize the dynlayer (not the layer element) when a
style is applied, ie make it larger to accomodate the styles. or do you
resize the layer element, so it fits into the size specified by the
dynlayer, ie make the layer element smaller.
i'd go for making the layer element smaller.
anyone wanting to write a css class should keep this in mind :-)
cheers,
cam.
> * I still have some problems with mouse events on links in
> widgets with NS4.
> It's a lot better, but not 100% ok yet.
>
> What I like about the API:
> * The control. You can make things predictably, they show where you want,
> and do what they should.
> * The coding style. For the user I mean, it's flexible, and you
> can do what
> you want in you're widgets.
> I like "one line" compact coding, so I prefer:
> this.document.addChild(myLayer= new
> DynLayer(0,0,50,50,'red')).setHTML('hello');
> to:
> myLayer= new DynLayer()
> myLayer.setSize(50,50)
> myLayer.moveTo(0,0)
> myLayer.setBgColor('red')
> myLayer.setHTML('hello')
> this.document.addChild(myLayer)
>
> In DynAPI(javascript) you have a choice.
> * Dynamic loading. Yes, I like loadpanel. I've recently managed to get
> loadpanel to dynamically load and execute my javascript, and this
> has opened
> a lot of possibilities. Great.
> * The people! All of you who take time and interest to share your work for
> meager rewards, it gives hope in these days of ever commercializing of the
> internet.
>
> Cheers,
> Richard Bennett
>
> [EMAIL PROTECTED]
> www.richardinfo.com
> (Everything running on, and ported to DynAPI2.51)
> visit the DynAPI homepage (and FAQ) ::
> http://dynapi.sourceforge.net/dynapi/index.php?menu=1
> Browse (and search) the mailinglist here:
> http://www.mail-archive.com/index.php3?hunt=dynapi
>
>
> ----- Original Message -----
> From: "Michael Pemberton" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, May 03, 2001 6:38 AM
> Subject: Re: [Dynapi-Help] Forms on layers
>
>
> > I did not notice that there was a link to that page in the cods. I
> corrected
> > another reference but am having problems with my host.
> >
> > The code is almost ready for release. The code is NOT able to
> be directly
> > included in the dynapi. there has been to much extension for it to be
> just
> > inserted.
> >
> > If you want, I can email you the most recent version of the afroapi.
> There is
> > NO ns6 support do to java related problems. if you are willing
> to convert
> the
> > code back to being compatible with the dynapi, I'd be willing
> to give you
> a all
> > the assitance you need.
> >
> > I currently believe that there are too many shortcoming in the
> dynapi that
> have
> > not been adressed and am not developing code to be compatible with it.
> >
> > Again, if you want any of the most recent code, please email me
> as the web
> site
> > has not been developed to the point of being useful yet.
> >
> > Barbie wrote:
> >
> > > Firstly, a request to Michael Pemberton. Tried to use the FormWidget
> > > suggested in the Documentation pages on Source Forge
> > >
> (http://dynapi.sourceforge.net/doccenter/index.php?Is%20There%20a%
20Form%20W
> > idget), but nothing works, even your home page fails! In the index file
> > within the zip I changed the setLibraryPath to the correct path ("src/"
not
> > "js/") and it still throws up errors. What else is required to get this
to
> > work?
> >
> > Secondly, I'm trying to access hidden fields within a form, which is
within
> > a label, which is within a scrolling pane. Unfortunately the form object
> > seems to disappear! Any idea where it would be located. I had thought
> > document.forms["myForm"] would work, or trolling through each layer's
> > document.forms to find it, but to no avail. Anyone have any ideas?
> >
> > Barbie
> >
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
> --
> Michael Pemberton
> [EMAIL PROTECTED]
> ICQ: 12107010
>
>
>
>
> _______________________________________________
> 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