Browse by Tags

oh, gosh! SO many ways to require a script…
30-11-2009 20:45
I’d like to apologize for the lack of posts lately…no, I haven’t given up in my Silverlight series, but I’ve been busy updating my existing ASP.NET book to the 4.0 version. It seems like I will have a lot of work (much more than I had anticipated, but the truth is that I really enjoy writing about technical stuff) so the Silverlight series won’t really go as... Read More...
por Luis Abreu | with no comments
Filed under: ,
Some observations on MS AJAX and JQuery integration
24-11-2009 9:16
In my last post , I’ve talked a little bit about the new plugins introduced by the latest release of MS AJAX (beta, at the time of writing). One of the things that didn’t enjoy much was that I had to call the JQuery’s get method in order to get a reference to the DOM element array. What I was forgetting was that MS AJAX has really good integration with JQuery... Read More...
por Luis Abreu | with no comments
Filed under: ,
MS AJAX beta – new plugins
23-11-2009 14:47
The MS AJAX beta release adds some new plugins to the previous ones. Besides the existing setCommand and bind, we now have access to the following plugins: addHander: you can use this plugin to set up a handler for one event fired by one or several DOM elements; removeHandler: as you can probably guess from its name, you can use this to cancel an existing DOM... Read More...
por Luis Abreu | with no comments
Filed under: ,
MS AJAX beta – ACT support
23-11-2009 13:35
In the last week, MS AJAX beta was released during PDC 2009 . One of the things that this released added is ACT script loader support. If you go into the samples, you’ll see that there is an Extended folder which holds all the client files for the behaviors and controls exposed by the AjaxControlToolkit. The code files have all been updated so that its' definitions... Read More...
por Luis Abreu | with no comments
Filed under: ,
No more hacks for the MS AJAX’s binding problem
13-11-2009 9:26
At least, when the RTM version is released! Ok, I guess you need some context: in the previous post , I talked about a problem which was mentioned to me by Andy in the comments of an existing post. The problem was that the __msajaxBindings field ended up being added to an object used in a live binding and that really means trouble when you try to serialize it... Read More...
por Luis Abreu | with no comments
Filed under: ,
MS AJAX: bindings and serialization
11-11-2009 19:30
In my “goodbye MS AJAX post”, reader Andy asked a really interesting question : how to serialize an object which is used in a binding relationship? The main problem is that the JavaScriptSerializer doesn’t support circular references. Unfortunately, it doesn’t also provide a way for you to specify which properties should be serialized. However, the problem is... Read More...
The AdoNetDataContext object: what about saving?
9-11-2009 14:34
Well, this really doesn’t deserve any special attention. Ok, let me put it another way: there’s a lot of work going on behind the scenes, but you shouldn’t have to worry with any of it. I’ve thought about writing a post on the objects that end up being used by the AdoNetDataContext to propagate changes back to the server, but after some thought, I’ve give up... Read More...
por Luis Abreu | with no comments
Filed under: ,
Getting your ADO.NET Data Services uris right: the easy way
9-11-2009 12:13
Here we are again, for more on the MS AJAX library. In the previous post , we’ve seen that we can interact with ADO.NET Data Services by using the AdoNetDataContext instances. Today, we’ll be looking at more advanced features of the ADO.NET Data Services which are also available in the MS AJAX library. Before going on, I must confess that I’m not really an ADO... Read More...
por Luis Abreu | with no comments
Filed under: ,
Getting started with the AdoNetDataContext
9-11-2009 10:54
Today we’re going to start looking at the AdoNetDataContext. This class expands the DataContext object and uses several specific methods for ensuring the correct interaction with an existing ADO.NET Data Service. These internal methods added by the AdoNetDataContext are essentially used in identity related operations. In other words, it extends the base DataContext... Read More...
por Luis Abreu | with no comments
Filed under: ,
The DataContext component: creating entities
8-11-2009 12:53
Before we can move on and take a look at the AdoNetDataContext component, we need to talk about one more topic: creating entities and how it might be integrated with DataContext component. The DataContext exposes a createEntity method which can be used for  creating new objects of a specific type. Internally, that method will always delegate the creation... Read More...
The DataContext component: deferred properties
7-11-2009 21:39
Today we’ll keep looking at the DataContext component and we’ll see how it supports deferred properties. Deferred properties are properties which are lazy loaded as “needed”. Using deferred properties means that the component will try to make a remote call for getting the value of that property. As you’re probably expecting, this means that you’ll have to write... Read More...
por Luis Abreu | with no comments
Filed under: ,
The DataContext component: linking objects
5-11-2009 11:48
Today we’ll keep going in our study of the DataContext component and we’ll see how we can establish relationships between objects through links. I guess you’re probably asking something like: “Hum…establishing relationships between objects…how about using properties?” For instance, suppose we’re working with person and contact instances from the previous post... Read More...
por Luis Abreu | with no comments
Filed under: ,
Regular expressions and JavaScript – part II
5-11-2009 9:27
In the previous post , we’ve seen that we can build regular expression objections through a constructor ( RegExp) or by using a literal (/…/). Today I thought I’d be writing some code for illustrating the use of regular expressions. However, I think I’ll concentrate on MS AJAX and I’ll point you to this site if you want to know more about regular expressions... Read More...
por Luis Abreu | with no comments
Filed under:
Regular expressions and JavaScript
4-11-2009 15:00
After writing my last post on getting style properties from JavaScript, I’ve noticed that I still haven’t written anything about JavaScript and regular expressions…and that’s why I’ll be writing a couple of posts on this topic. Before going on, a disclaimer: I’m not really an expert on regular expressions (do note that people have written books on them! and since... Read More...
por Luis Abreu | with no comments
Filed under:
Getting the CSS display value: there’s more to it than you might think at first
4-11-2009 12:24
Well, I’m spoiled… that’s what happens when you use frameworks like JQuery …Everything is good until that one day…someone says something stupid: “I need you to write some JS code but I don’t want external references on JQuery !”. Yep, I thought exactly the same thing: WTF??? “Now, that we’re clear on external frameworks, can you please write me a function which ... Read More...
por Luis Abreu | with no comments
Filed under:
Mais Entradas Página seguinte »