1

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. I've been looking around on the internet but didn't find anything that's working so far..

Anyone has experience with this?

Thanks.

Sam De Decker
  • 307
  • 1
  • 3
  • 12
  • What have you done/tried? Show us your code? We're not here to do research for you. A simple google search for *ajax form submit* should give you enough to figure it out. If you then have problems, come back and ask. – Seb Dec 16 '16 at 16:11

1 Answers1

3

Ajax probably won't work because of domain restrictions.

You could have a look at blind form links, though: 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. You can use it as an iframe src, or even an img src. Data will be submitted, page won't reload.

Edit regarding Seb's complaints: The link was provided as a helper. Please note that the generator creates a link which uses &e= for the email address field value. I have senn this fail many times, so please use the original form field name set on the eloqua form.

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. This means ajax will be blocked. Hence the workaround using the "blind form link" in an iframe, for example.

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

You can use now.eloqua.com/e/f2.aspx for all blind form submits.

The parameter "elqFormName" specifies what form the data is being sent to. "elqSiteID" is necessary to identify your Eloqua instance. All following parameters refer to the HTML name given for the field on the Eloqua form.

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.

Dirk
  • 41
  • 3
  • Please do not only give a link in an answer, but try to explain what's going on. Having a page generate something for you will not help to understand what's going on. – Seb Dec 16 '16 at 16:09
  • And I downvoted, because *domain restrictions* is a pure guess. From reading the question, it's more a *I have not idea at all. Someone do it for me.* thing. – Seb Dec 16 '16 at 16:12
  • 5
    The link is a helper for creating the URL for a blind form submit. Anyone having to do this repeatedly will appreciate this, I guess. Do you work with Eloqua, Seb? – Dirk Dec 16 '16 at 18:39