How to send parameters with jquery $.get()
Try this:
$.ajax({ type: 'get', url: 'manageproducts.do', data: 'option=1', success: function(data) { availableProductNames = data.split(","); alert(availableProductNames); }});
Also You have a few errors in your sample code, not sure if that was causing the error or it was just a typo upon entering the question.