LA.NET [EN]

2009Archive

Oct 28

Until now, we’ve been using static data to feed all the DataView controls we’ve been using in the MS AJAX series. Today we’ll see how we can configure the control so that it automatically gets data returned from a web service call. To get things started, we’ll start by introducing the server side code for […]

Read the rest of this entry »

Oct 27

In these last posts, we’ve already met several of the events generated by the DataView control. I thought it would be a good idea to write a small post which documents many of the events we’ve seen in the past: command: fired when a user clicks over an element which has been “marked” with the […]

Read the rest of this entry »

Oct 26

I’m sorry, but I couldn’t resist sharing this with you guys (especially if you’re a soccer fan ; ) ,,). btw, he’s my nephew…and yes, I’m proud 🙂

Read the rest of this entry »

Oct 26

In one of the previous posts of the series, we’ve seen how easy it is to build a master-detail scenario with the help of the new DataView control. Today, we’ll keep looking at it and we’ll see how we can build an editable grid. The next two images explain the objective of our post. The […]

Read the rest of this entry »

Oct 26

One of the cool features MS AJAX preview 6 introduces is better JQuery integration. From now on, MS AJAX components (which have been defined through a script info object registered through a defineScript(s) method call) are exposed as jQuery plugins. This means that you can write something like this: <head runat="server"> <style type="text/css"> .sys-template{ display:none; […]

Read the rest of this entry »

Oct 25

Super Loeb

Posted in Uncategorized       Comments Off on Super Loeb

Does it again! Fantastic come back from the best rally driver of all times…just watch this if you have any doubts…

Read the rest of this entry »

Oct 23

Master-detail made easy with the DataView control

Posted in Javascript, MS AJAX       Comments Off on Master-detail made easy with the DataView control

We can reuse our knowledge of the previous post to create a master-detail scenario. The idea is simple: we configure our master DataView to show all the elements and then we add a second DataView control that will only show the details of the current selected item on the master DataView. I will spare you […]

Read the rest of this entry »

Oct 23

Updates on preview posts

Posted in Javascript, MS AJAX       Comments Off on Updates on preview posts

2011-01-12 14:45:16

Read the rest of this entry »

Oct 23

The DataView control and the select command

Posted in Javascript, MS AJAX       Comments Off on The DataView control and the select command

In the previous posts, we’ve met commands and saw how to use them from within a DataView control.What I didn’t mention at the time was that the DataView control understand commands named select. In other words, the DataView understands that type of commands and reacts to them by setting the current selected item. Currently, the […]

Read the rest of this entry »

Oct 22

The Sys.create object helper

Posted in Javascript, MS AJAX       Comments Off on The Sys.create object helper

This is becoming quite a long series, but what can I do? There’s simply lots of things to talk about in the new MS AJAX preview 6. As you probably recall (if you’ve been following along since I’ve started writing compulsorily about MS AJAX), we started with code written against preview 5 and then moved […]

Read the rest of this entry »

Oct 22

Now that you already know what a command is and how to use them in a declarative scenario, it’s time to keep going and see how we can use them from an imperative only approach. You already know how to “define” templates from JavaScript, so I guess we can concentrate on seeing which JavaScript code […]

Read the rest of this entry »

Oct 22

Taking advantage of commands

Posted in Javascript, MS AJAX       Comments Off on Taking advantage of commands

The DataView control supports the concept of a command. In practice, you can think of a command as a “fancy event” which is generated by MS AJAX controls in response to a DOM click event. Commands have an advantage over traditional DOM event handling: for instance, you can easily pass additional information that will be […]

Read the rest of this entry »

Oct 21

I’ve just received an email which reference this interview. It really makes you think…

Read the rest of this entry »

Oct 21

The Sys.bind plug-in

Posted in Javascript, MS AJAX       Comments Off on The Sys.bind plug-in

We’ve already introduced the concept of MS AJAX plug-in in the previous post. In this post, we’ll explore the Sys.bind plug-in that, as you’ve probably recall, is mapped into the Sys.Binding.bind method. As you’ve probably deduced from its name, you can use this plug-in to establish a binding relationship between two objects. Currently, this plug-in […]

Read the rest of this entry »

Oct 21

The latest release of MS AJAX introduces the concept of plug-ins (which, btw, is different from what you have in other JS frameworks – ex. JQuery). Plug-ins can be seen as simple methods which get added to the “global” Sys object (ie, defining a plug-in results in creating a shortcut in the Sys object). Besides […]

Read the rest of this entry »

Oct 21

A few days ago, I’ve mentioned that bing isn’t working property. Interestingly, I’ve just noticed that if you run a search for ‘search’ in Google Portugal, you’ll get a reference for bing. Isn’t that ironic?

Read the rest of this entry »

Oct 20

Script font format option in Visual Studio 2010

Posted in VS 2010       Comments Off on Script font format option in Visual Studio 2010

It seems like I’ll be answering one of my own questions regarding VS: how to change the color of strings in JavaScript?

Read the rest of this entry »

Oct 19

VS 2010 beta 2 is out

Posted in VS 2010       Comments Off on VS 2010 beta 2 is out

And I’m already installing it…get it now!

Read the rest of this entry »

Oct 19

In this post, we’ll start applying all the things we’ve met in previous posts and, at the same time, we’ll be making reader William Apken really happy :,,) William commented a previous post right before preview 6 was released. He was interested in seeing how he could switch templates dynamically. At the time, there wasn’t […]

Read the rest of this entry »

Oct 19

More MS AJAX system attributes…

Posted in Javascript, MS AJAX       Comments Off on More MS AJAX system attributes…

We’ve already met several system attributes in previous posts. As you probably recall, I’ve been using that name for all attributes which are associated with the sys alias (don’t forget that the sys alias use is hardcoded!). In this post, we’ll take a look at some of the special system attributes you can use in […]

Read the rest of this entry »

Oct 19

Using nested tempates

Posted in Javascript, MS AJAX       Comments Off on Using nested tempates

The last post might have left you thinking that templates still need some working. After all, using sys:beforecode and sys:aftercode doesn’t really look well, right? Yes, I agree: it’s a little bit ugly. In fact, lets recover the (offending?) code we’ve used here in that sample: <p sys:codebefore=”for(var pos in contacts){” sys:codeafter=”}”> {{contacts[pos]}} </p> Now, […]

Read the rest of this entry »

Oct 19

We’ve already seen that templates let us use pseudo-columns for accessing specific context information. In this post, we’ll be talking about a related subject: including code in a template through the use of sys: attributes. Currently, you’ve got the following options: sys:codebefore: executes the specified JavaScript expression before rendering each element; sys:codeafter: executes the specified […]

Read the rest of this entry »

Oct 19

Declarative vs imperative approach: which to choose?

Posted in Javascript, MS AJAX       Comments Off on Declarative vs imperative approach: which to choose?

Now that we’ve seen how to use two approaches (declarative vs imperative) for defining templates, you might be asking yourself which one you should pick. As always, I’d say that there is no definitive answer here. Having the option for both is great and means that templates can get used by everyone. Having said this, […]

Read the rest of this entry »

Oct 19

The new script loader object – part VI

Posted in Javascript, MS AJAX       Comments Off on The new script loader object – part VI

As we’ve seen in previous posts, the new preview 6 introduced a new Sys.loader object. This is a fantastic object which I guess most of us will end up depending on for getting the necessary JavaScript files required by a page. Even though it’s great to let it download the files on demand, the truth […]

Read the rest of this entry »

Oct 19

In the previous posts, we’ve migrated our code from a pure declarative approach to an imperative approach. Today we’ll improve our last example and we’ll see how we can perform some interesting operations by using the Sys.UI.TemplateContext object obtained by instantiating a template (ie, obtained when you call instantiateIn over a Sys.UI.Template instance). Lets assume […]

Read the rest of this entry »

Oct 18

[Update: with preview 6, Sys.loader.debug is replaced by the Sys.debug property] We’ve already met several features introduced by this awesome new object. However, in the comments of one of the previous posts, William Apken asked about the CDN path for preview 6. That reminded me that I still haven’t presented all the features associated with […]

Read the rest of this entry »

Oct 17

On the BLOCKED SCRIPTSys entry…

Posted in Javascript, MS AJAX, Trivia       Comments Off on On the BLOCKED SCRIPTSys entry…

Unfortunately, it seems like CS is escaping my JavaScript code. Whenever you see BLOCKED SCRIPTSys, it should be javascript :Sys (without any space). Sorry for that, but I believe there’s nothing I can do about it now…

Read the rest of this entry »

Oct 17

The DataView control: going imperative, take II

Posted in Uncategorized       Comments Off on The DataView control: going imperative, take II

A few posts back, we started talking about how we can use the DataView control in an imperative way. At the time, we were still working with preview 5. Now that preview 6 is out, we’ll keep discussing this topic, but we’ll be upgrading our code from preview5 to preview6. As you probably recall, we’ve […]

Read the rest of this entry »

Oct 17

In this post, we’ll be talking about the new Sys.get helper introduced by preview 6 of MS AJAX. Currently, the method can be used for getting a reference to a DOM element or a MS AJAX component and it exposes the following signature: function get(selector, context) The method expects two parameters (the second is optional): […]

Read the rest of this entry »