I don't quite know how you're using that endpoint with AJAX. If you click on that URL in firebug, you'll see you're not actually getting a response at all.
Also, try your form in Chrome. I get this in the console: XMLHttpRequest cannot load https://test.authorize.net/gateway/transact.dll. Origin http://<my test server> is not allowed by Access-Control-Allow-Origin. Where in the authorize.net docs does it talk about using this endpoint in this way? On 9/23/12 5:54 AM, Rick Faircloth wrote: > $(document).ready(function() { > > $('#donation_form_submit').click(function() { > > var x_login = '25F2wqnuFs'; > var x_tran_key = '3B58p37d9PJxUUR9'; > var x_relay_response = 'false'; > var x_type = 'AUTH_CAPTURE'; > var x_method = 'CC'; > var x_description = 'Donation'; > > var x_card_num = $('#x_card_num').val(); > var x_card_num = > x_card_num.replace(/\D/g,''); > > var x_exp_date = > $('#p_cc_exp_month').val()+$('#p_cc_exp_year').val(); > > var x_amount = > $('input[name=x_amount]:checked').val(); > var x_first_name = $('#x_first_name').val(); > var x_last_name = $('#x_last_name').val(); > var x_address = $('#x_address').val(); > var x_city = $('#x_city').val(); > var x_state = $('#x_state').val(); > var x_zip = $('#x_zip').val(); > var x_email = $('#x_email').val(); > > values = { x_login: x_login, > x_tran_key: x_tran_key, > x_relay_response: x_relay_response, > x_type: x_type, > x_method: x_method, > x_description: x_description, > x_card_num: x_card_num, > x_exp_date: x_exp_date, > x_amount: x_amount, > x_first_name: x_first_name, > x_last_name: x_last_name, > x_address: x_address, > x_city: x_city, > x_state: x_state, > x_zip: x_zip, > x_email: x_email > } > > $.ajax ({ cache: false, > type: 'post', > url: > 'https://test.authorize.net/gateway/transact.dll', > dataType: 'json', > data: values, > > beforeSend: function() { > > > $('#processing_image').fadeIn(250); > > $('#processing_text').fadeIn(250); > > }, > > success: function(data) { > > (this alert never works...) ---------------------> alert('inside > success callback'); > > var parsedData = > data.split('|'); > > (nothing appears in the console log -------------> console.log('Data > Response:', data, 'Parsed Response:', parsedData); > > if ( > parsedData[0] == 1 ) > (this alert doesn't show) -----------------------> { > alert('SUCCESS\nCode: ' + parsedData[0]) } > > (this alert doesn't show) -----------------------> else { > alert('FAILURE\nCode: ' + parsedData[0] + '\nReason: ' + parsedData[3]) } > > > (this is the success code I've been trying ------> //if ( > response != '' ) > // { > $('#processing_image').hide(); > // > $('#processing_text').hide(); > // > $('#processing_success').fadeIn(250); > // > $('#response_code').empty().append(response); } > > //else { > $('#response_code').empty().append(response); } > > > > } // success function > }); // $.ajax > > }); // click function > > }); // document ready function > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352732 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

