[Mono-list] Deveel AJAX

Antonello Provenzano antonello at deveel.com
Thu Mar 15 14:58:53 EDT 2007


Fabian,

At the present moment I'm writing the NAnt build script for the main
library that I'm going to upload later.
Anyway, producing an example for the project is a really simple task
and I'm going to describe it here (since I think I don't have any
available in this machine):

1) Create a .NET/Mono class (in one of the supported languages, such
as C#, VB.NET, J#, etc.). The class will be completely replicated by
Deveel AJAX on JavaScript notation, so you could not do described in
passage 2), although I suggest you to do it for tuning performances.
2) Optionally, sign the class with an AjaxTypeAttribute to specify the
desination name of the replication and the namespace, or the methods
with an AjaxMethodAttribute to specify the session-specific settings
for the method.
3) In the web.config file of your web application, add the following
to the <httpHandles> element of <system.web>

        <add path="/isTomi/ajax/*.jsx" verb="*"
type="Deveel.Web.Ajax.AjaxHttpHandlerFactory, Deveel.Ajax"/>

NOTE: extension .jsx is not supported by default by either IIS or
Apache: to make it handled by ASP.NET you should add a mapping as
appropriate (maybe in the future I will write a script to modify the
configuration of the two major HTTP servers).

4) In the page you want to consume the class add the following (I
suggest you to call the code at Load even of the page, although it is
anyway preferable to do it before Render state in the life-cycle):

        AjaxImporter.Import(typeof(TestClass))

where "TestClass" is the name of the class you want to import into the
page as JavaScript proxy.

5) Voilà! From the page you will be able to instantiate the class and
consume methods like the following:

        var tc = new TestClass(25, "test class");
        tc.TestMethod(23);

As said, at the moment this is a conjunction between the back-end
.NET/Mono runtime and the JavaScript enabled front-end: I'm actively
working to make things even easier by writing a set of AjaxControl for
more complex tasks, based on the existing library.

Hope this will help you and all the other willing-users.
Antonello


On 3/15/07, Fabian Luque <fabianluque at gmail.com> wrote:
> Hi Antonello:
>
> I've download the sources from SVN but I didn't find any samples
> project to test the library.
>
> Could you give me some tips?
>
> Thanks,
>
> On 3/15/07, Antonello Provenzano <antonello at deveel.com> wrote:
> > Guys,
> >
> > Some months ago I launched the project Deveel AJAX with the aim of
> > speed the development of .NET/Mono web applications by replicating,
> > through a JavaScript proxies, the OO structure of imported types,
> > based on prototype (http://www.prototypejs.org) AJAX framework.
> > At the present moment the library works fine, although it needs some
> > improvements for security and replication support (for working on
> > web-farms).
> >
> > An Improvement I'm currently working on is the development of custom
> > controls, to implement commonly used dynamic AJAX controls (such as
> > grids, menus, buttons, etc.).
> >
> > You can find the project at the following address (there are no
> > releases at the moment: you should checkout the sources and compile
> > them):
> >
> > http://sourceforge.net/projects/deveel-ajax
> > http://deveel-ajax.svn.sourceforge.net
> >
> > I want to remark this is far from being a rival or a replace nor an
> > open-source version of AJAX.Net from Microsoft: is much simpler and
> > much smaller as project and the only goal is to make the development
> > of AJAX applications easier and faster.
> >
> > I would love to receive some remarks, notes or bug reports about the
> > project to make it working in the best way possible.
> >
> >
> > Thank you for all the support and consideration.
> > Antonello
> > _______________________________________________
> > Mono-list maillist  -  Mono-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> >
>
>
> --
> Fabián Luque
> http://www.forumnet.com.ar/blog
> http://www.equitygroup.com.ar
>


More information about the Mono-list mailing list