hrod Posted August 27, 2010 Share Posted August 27, 2010 I am using VCard information from a database to generate QR barcodes which is easy. I need help or an example of a command string that when QR code is read with QR Reader (Mobile Tag) the Vcard information appears with the option to save "Create New Contact" to your cell phone. If you have SmartPhones (iphone) with a QR Reader like Mobile Tag here is an example of what I am trying to achieve via FusionPro. http://chart.apis.google.com/chart?cht=qr&chs=350x350&chl=MECARD%3AN%3AJohn+Doe%3BTEL%3A7160005555%3BURL%3Awww.abc.com%3BEMAIL%3Ajdoe%40abccompany.com%3BADR%3A123+Main+St%3BNOTE%3Acreate+new+contact%3B%3B Link to comment Share on other sites More sharing options...
Dan Korn Posted August 27, 2010 Share Posted August 27, 2010 The QR standard itself allows any data, and doesn't define a format for contact information. However, there are several unofficial standards for 2D barcode contents which have fairly widespread adoption: http://code.google.com/p/zxing/wiki/BarcodeContents The most common is probably the MECARD format: http://www.nttdocomo.co.jp/english/service/imode/make/content/barcode/function/application/addressbook/index.html Here's an example of how to use it in FusionPro: var info = { N: Field("Name"), TEL: Field("Phone"), EMAIL: Field("EMail"), URL: Field("Website"), NOTE: "add new contact", } var result = ""; for (var label in info) { if (!info[label]) continue; result += label; if (!label.match(/\:$/)) result += ":"; result += info[label]; result += FusionPro.inValidation ? "\n" : ";"; } if (FusionPro.inValidation) return result; return MakeQRBarcode("MECARD:" + result + ";"); You can add any fields you want as properties of the "info" object. Again, the link above has all the possible MECARD parameters. You can modify this to use another standard such as BIZCARD or vCard by changing the property names and possibly adding some text before and after the properties. We're working on a dialog-based rule wizard with several common fields based on this standard (MECARD). Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.