I am trying to create a facebook application, all is working fine except the ajax part that I am using to populate a second box from the item selected in first select box.>
Using FBML you can use FBJS to send JSON data type to your own script:
Here is the documentation: http://wiki.developers.facebook.com/index.php/FBJS/Examples/Ajax