Thursday, May 24, 2007

My New Domains

Some News!!!

Let me tell you, I just got my new domains!!!! From now on, I'm the official owner of:

antoniobaker.com
antoniobaker.net
antoniobaker.org

So I get to protect my name, in Spanish as a like!!!

This is a new step on my online life, which my actual work, workmates and life are promoting very much!!!

Let's wait for the new upcoming acquisitions...

Cheers!
-ArbBot

Tuesday, May 15, 2007

Web 2.0: Back To Basics

I recently found an article talking about web 2.0 'neglecting good design'. The article caught my attention because it talks about the importance of user experience on the web. It says that a recent study shows that 90% of web users don't participate on the web, meaning they just go in for a specific purpose and then go out.

If you measure the quantity of work you put in a decent web site project, you will always want most (if not all of the visitors) to participate in some degree with the site. You wan them to use and explore the site and the tools you worked on so hard. The trick is to make your web projects (and why not, every project you work on) user friendly. For the user is so important to have a good an easy experience, that it will be key for the user to decide to visit your site again.

Remember always to have users involve in the creation and development process of your web site. Remember to make it easy, fun and intuitive for them to navigate and to find "stuff". This will help to make your site a hit.

Here's the reference to the article: http://newsvote.bbc.co.uk/mpapps/pagetools/print/news.bbc.co.uk/1/hi/technology/6653119.stm

Take a minute to breath !!

Monday, May 14, 2007

How to access a .NET assembly method from JavaScript

There are many ways to implement solutions for this kind of situations. There are also different languages to use. In this particular case, I implemented a JavaScript activeX instantiation of a .NET C# assembly. It is required that the assembly has a public COM visible interface, meaning, public methods that can be accessed from not .NET objects. To access assembly functionality you have to instantiate the .NET assembly as an activeX object in the web page. This can be really easy using JavaScript. Let’s take a look at the code:

// Variable to keep your Program Id. Has to be exactly the same than

// the Program Id registered on the windows registry.
var yourProgId = "YourProgramId";

// Variable to instantiate your assembly as an activeX object.

var yourObj = new ActiveXObject(yourProgId);

// Once the assembly is instantiated as an activeX object in the page,
// you can easily access it’s public methods and properties.
try{
if (yourObj.propertyName == false) {
yourObj.methodName(param);
}
}
catch(e){
alert(e.message);
}

Remember, your assembly has to be already registered on the client PC, or you will get an exception when you try to access it’s methods or properties. Using try{} and catch{} blocks is recommended to capture exceptions.I’ll keep adding more information about how to make an assembly COM visible, and how to easily and automatically register it on the client PC.


Happy Coding
-ArbBot