dimanche 24 décembre 2017

Messenger in the website

I have a website and a messenger block, imported in each page.

The problem is, when several tabs of website are opened in the browser, notifications are received only once in some page, others doesn't show an information about new message.

In Facebook the messenger seems to work independently. How to get the same functionality?




Click on every instance of a certain word in a page using Javascript

Im trying to program something using JQuery that will search a webpage for every instance of a certain word and then click on it. How would I do this?

I currently have something like this:

$(document).ready(function(){
    function follow(texttofind, setinterval){
        var buttons = $( "*:contains('"texttofind"')" );
        var i = 0;
        interval = setInterval(function(){
            for(i <= buttons.length; i++){
                $(buttons[i]).scrollIntoView();
                buttons[i].click();
            }
        },setinterval);
    }
});




Webpage with grid vidoes

I'm trying to create a webpage for demonstration in an event, it should have a grid that has a video in each square, I should upload local videos to this page, the user can click a video and it will play in the same page. I tried looking through materialize framework grid but I don't think it's enough. What do you recommend?




Click on every instance of a word on a page with Javascript

Im trying to program something using JQuery that will search a webpage for every instance of a certain word and then click on it. Is there any way to do this?




Multiple users posting to one database endpoint?

I'm new to web development and was curious about something. When posting to an endpoint to then receive a value from a server-side function, is it problematic if multiple users are writing to the same endpoint? Can this corrupt the value returned?

For instance, I'm using Stripe in a project and you're supposed to post to an endpoint to generate a user-specific ephemeral key. There's a 1-2 second delay in the response at times, so would there be a problem if two users posted to the same endpoint within a few milliseconds?




What is the difference between Web Designer and Front End Developer? [on hold]

I need to know what is the difference between web designer and front end developer .. What is unique in each ??? Which makes the web designer better than front end developer Or vice versa ?




How to get user location and sent back to server on webpages?

I want to get users location via the Google location api and send back to my server (so that I can know where the user is).

But I don't know how to make the users browser sent a POST request to Google and send the answer to my server, on AJAX/JavaScript

(The reason I must request Google Location API : I want to get the exact location of the user by only ip , but most of ip2location database just accurate to the city. And the Google Location API can accurate to 3km range)

If possible, please give me an example code with explanation Thanks for you helping!