Step 1. Get your custom code.

Step 2. Paste the enclosed code into your application as documented below.

Step 3. Look for the convention var invite_variable = “[value of variable]“. This indicates places where you will need to specify the information for the event. For database driven content, the value of “[value of variable]” will be a value that represents the data from a query result. any double quotes that appear in the data will need to be escaped with a backslash.


var invite_title="[NAME OF EVENT]";
var invite_location="[ADDRESS OF VENUE]";
var invite_date="[DATE OF EVENT]"; // mm/dd/yyyy
//optional event parameters
var invite_event_url="[OPTIONAL URL OF EVENT]"; // please include http://
var invite_artist="[OPTIONAL COMMA SEPARATED LIST OF ARTISTS]";
var invite_venue="[NAME OF VENUE]";

Step 4. View the page to ensure that invite is appearing as expected.

Step 5. Click the button to ensure that the correct information is being passed to the invitation engine.

NOTES:

  • Correct data formats: urls as “http://www.iggli.com”, dates as “01/31/2009″, times as “08:00 PM”, and price as “101.01″.
  • Any “double quotes” in the data will need to be escaped or will break the javascript above since double quotes are used to delimit the variables.
  • This code is customized for your web site. Do not change the Partner ID as it is tied to your domain. We only allow one domain for each Partner ID. If you would like to use invite on more than one site, please register a separate partner account.

EXAMPLES:

Invite HTML Examples

3 stripped down html files demonstrating how to use invite on a web page, using AJAX, and from emails or other external links (ie: embaddable widgets)