AJAX client files should be separated into smaller units

Published Thu, Feb 22 2007 15:07

Yep, that's what i expected to happen but it didn't...I think that the main ajax client file (MicrosoftAjax.js) should be separated into several files. even though saying that having only a single file might give you a quicker download time (which might be true if you want to get everything), i don't buy it. for instance, in my current project , i'd really really love to use OO introduced by AJAX extensions client library. But that's all I want for this project. I don't really need components or the network stack. Unfortunately, everything is packed on the same file. If I want to use the "AJAX Extensions OO approach", I do need to download everything.

Oh well, I'll just have to keep using the traditional javascript OO code (which really isn't much fun)...

Filed under:

Comments

# Bruno 'Shine' Figueiredo said on Friday, February 23, 2007 5:23 AM

why not use other js library, like prototype, mootools or scriptaculus? all of them support OO development. As I call, none have support for namespaces, but this is a simple function to implement. Mootools is the most flexible, allowing you to choose the packages it contains.

# Luis Abreu said on Friday, February 23, 2007 8:24 AM

Yes, i could do that too. but why must i use yet another framework when AJAX extensions already has what i need?

# Bertrand Le Roy said on Friday, February 23, 2007 3:31 PM

Why don't you just use a scriptpath and customize the file to remove everything you don't need?

We're also thinking about that problem for future releases.

# Luis Abreu said on Friday, February 23, 2007 4:01 PM

Hello Bertrand.

yes, i thought about that but i really have some trouble with understanding everything those licenses say...since you've mentioned it, i'm assuming that's ok to do just that and copy/paste only the OO part that i need for this current project. thanks for the tip.

# Manuel Abadia said on Saturday, February 24, 2007 1:46 AM

Why don't you use Nikhil's Script# to generate your code? It will let you develop in c# and it's type system is compatible to the Microsoft AJAX one.

# Luis Abreu said on Saturday, February 24, 2007 5:47 AM

Hello Manuel.

To be  honest, i don't know Nikhil's script# framework. the problem is not with AJAX OO. it's that by default, if i want to use it, i get to include lots of things which i don't need...

Leave a Comment

(required) 
(required) 
(optional)
(required)