Sounds good Raymond. I like the idea of size saving.

I've not done any dynapi in a while.

Any ASP.NET? tutorials to help us unix peeps.

Kevin


Raymond Irving wrote:

Hello Everyone,

It's been a while since I've worked on the DynAPI core
or widgets mainly because of other personal endeavors.
But I since recently started looking back at the core
and what I've found out that DynAPI keeps getting
bigger and bigger with the addition of ns4 fixes, and
other stuff.

Some time ago I wanted to add some dynamic to a web
app I was working on when I realized that DynAPI took
up over 40k just to get me to move a simple layer!
That was not good for the little web app.

After searching and looking for an alternative library
but I gave up and decided that it was time to create
something new. Something that was as powerful as
DynAPI and yet very small, fast and easy to use and
supports modern browsers. NS4 support will limitted.

The Web Application Framework
=================================
It's pretty much a combination of DynAPI and the easy
and flexibility of ASP.Net. I've liked the way how
ASP.Net event driven architure worked so I tried to
make it as simple as I could.

For example:

To simply display a message when the page load all you
have to do is:

<script src="../core/webelm.js"></script>
<script>
        document.setIncludePath("../core/");
        
        function document_onload(){
                alert("Hi There, I'm fully loaded!");
        }
</script>

Notice that the document object now becomes the core
object in this framework. The idea is that this
framework with try to make use of or simulate as much
DOM+DynAPI functionality as best as possible. E.g. the
getElementById() function will be available in ns4,
ie4+, ns6, etc.

The beauty about this framework is that it's closely
tied to inline elements.


Example: A blink a inline div element

<script src="../core/webapi.js" type="text/javascript"
language="javascript"></script>
<script>
        
        document.setIncludePath("../core/");

        var dx;

        function document_onload(){
                dx = new WebElement("dx");
                setInterval("blink()",400)
        }

        function blink(){               
                dx.setBgColor("yellow");
                dx.setVisible(!dx.getVisible());        
        }
</script>
....
<div id="dx"
style="position:absolute;visibility:hidden">Web
Application Framework</div>

The framework is still work in progress. It's not yet
as powerful as DynAPI but it can certainly be used to
add some dyamic effects to a website. The entire
framework loads in under 20k (uncompressed).

Would surely like to hear your views comment, etc.


Best regards,

__
Raymond Irving






------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Dynapi-Dev mailing list Dynapi-Dev@lists.sourceforge.net http://www.mail-archive.com/dynapi-dev@lists.sourceforge.net/



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Dynapi-Dev mailing list
Dynapi-Dev@lists.sourceforge.net
http://www.mail-archive.com/dynapi-dev@lists.sourceforge.net/

Reply via email to