我想在 yii 框架上将 Marketo 表单与我现有的网站集成.我的代码适用于除 Firefox 之外的所有浏览器.
I want to integrate Marketo form with my existing website on yii framework. My code works on all the browsers except Firefox.
摘自我的代码:
$('#button').click(function () {
var formData = {
'Email': $('#UserInfo_email').val(),
'FirstName': $('#UserInfo_first_name').val(),
'LastName': $('#UserInfo_last_name').val(),
};
MktoForms2.loadForm('//app-ab23.marketo.com', mcId, formId, function (form) {
var myForm = MktoForms2.allForms()[0];
myForm.addHiddenFields(formData);
myForm.onSuccess(function (values, followUpUrl) {
return false;
});
myForm.submit();
});
});
我在 Firefox 上只收到错误消息
I get error on Firefox only with message