This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Add $().exists() helper method. | |
Usage: | |
$(selector).exists() | |
*/ | |
jQuery.fn.exists = function(){return this.length>0;} | |
/* Add $().ensure() helper method that ensures conditions pass before executing. | |
This will re-check the conditions untill they are meet or the limit is reached. | |
Usage: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UpdateModel(model, HttpContext.Current.Request.Form); | |
// Get the lead. | |
var lead = MarketoWs.Instance.getLead(); | |
// Update fields. | |
lead[ApiFields.FirstName] = model.FirstName; | |
lead[ApiFields.LastName] = model.LastName; | |
lead[ApiFields.Company] = model.Company; | |
lead[ApiFields.Phone] = model.Phone; |