Ajax subscription form, no proxy, could be possible using jsonp

The recent article about using an ajax subscription form is great, but you actually could create an ajax version with no need for a proxy using jsonp.

jsonp uses the script tag to request a javascript file on an external site. Variables can be sent in the url, so an email address etc could be included.

Data can then be sent back by firing a defined function.

So there you go. Ajax subscription with no proxy as soon as Campaign Monitor add support for jsonp

Harry

[edit] forgot the link to the article mentioned above - http://www.campaignmonitor.com/downloads/ajax-subscription-form/

Mathew Mathew, 7 years ago

Thanks for the heads up Harry. We'll definitely take a look at this, and potentially consider it for a future update.


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
harrybailey, 7 years ago

As an addition Mathew (one M, not seen that for a while),

It would obviously not be possible to use the current api key method. A different system for authentication would be needed to prevent anyone having access to your api key and therefore api methods for your account.

Harry

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098