hi im new to yii i need to know how to use ajax with yii . i have an textbox username i want to check wheater username is available or not on change ie without submitting so i wanted to call an ajax function on onchange of a textbox but i dont know wht to do in tht javascript function should we do same thing tht we do in normal php coding ie call an url and in and check an return state if its ready state, please help me.