Here's the client-side code: $(document).ready(function() {
$('#newsletter_preview_button').click(function() { var emailNewsletterGreeting = $('#email_newsletter_greeting').val(); var specialIDList = []; $('.special_title_checkbox:checked').each(function() { var specialID = $(this).attr('id').split('_').pop(); specialIDList = specialID.join(', '); }); console.log(specialIDList); values = { emailNewsletterGreeting: emailNewsletterGreeting, specialIDList: specialIDList } $.ajax ({ cache: false, type: 'post', 'email-newsletter.cfc?method=mProcessEmailNewsletterForm&returnFormat=json', data: values, success: function(response) { alert('Success!'); } }); }); }); On Thu, Jan 16, 2014 at 11:02 AM, Raymond Camden <raymondcam...@gmail.com>wrote: > > On Thu, Jan 16, 2014 at 9:54 AM, Rick Faircloth <r...@whitestonemedia.com > >wrote: > > > > > Hmmm... > > > > I tried using the specialIDList.push(specialID) approach, and I get the > > correct > > output in console.log, [ "27", "28", "26" ], but I also get the error in > > Firebug, > > "500 Element SPECIALIDLIST is undefined in ARGUMENTS. > > > > > > > > > I also tried using specialIDList = specialID.join(', ') and I still get > the > > same > > output in console.log, [ "27", "28", "26" ], but I also get the same > error > > in Firebug, > > "500 Element SPECIALIDLIST is undefined in ARGUMENTS. > > > > Ok, so you passed specialidlist, right? Can you show us your latest code? > > > > > > So, the cfc method doesn't understand speciaIDList when it's sent in the > > form > > above, even when I specify the argument as "array" type. > > > > Remember, we are sending the data over the wire as a string. So your > argument should be string. > > But for now, let's see your client side code again please. > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:357446 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm