Feeds:
Posts
Comments

Archive for August, 2009

Most of us use Microsoft AJAX Toolkit and Controls but we don’t know when Ajax Request starts and when it ends. Sometimes we need to do enabling and disabling controls during postback. This can be done using the code below.

var _employee=null;
var _department=null;
var _subdepartment=null;

function pageLoad(sender, args){
// Register start request and end request event handler Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequest);
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequest); }

// fired when ajax request starts
function beginRequest(sender, args){
_ employee = $get('ctl00_ContentPlaceHolder1_ddlemployee);
_ department = $get('ctl00_ContentPlaceHolder1_ddldepartment);
_ subdepartment = $get('ctl00_ContentPlaceHolder1_ddlsubdepartment);
_ employee.disabled=true;
_ department.disabled=true;
_ subdepartment.disabled=true; }

// fired when ajax request ends
function endRequest(sender, args) {
_ employee.disabled=false;
_ department.disabled=false;
_ subdepartment.disabled=false;
}

Here I have added two event handlers to request manager class instance. Event will be fired when request starts or ends. Isn’t it easy? 🙂

Ref : http://mattberseth.com/blog/

Advertisements

Read Full Post »

This post is completely non-technical but useful in many places. I want to share my experience with different companies for online money transfer.  Few days back, I planned to buy some product over internet but the only problem I faced was How to transfer money in foreign country? I look up many websites which provide this facility but amongst all I would recommend every to go with Xoom and MoneyBooker. I transferred money to china using Xoom. Nowadays, there are lots of options available for online money transfer. Options like Western Union, T/T are good but they charge more or need to study.

I found very nice alternate for online money transfer. Xoom.com. If you search “Online Money Transfer” in Google.com. You may find this website ranked first. Believe me Service is excellent. First time I had tried this website to credit money from PayPal to Indian Bank Account. Money was transferred in few days and I got letter from xoom.com about this transaction.  Sound good!

I recently sent money to “Bank Of China”. This means that you can credit requested amount directly to the bank account. One of the nicest things about Xoom is that their executives call to recipient and confirm the details before they proceed.

Another website namely “Moneybooker” provides online money transfer. The feature I like in this website is escrow money. This is the best thing if you purchase product online.

Read Full Post »