Skip to:
Content
Pages
Categories
Search
Top
Bottom

Redirect to like /activity/post/ !


  • ruucm
    Participant

    @ruucm

    Hi I’m developing photo solutions in buddypress Activity (Timeline)

    But when I snap photo with webcam, It redirect automatically just like posting ( /activity/post/ )

    Below I add my js code

    var video = document.getElementById("video"),
    
       // Trigger photo take
                    document.getElementById("snap").addEventListener("click", function () {
                        context.drawImage(video, 0, 0, 480, 480);
                    });
    
    

    Any help would be much appreciated! Thanks!

Viewing 1 replies (of 1 total)

  • ruucm
    Participant

    @ruucm

    I got answer..

    I have to use this code..

    
                    // Trigger photo take
                    $('#snap').click(function () {
                        canvas.getContext("2d").drawImage(video, 0, 0, 640, 480);
                        return false;
                    });
    

    but.. I don’t know why..

Viewing 1 replies (of 1 total)
  • The topic ‘Redirect to like /activity/post/ !’ is closed to new replies.
Skip to toolbar