Subscription Center Java Script for 90 Day Pause Option

Brian_Hansford2
Level 1

Subscription Center Java Script for 90 Day Pause Option

Hi Folks - We need to build a Marketo subscription center that has the same 90 day pause emails button that Marketo uses internally.  We understand this requires javascript.  Can you share the javascript used?  

This gets requested a ton and it would be really helpful if Marketo would simply provide this to the community. 
Tags (1)
6 REPLIES 6
Anonymous
Not applicable

Re: Subscription Center Java Script for 90 Day Pause Option

Disclaimer: I do not work for Marketo Engineering (the development group) therefore I can share few ideas based on my development roles in the free open source software movement. The opinions expressed are my own and do not necessarily reflect those of Marketo.
 
In general that is a server-side code. JavaScript would pause at browser-side and that is not exactly the goal you may have in mind.
 
Pausing a flow is normally accomplished timestamping a record and then running a scheduled task to scan the table for records reaching that timestamp. 
 
In the Linux/Apache/MySQL/PHP stack that usually done by a cron job starting a PHP script. (Marketo runs on LAMP).
 
In SugarCRM the crontab looks like
 * * * * * cd /var/www/html/sugar && /usr/bin/php -f cron.php 2>&1
 
Apple has introduced a resource called launchd, which includes cron-like functionality, though it is broader in scope. The control file is /Library/LaunchDaemons/com.sugarcrm.Scheduler.plist

Changing the default functionality in Marketo would be addressed either through "Ideas" or a customisation managed by Professional Services.
 
Brian_Hansford2
Level 1

Re: Subscription Center Java Script for 90 Day Pause Option

OK, is this how Marketo does it with their own Subscription Center?  
Anonymous
Not applicable

Re: Subscription Center Java Script for 90 Day Pause Option

It is probably a similar method. I do not have access to the source code therefore I can only comment on methods I am aware of.

It would be great if someone from Engineering could clarify.
Anonymous
Not applicable

Re: Subscription Center Java Script for 90 Day Pause Option

This can be done with Javascript. I did it on The Pedowitz Group subscription management page and I got the code from Marketo's page. Not too difficult if you know basic jQuery:  http://revmarketer.pedowitzgroup.com/SubscriptionManagement
Brian_Hansford2
Level 1

Re: Subscription Center Java Script for 90 Day Pause Option

Right, I get it that several companies have done it. I'm asking for the template of the actual javascript.  Seems like something that could be made available in an SDK or through the community.  
Anonymous
Not applicable

Re: Subscription Center Java Script for 90 Day Pause Option

Bump!