Format:
Recent snippets matching tags of vcard
partial class vCardExport : System.Web.UI.Page { private const string nameFirst = "FirstName"; private const string nameLast = "LastName"; private const string nameMiddle = "MiddleName"; private const string nameTitle = "Mr"; private const string email = "firstname.lastname@domain.com"; private const string uRL = "www.geekswithblogs.net/sanjayu"; private const string telephone = "555 555 5555";
286 Views
no comments
function vCardTohCard(io) { var testStr = io.value.replace(/\n/gm, ""); if (testStr.match(/BEGIN:VCARD.*END:VCARD/im)) { var vCardArr = io.value.match(/^(.*)$/gm); var vCardTmp = {}; for (var prop in vCardArr) { if (vCardArr[prop] != null) { var arr = vCardArr[prop].match(/(.*?):(.*)/); if ((arr) && (arr.length = 3)) { if (vCardArr[prop].match(/URL/i)) {
242 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
