Hi,
I am actually quite surprised about everyone complaining about a lack of
docs.
If you first read Dan's Dynduo tutorial here:
http://www.dansteinman.com/dynduo/

and then visit the docs center here:
http://dynapi.sourceforge.net/doccenter/index.php?DynAPITutorials

+ the help center and other sections.

I would have thought that was pretty good.
I gave the widget tutorial a quick look over, and yes, there are one or two
errors. For people using Dynapi these are rather mundane, ../js instead of
../src and things like that. I guess it might be confusing to new users
though.

For those who want it, I attached the working version of the widget to this
email and corrected the errors in the tutorial. (just the widget section)

I changed this:
  this.superClass=DynLayer
  this.superClass(id,x,y,w,h)

to this:
  this.dynlayer=DynLayer
  this.dynlayer(id,x,y,w,h)

Either way will work, it's just a variable, but the second is more in line
with current widgets.
Also,
 button.listener.onprecreate=function(e) {

would also work like this:
 button.listener.oncreate=function(e) {

but the first one is preferred, as it should offer better performance.

If errors are found, or things are not working, you can correct the docs
yourself (click edit page at the bottom) or post the corrections here if you
are not sure.

Cheers,
Richard.
www.richardinfo.com


BTW, there are quite a few people correcting, and adding documentation, nice
to see!
http://dynapi.sourceforge.net/doccenter/index.php?RecentChanges


----- Original Message -----
From: "Hansen Jakob Veje" <[EMAIL PROTECTED]>
To: "Dynapi (E-mail)" <[EMAIL PROTECTED]>
Sent: Monday, October 22, 2001 11:31 AM
Subject: RE: [Dynapi-Help] Re: Dynapi-Help digest, Vol 1 #698 - 7 msgs


> Hi
>
> Although I agree that you should have working knowledge of javascript and
> browsers in general - ie. already be a web developer, to use the API, I
> don't see that as an excuse for invalid documentation that confuses more
> than it helps. I too had a lot of trouble figuring out how to write a
> widget. The documentation didn't work or was inaccurate, so I ended up
> looking at sources of existing widgets instead.
>
> I'd gladly give the widget source-code (although undocumented) to anyone
> interested. It's a clickable vertical listmenu that probably works with N
> nested submenus. I've only tested it thouroughly with 2 levels for now.
>
> I'm not flaming here, only agreeing that the documentation has a lot to
wish
> for. I think the DynAPI is a tremendous help in creating crossbrowser
DHTML,
> and wouldn't live without it. I really appreciate the work that has been
> done by the contributors, and do realize that it's unpayed pioneer work.
>
> Kind regards,
> > ---
> > Jakob Veje Hansen - mailto:[EMAIL PROTECTED]
> > WM-data eSolutions
> > Tel: +45 8744 4619 - Mobil: +45 2169 0361
> > http://www.wmdata.dk
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dynapi-help
>
Title: DynAPI2 tutor - button widget

Reply via email to