Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# Efie 7/17/2007 10:21 PM (edited 7/17/2007 10:23 PM)
Today I launched my own site, to show the progress in the Cuyahoga.Web.Extensions project.

I've added a slideshow to the gallery-module which works nicely together with the Asp.Net Ajax Framework and it also uses some beautiful Scriptaculous effects.

I'm thinking about integrating the Scriptaculous-library into the Extensions project, so you can create effects to your page, without writing JavaScript, just by writing some C#/VB.Net code. I've done some experiments with it today and they were pretty succesfull.

The site can be found on: http://erwinberends.com

The design isn't really great, but that isn't really the purpose of the site :). When I have some more spare-time, I will spent some effort in designing the site.
# markfind 7/18/2007 11:03 AM
Great work.

Have you tested your extensions with controls that come with Asp.net Ajax Control Kit ?

Marco
# Efie 7/18/2007 12:43 PM
I've tested it with the Collapsible Panel Extender, that worked, but that control does'nt do anything with postbacks, so it is more like an effect than it has something to do with Ajax.

I was struggling with the control and I really didn't like it (to hard to add a really simple effect), so I decided to use the Scriptaculous library and wrap it in C# and add it to the Extensions.

I will test some of the controls, particularly the ones that are using postbacks and real Ajax functionality from the Asp.Net Ajax framework (I've done some cool things with the modal-popup for example). I will add some more samples to the site to inform everyone who is interested in the progress on the extensions-project.

# tigermain 7/20/2007 2:44 PM
Efie,

Your Cuyahoga.Web.Extensions projects sounds really interesting, any chance I can get involved? We are currently using Cuya. for our company CMS, we have developed it quite a long way from base version 1.5 and I am just about to start implementing ajax features but would rather contribute to something which already uses popular libraries.

PM us drop us a mail

# dagda1 7/21/2007 12:34 AM
Hi,

I would like to add that on a recent project we completed was split into back end tools and a front end website. The backend tools used the ASP.NET AJAX toolkit and I really was not impressed. It should be renamed the write more javascript library. The xml script is interesting but the javascript involved in creating your own tags and hooking it together is immense. The .axd file is massive and bugs are hard to track down. Also the toolkit with the collapsable panels etc. was totally unsatisfactory.

Update panels while nice in principle are the work of satan in practice and there are many problems with them concerning url rewriting.

For the main site we used JQuery for our Ajax effects. It is just incredible what you can achieve with a few lines of javascript also the jquer.js file compresses down to about 20k.

I would avoid the ASP.NET ajax library and go for either JQuery or Prototype and scriptaculous.

The ASP.NET Ajax toolkit is over engineered and buggy in my estimation. Why do you need namespaces in javascript?

Paul

# Efie 7/22/2007 2:21 PM
dagda1Update panels while nice in principle are the work of satan in practice and there are many problems with them concerning url rewriting.

Concerning the update panels and the url-rewriting, this issue can easily solved by adding a control-adapter. When this issue is solved, they are working great.

Concerning Cuyahoga, I think to keep the barriers low for module-development we should really support the Asp.net Ajax Framework, for the single reason that the programming model is the same as for old-fashionded Asp.net development.

I agree with you on avoiding the Ajax Toolkit (with the Collapsible Panel Extender etc.), instead we should use JQuery or Scriptaculous/Prototype.

Currently in the extensions project I can achieve the functionality of the Collapsible Panel Extender by writing only 3 lines of code:

e.g.
IToggleable blindeffect = new BlindEffect(hplToggleTrigger, ClientSideEvent.OnClick, pnlToToggle, null);
IEffect toggleEffect = new Toggle(blindeffect);
this.AddEffect(toggleEffect);







# mgaerber 7/22/2007 5:30 PM
Hi,

I've done some evaluation of js libraries, too. Bottom line: you can't get around writing lots of website/application specific js anyway, so best use a very simple and very small library that helps you to faster get to your result.

Asp.net Ajax is great, Scriptaculous as well, but they're changing a lot of standard js behaviour, so I'd opt for something like jquery as well.

For Cuyahoga I agree with Erwin that Asp.net Ajax is the de facto standard and should be supported. But I think providing an alternative - think of Mono developers - is mandatory as well.

Concerning the Admin pages, there shouldn't be an issue because they won't be extended that much - the Modules however need something they can easily hook up to.

Just my 2 cents...



# Efie 7/22/2007 10:09 PM
I totally agree with Max that you can't avoid writing application specific js, but what I wanted to achieve with writing the effects from C#, is adding some simple (cool) effects to your page with a few lines of code without writing js (just because it isn't my favorite programming language at all, I don't hate it as much as I used to, because Firebug really rocks bigtime :) ).

What do you mean by that Asp.Net Ajax and Scriptaculous are changing a lot of standard js behavior and why would you choose jquery instead? (I'm not experienced at all with jquery)







# mgaerber 7/23/2007 4:25 PM (edited 7/23/2007 4:27 PM)
EfieWhat do you mean by that Asp.Net Ajax and Scriptaculous are changing a lot of standard js behavior and why would you choose jquery instead? (I'm not experienced at all with jquery)

Well in essence, jquery offers one object "jQuery" (also usable via the omni-present $ sign) that offers helper methods and each method gives back the jQuery object so you can chain the calls and jquery has xpath and css selectors implemented for dom manipulation which is quite cool:
$("a").addClass("test").show().html("foo");

Scriptaculous uses prototype which heavily extends the Javascript object model, as Asp Ajax does as well (adding namespaces and stuff), so it's more like learning another variant of Javascript than using a simple library, but as always - it's a matter of taste...

PS: checkout jquery.com