Login Register

Dojo on server side ASP/.NET

I know Dojo (or some subset thereof) runs on Rhino and Jaxer, but has anyone tried to get it running on "Classic" ASP/JScript or JScript.NET? I couldn't find any references by searching, so I was wondering if anyone here knew anything.

I've already gotten Prototype.js to work (http://nlsmith.com/projects/prototype-asp/), but I'm reading Dojo The Definitive Guide and am really digging it, and will probably be experimenting soon with getting Dojo to run on Classic ASP.

I'm sure some parts of base and core will work out of the box, and the hardest part might be getting DOH running to verify what is and is not working. If any one has any information or experience regarding anything like this I'd appreciate the advice. If anyone has any interest let me know.

And yes, I use ASP at my job because I have to :)

Thanks,

Nathan

The short answer: yes.

...the long answer though is "no". Let me explain.

A good portion of the facilities in Dojo are really aimed at client-side things; even the library loader is more aimed at the client-side (in particular, x-browser XHR) than the server, which makes simply using Dojo, without change, a little problematic. It's possible to do but there's a lot of cruft that would come along for the ride, and the majority of what is considered Dojo Base would be pointless to have.

That being said, a fellow contributor and myself wrote a basic system, based entirely on Dojo, that runs in Classic ASP/JScript. I don't know if we'll get a chance to contribute it or not but it provides the "server-side equivalents" of the kinds of common tasks Dojo handles for the client--albeit in a much more server-side way. This includes module loading (including modules on different domains), email handling, database access (ADO wrappers), x-domain XHR requests, file system handling, and a bit more.

The point being that it's definitely possible.

Still wondering....

I'm also looking for a base to start it with my new projects that is on asp.net. I'm working with asp.net and want to use dojo themes and ajax. But couldn't find any reference-how to do so... I'm new to dojo and trying to learn and use it... I can't move to php and interesting dojo is really good work. Please post some usefull links for asp.net developers....

Your question is different than the original one...

...the first poster was asking about using Dojo on the server to write the server-based code, while it seems your question is more aimed at using Dojo client-side with ASP.NET. The latter is certainly possible, but my question would be this: are you looking to just incorporate Dojo into ASP.NET-based pages, or are you looking for a solution similar to what GWT does (i.e. use server-based code to render Dojo on the client for you)?

If it's the former, you can just use Dojo like any other client-side JS; just include it in your markup for the .aspx file, without using the 'runat="server"' attributes. If you're looking for something like GWT, I have not heard of any projects that are doing that at this point, though you might want to try to spend some quality time with Google to see:

http://www.google.com/search?source=ig&hl=en&rlz=1G1GGLQ_ENUS245&q=gener...

Got...

Thanks ttrenka. I'll try it... but here is a question. I use asp.net events. If i remove runat tag it wont work... anyways as i get some free space i'll try it...
And ttrenka please post some links where i can find dojo UI usage in asp.net apps.