Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Ajax Library Question

Reply
Thread Tools

Ajax Library Question

 
 
Scott M.
Guest
Posts: n/a
 
      03-18-2009
Ok, so I see the value in extending the native JavaScript types via the Ajax
Library. And I see the benefit from addins a client side framework
accessible through namespaces as well. This all seems to gvie JavaScript
much more utility than before. Great.

But, as far as the ablility to simulate inheritance and interfaces, the
question that keeps popping up in my mind is: "Why would I want to create
objects and instances in my UI?" Every example I look at shows these
features being used to create a business object, but that goes against good
nTier design.

Can someone shed light on a good use for these OO features?

-Scott


 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      03-18-2009
the ajax toolkit was designed to be a control extender. to allow control
from multiple vendors a namespace was required. creating symmetry with
..net probably seemed like a good idea (when the project was started
there were several oo toolkits). for writing client code, other then
webservice calls and standardized event hooksups there little there.

this is probably why jQuery has become so popular with MS (at least the
mvc and dynamic data teams). its makes use of javascript features and
concentrates on dom modifications (what you typically do in javascript).

if severside controls are spewing your javascript, the ajax kit is
great, if you are writing client script, then look at jQuery.

-- bruce (sqlwork.com)

Scott M. wrote:
> Ok, so I see the value in extending the native JavaScript types via the Ajax
> Library. And I see the benefit from addins a client side framework
> accessible through namespaces as well. This all seems to gvie JavaScript
> much more utility than before. Great.
>
> But, as far as the ablility to simulate inheritance and interfaces, the
> question that keeps popping up in my mind is: "Why would I want to create
> objects and instances in my UI?" Every example I look at shows these
> features being used to create a business object, but that goes against good
> nTier design.
>
> Can someone shed light on a good use for these OO features?
>
> -Scott
>
>

 
Reply With Quote
 
 
 
 
Scott M.
Guest
Posts: n/a
 
      03-18-2009
Hi Bruce,

Are you saying that the OOP facade the the Ajax Library provides was/is
intended primarially for control developers to be able to have their
controls emit code/data to the client and then the client would have OOP
capabilities to deal with that inbound data/code?

If so, that's great, but it does seem to me that, if this is the case, then
most folks misunderstand the proper use for the client libary, as every
example I see shows how to use it to make business objects in the UI, which
isn't good nTier design.

Am I off base with this assesment?

Thanks,

-Scott


"bruce barker" <> wrote in message
news:%...
> the ajax toolkit was designed to be a control extender. to allow control
> from multiple vendors a namespace was required. creating symmetry with
> .net probably seemed like a good idea (when the project was started there
> were several oo toolkits). for writing client code, other then webservice
> calls and standardized event hooksups there little there.
>
> this is probably why jQuery has become so popular with MS (at least the
> mvc and dynamic data teams). its makes use of javascript features and
> concentrates on dom modifications (what you typically do in javascript).
>
> if severside controls are spewing your javascript, the ajax kit is great,
> if you are writing client script, then look at jQuery.
>
> -- bruce (sqlwork.com)
>
> Scott M. wrote:
>> Ok, so I see the value in extending the native JavaScript types via the
>> Ajax Library. And I see the benefit from addins a client side framework
>> accessible through namespaces as well. This all seems to gvie JavaScript
>> much more utility than before. Great.
>>
>> But, as far as the ablility to simulate inheritance and interfaces, the
>> question that keeps popping up in my mind is: "Why would I want to create
>> objects and instances in my UI?" Every example I look at shows these
>> features being used to create a business object, but that goes against
>> good nTier design.
>>
>> Can someone shed light on a good use for these OO features?
>>
>> -Scott



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
An Ajax Dictionary... My first AJAX project... GreatDomainz@gmail.com HTML 20 03-31-2008 01:24 PM
ASP.NET and AJAX: JavaScript files from the Microsoft AJAX Library Nathan Sokalski ASP .Net 2 06-02-2007 12:07 AM
AJAX IDE and AJAX TOOL--The Release of JoyiStar AJAX WebShop 3 Beta minnie Java 1 12-13-2006 06:29 AM
Ajax installed.. where are Ajax controls like popup in my VS toolbox ?? jobs ASP .Net 0 11-06-2006 01:23 AM
beginner AJAX questions (AJAX.net) darrel ASP .Net 5 04-28-2006 06:42 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57