1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Automatic voting from an URL link - is it possible?

Discussion in 'FaceBook' started by ChrisV, Feb 5, 2013.

  1. ChrisV

    ChrisV Newbie

    Joined:
    Jun 17, 2011
    Messages:
    33
    Likes Received:
    16
    Occupation:
    Property Portfolio Manager for a Investor Group
    Location:
    Vanderbijlpark, South Africa
    Hi,

    I have a problem where a site has a voting button to vote for a specific graphic design.

    To get others to vote I must send them a site link like this:
    http://xxxxxx.com/viewDesign.php?id=2314&mode=view
    and on this page there is a voting button that need to be pressed.
    That is where the problem comes in that even if they open the page they might not press the voting button.
    The id=2314 s the specific graphic I want to vote for.

    Is it possible for me to send then a link where if they click on the link the voting will automatically happen when they open the link I send them?

    I had a look at the code from the voting site (Note: I'm not a programmer at all):D
    and copied it below:

    <div style="margin-left: -100px; float: left; width: 230px; font-family: Arial; font-size: 22px; color: #fff; text-transform:uppercase; font-weight: 400; margin-top: 240px;">
    Name Surname<div style="height: 30px;"></div>
    <div class="vot_plus" id="vt_2314"><h4>1</h4><span><img src="http://xxxxxx.com/votplus.gif" alt="1" title="Vote" onclick="addVote(this, 1)"></span></div>


    <br><br><br>
    <div class="fb-send fb_edge_widget_with_comment fb_iframe_widget" data-href="http://xxxxxx.com/viewDesign.php?id=2314&mode=view" style="margin-left: 110px;" fb-xfbml-state="rendered"><span style="height: 20px; width: 50px;"><iframe id="f2b67d2bc4" name="f3713be434" scrolling="no" style="border: none; overflow: hidden; height: 20px; width: 50px;" class="fb_ltr" src="http://www.facebook.com/plugins/send.php?api_key=&locale=en_US&sdk=joey&channel=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D18%23cb%3Df21dd1f15%26origin%3Dhttp%253A%252F%252Fxxxxxx.com%252Ff2cfde641c%26domain%3Dxxxxxx.com%26relation%3Dparent.parent&colorscheme=light&href=http%3A%2F%2Fxxxxxx.com%2FviewDesign.php%3Fid%3D2314%26mode%3Dview&extended_social_context=false"></iframe></span></div>


    </div>

    What I can see is on line 3 of the code is the "onclick="addVote(this, 1)" code
    Is it possible to send them a link that could somehow include this to automatically vote?
    or
    is there another way to get it to work?

    Your suggestions and help would be highly appreciated.
     
  2. chevet

    chevet Jr. VIP Jr. VIP

    Joined:
    Jun 23, 2010
    Messages:
    103
    Likes Received:
    30
    addVote function could make call to .php script using AJAX. PM url.