Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 检查用户是否发送推文或关闭窗口_Jquery_Django_Twitter - Fatal编程技术网

Jquery 检查用户是否发送推文或关闭窗口

Jquery 检查用户是否发送推文或关闭窗口,jquery,django,twitter,Jquery,Django,Twitter,我想在用户单击对话框/弹出窗口中显示的tweet按钮时进行ajax调用。 我打开推特弹出窗口时显示以下内容: function openTwitterModal(){ twttr.widgets.createShareButton( 'https://dev.twitter.com/', document.getElementById('twitter-btn'), { text: 'Hello World'

我想在用户单击对话框/弹出窗口中显示的tweet按钮时进行ajax调用。 我打开推特弹出窗口时显示以下内容:

function openTwitterModal(){
    twttr.widgets.createShareButton(
        'https://dev.twitter.com/',
        document.getElementById('twitter-btn'),
        {
            text: 'Hello World'
        }
    );
}
我们能找出用户是真的在推特还是只是关闭弹出窗口吗?
当用户选择共享或关闭twitter对话框时,我们可以运行一些javascript函数吗?有什么django特有的东西可以达到这个目的吗?

没有,你不能。如果你可以,spamer会用它:给我发推特,然后得到一份礼物……不,你不能。如果你可以,spamer会用它:给我发推特,然后得到一份礼物。。。