30 September 2014

Add Collaboration Features to your Website with a Line of Code



Tools like Google Docs include real-time collaboration features that let multiple people work on the same document or spreadsheet at the same time. Then you have screen sharing tools, join.me or Chrome Remote Desktop for example, where there’s a master presenter and remote viewers can follow along.


Website with Real-time Chat

TogetherJS is a Mozilla project that brings similar collaboration features to your own website but without any coding. Once enabled, visitors to your website will be able to interact with each other on your site in real time.


They’ll able to see each other’s cursor (like in Google Docs), the clicks are highlighted and the screen content stays synchronized. Visitors will also have the ability to text chat and audio chat (using WebRTC) with each other while staying on your website. All this and more with a line of code.


Add TogetherJS to your own Website


To get started, all you have to do is insert a little JavaScript snippet anywhere on your web page(s). There are several configuration parameters available for the widget but we will use the default settings to keep things simple.



<script>
TogetherJSConfig_autoStart = true;
</script>
<script src="http://ift.tt/1vtXj93;

This will add a little floating widget to your website that will be visible to all visitors. They can click the “+” button in the widget to generate a unique TogetherJS URL. Anyone who clicks this URL will be able to interact with each other on your page in real time. It can’t get any simpler.


I have put up a quick page where you can test TogetherJS capabilities. Click the “+” icon and send the unique URL to another person to chat in real-time.


Add TogetherJS to any Website


There’s more. You can add TogetherJS features to any web page on the Internet with the help of a bookmarklet.


TogetherJS


This bookmarklet will load the TogetherJS library on the current web page and you can give the chat session a unique name. Another person can launch the bookmarklet on the same page on their own computer, enter the same session name and you’ll be instantly connected.


You can co-browse, watch each other’s activity or chat atop the page.




This story, Add Collaboration Features to your Website with a Line of Code, was originally published at Digital Inspiration on 30/09/2014 under Bookmarklet, Web Design, Internet

Restrict Google Forms to only Allow One Entry Per Person



You have created a survey using Google Forms but people have quickly figured out a way to game your poll and tilt the results in their favor. They are submitting multiple entries, and because Google Forms will not record the I.P. address or the email of the form submitter, it is nearly impossible for you to separate the duplicate submissions from the genuine entries.


How do you restrict Google Forms to only allow a single entry from a user?


If you are a Google Apps user, you can always restrict the Google Form to accept entries only from users who are part of your domain and the response spreadsheet will then record the username of the form submitter. However if you have a regular Gmail / Google Account, you have another option now to prevent multiple form submissions from the same user.


While creating the Google Form, click the Settings bar and turn on the option that says “Allow only one response per user.” When the unique option is enabled for a Google Form, respondents will have to sign-in with their Google account to access the form. Their email address won’t be recorded in the response sheet but Google Form will not allow another entry from the same Google Account.


If someone tries to fill the Google Form again, a warning message will be displayed saying “You’ve already responded. You can only fill out this form once. Try contacting the owner of the form if you think this is a mistake.”


This is by far the easiest approach though it does put your Google Form out of reach of people who do not have Google Account or those who are skeptical of associating the email address with their form entry (though this association is completely hidden from the form owner).


Google Forms - Multiple Entries




This story, Restrict Google Forms to only Allow One Entry Per Person, was originally published at Digital Inspiration on 30/09/2014 under Google Forms, Internet