Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8121429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:29:10+00:00 2026-06-06T05:29:10+00:00

I have multiple twitter share buttons on a page, I want to identify which

  • 0

I have multiple twitter share buttons on a page, I want to identify which button was used to do a tweet by using the data-url property so i can record the tweet counts.I am using the twitter intents. How can i get the page url that the tweet refers to? This must be a common requirement.

<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.example.com" data-lang="ja" data-counturl="http://www.example.com">ツイート</a>

twttr.ready(function (twttr) {
            twttr.events.bind('tweet', function (event) {
                alert(event.target);

            });
        });
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T05:29:11+00:00Added an answer on June 6, 2026 at 5:29 am

    I solved it doing this, the event.target is an iframe , so i parse the url from the src tag using a regular expression.

    twttr.ready(function (twttr) {
        twttr.events.bind('tweet', function (event) {
            var url = unescape(event.target.src.match("url=(.*?)(&|$)")[1]);
            UpdateCounts("Tweet", url);
    
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a personal page (not a cms) where I want to insert multiple
I want to post text(on twitter, fb, mail) like following using share kit: Hi,
I have multiple (8) WAR files and 1 EAR file that I want to
I have multiple databases that I connect to using SQL*Plus in Windows (not the
I have multiple text files with logged data like this: 6/23/09 17:00 0.443 6/23/09
I have multiple NSURLConnections running providing data back to the delegate objects. Is it
I have multiple table rows that has a set of radio buttons on each
I have multiple images and I want to bind draggable events to each of
I have an App which is rejected which behaves as the Twitter App on
I want to implement multiple auth providers (like stackoverflow). I have downloaded the dotnetauth

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.