...

View Full Version : Add-this like share script



bngari
07-26-2011, 07:41 AM
Hi, I want to create a share script like that used in addthis.com (http://addthis.com). Can anyone refer me to a free source code so that I can study its framework and create one that suites my needs? Thanks in advance.

Philip M
07-26-2011, 01:14 PM
You will need server-side scripting for this. Javascript is purely a client-side language, and unless used with an Ajax call has no capability to read from or write to a file (except a cookie), communicate with the server, access a database, the client's operating system or the Windows registry, or alter the default behaviour of the browser. And for security reasons JavaScript cannot access anything beyond the domain of the current page. This is known as the "same origin policy" and prevents a document or script loaded from one origin from getting or setting properties of a document from a different origin.

All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

bngari
07-26-2011, 11:31 PM
You will need server-side scripting for this. Javascript is purely a client-side language, and unless used with an Ajax call has no capability to read from or write to a file (except a cookie), communicate with the server, access a database, the client's operating system or the Windows registry, or alter the default behaviour of the browser. And for security reasons JavaScript cannot access anything beyond the domain of the current page. This is known as the "same origin policy" and prevents a document or script loaded from one origin from getting or setting properties of a document from a different origin.

All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

okay, how do. I come. up with the embed code?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum