Hi, My company requires to send the form using ajax. For that I am trying to use a jsonRequest like this: var oObj = { 'tfa_EmailAddress': "josefina+913@test.com", 'tfa_SFGA': "backbase", 'tfa_dbControl': "2438ffd757c569ed4102c9ae7a3ca2af", 'tfa_dbFormId': "136566", 'tfa_dbResponseId' : "", 'tfa_dbVersionId': "3", 'tfa_referrer': "http://app.formassembly.com/forms/edit/publish/136566", 'tfa_submitAction': "register" };
Hi, I was using Backbase library but the implementation of JSONRequest is not cross domain. So now I am using jQuery and it doesnt give me any error but the data is not saved. Here is the code:
Ah, now I see. This is a choice on the part of JQuery to prevent you from getting hit by a xss issue. Please see: http://stackoverflow.com/questions/1099787/jquery-ajax-post-sending-options-as-request-method-in-firefox
I believe either of this option should work: http://stackoverflow.com/questions/1099787/jquery-ajax-post-sending-options-as-request-method-in-firefox/1109334#1109334
If not, let me know, I think I've got working code for this somewhere.
Hi, thanks for your reply.I think I won't use client side for cross domain calls then. But do you have any example posting a form to FormAssembly using a Server Side language such as PHP?