Was this article helpful?

Methods

Modified 15:42, 21 Aug 2012 by Admin

 

 

Wildfire.initPost()

Initializes the Wildfire post module for the first time and draws its SWF in the specified container on the page.

Wildfire.initPost(partnerID, containerID, width, height, pconf);

Parameters:
partnerID – The partner ID as assigned by Gigya
containerID – A string with the ID of the container element where Wildfire will be drawn
Width – The width, in pixels, of Wildfire
Height – The height, in pixels, of Wildfire
pconf – A configuration object to be used for initializing the widget

Return Value: None

 

Wildfire.renderPostButton()

Creates a Wildfire button. When clicked, Wildfire post module is displayed in a generated floating div near the button.

Wildfire.renderPostButton (partnerID, width, height, pconf, btnURL);

Parameters:
partnerID – The partner ID as assigned by Gigya
Width – The width, in pixels, of Wildfire
Height – The height, in pixels, of Wildfire
pconf – A configuration object to be used for initializing the widget
btnURL– A URL to a custom button image, if you wish to substitute the provided button image.

Return Value: None

 

Wildfire.<containerID>.applyConfig()

Applies a new configuration object to a previously initialized Wildfire post module. This method is intended for use when the content that you want your user to post is either not available at the time when initPost was executed or has changed after the initialization.

The <containerID> should be replaced withe containerID that was used in the initPost() call for this specific instance of Wildfire. For example if the <DIV> that contains Wildfire has the ID "divWildfirePost", the method should be called as follows:

Wildfire.divWildfirePost.applyConfig(pconf);

 

Parameters:
pconf – A configuration object to be used for re-initializing the widget.

Return Value: None.

 


Was this article helpful?
Pages that link here
Page statistics
468 view(s) and 1 edit(s)
Social share
Share this page?

Tags

This page has no custom tags set.

Comments

You must to post a comment.

Attachments