Posted By

ryarwood on 01/30/12


Tagged

javascript replace dynamic campaign esring


Versions (?)

Lead Tracking Sources (LTS) Javascript Example


 / Published in: JavaScript
 

  1. setDynamicCampaign('1149', 'LTSDynamicCampaignText', false, '');
  2.  
  3. function setDynamicCampaignProcessCompleted(dynamicCampaignResponse) {
  4. if (dynamicCampaignResponse.successFlag == true) {
  5. if (dynamicCampaignResponse.controlIDUpdated == 'LTSDynamicCampaignText') {
  6. var phPhone = dynamicCampaignResponse.campaign.substring(0,3) + '-' + dynamicCampaignResponse.campaign.substring(3,6) + '-' + dynamicCampaignResponse.campaign.substring(6,10);
  7. $('#LTSDynamicCampaignText').html(phPhone);
  8. }
  9. } else {
  10. alert(dynamicCampaignResponse.errorMessage);
  11. }
  12. }

Report this snippet  

You need to login to post a comment.