English 中文(简体)
是否有可能聆听一次增设这个员额的活动?
原标题:Is it possible to listen to an AddThis post share event?

I m利用“附加”植被,使网站内容能够共享到Twitter、Facebook和谷歌+。 我已在我的网站上在用户上签字,并期待着在已签名的用户与其分享行为之间建立联系。

为此,我需要聆听“Addthis”的呼声,这里是网站的直接例子:

function shareEventHandler(evt) { 
    if (evt.type ==  addthis.menu.share ) { 
        alert(typeof(evt.data)); // evt.data is an object hash containing all event data
        alert(evt.data.service); // evt.data.service is specific to the "addthis.menu.share" event
    }
}

// Listen for the share event
addthis.addEventListener( addthis.menu.share , shareEventHandler);

这一事件的问题在于,它是在实际分享东西之前启动的。 例如,用户点击了“Tweet”纽特顿,触发了这一文字,启动了Tweet dialog,用户要么向前进,要么取消该方言中的分享。

理想的情况是,一旦实际分享成功,而不是用户取消共享,便启动活动手。 从正式文件中看,这似乎是不可能的,但我还是想试图让任何人从事创造性的工作?

问题回答

possible workaround:
i m assuming that post sharing the addthis content box is altered...do a check for this element (probably a class(es)) to ensure sharing success





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签