简体   繁体   English

Eloqua来自Ajax提交

[英]Eloqua From Submit Via Ajax

I have an Eloqua from with one simple e-mail field on it but I would like to send the data via Ajax to prevent the page from refreshing. 我有一个Eloqua,上面有一个简单的电子邮件字段,但我想通过Ajax发送数据,以防止页面刷新。 I've been looking around on the internet but didn't find anything that's working so far.. 我一直在互联网上四处寻找,但到目前为止找不到任何有效的东西..

Anyone has experience with this? 有人有这方面的经验吗?

Thanks. 谢谢。

Ajax probably won't work because of domain restrictions. 由于域限制,Ajax可能无法工作。

You could have a look at blind form links, though: http://img.en25.com/Web/McAfee/blind-form-link-generator-v2.html 你可以看看盲式链接,但是: http//img.en25.com/Web/McAfee/blind-form-link-generator-v2.html

This page generates a link for you, parameters are basically the form field names as set on the form. 此页面为您生成链接,参数基本上是表单上设置的表单字段名称。

This is a simple http request, which will post your data to the form specified. 这是一个简单的http请求,它会将您的数据发布到指定的表单。 You can use it as an iframe src, or even an img src. 您可以将它用作iframe src,甚至是img src。 Data will be submitted, page won't reload. 数据将被提交,页面将不会重新加载。

Edit regarding Seb's complaints: The link was provided as a helper. 关于Seb的投诉的编辑:该链接是作为帮助者提供的。 Please note that the generator creates a link which uses &e= for the email address field value. 请注意,生成器会创建一个使用&e =作为电子邮件地址字段值的链接。 I have senn this fail many times, so please use the original form field name set on the eloqua form. 我已经多次失败了,所以请使用eloqua表单上设置的原始表单字段名称。

If you are using Eloqua Landing pages or external pages, they will most likely be hosted on a subdomain (Eloqua) or the main domain (external page) of your organization, while all form submits go to a subdomain of eloqua.com. 如果您使用的是Eloqua Landing页面或外部页面,它们很可能会托管在您组织的子域(Eloqua)或主域(外部页面)上,而所有表单提交都会转到eloqua.com的子域。 This means ajax will be blocked. 这意味着将阻止ajax。 Hence the workaround using the "blind form link" in an iframe, for example. 因此,例如,在iframe中使用“盲式链接”的解决方法。

This link is always the same structure. 此链接始终是相同的结构。 Example: http://now.eloqua.com/e/f2.aspx?elqFormName=elq-form-name&elqSiteID=123456&emailAddress= EmailAddress&firstName=value&lastName=value&checkbox=1 示例: http ://now.eloqua.com/e/f2.aspx?elqFormName = elq-form-name&elqSiteID = 123456&emailAddress = EmailAddress&firstName = value&lastName = value&checkbox = 1

You can use now.eloqua.com/e/f2.aspx for all blind form submits. 您可以使用now.eloqua.com/e/f2.aspx进行所有盲目提交。

The parameter "elqFormName" specifies what form the data is being sent to. 参数“elqFormName”指定发送数据的形式。 "elqSiteID" is necessary to identify your Eloqua instance. “elqSiteID”是识别您的Eloqua实例所必需的。 All following parameters refer to the HTML name given for the field on the Eloqua form. 以下所有参数均指Eloqua表单中字段的HTML名称。

If you send a blind form submit, all processing steps in Eloqua will be triggered, but used in an iframe or img tag for "fake ajax" will not trigger any redirection set on the form in Eloqua. 如果您发送盲目表单提交,Eloqua中的所有处理步骤都将被触发,但在iframe或img标签中使用“假ajax”将不会触发Eloqua表单上的任何重定向设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM