hi frnds

i am developing widget application.but how to use ajax i dont know.i want to show some value from database to drop down.
but how to use show second screen is major problem


please help me to solve this problem if you can give some code example

thanks in advance