WidgetsJoin → Documentation & Demo
Demo
Login & Join Social
Documentation
Widget description
This widget allows traders to easily join your social trading network directly from your website, and then transfers the trader directly into his social profile in Sirix Web. This simple two-step sign-up widget will not only increase your conversions, but also allow you to benefit from a larger social network.
Configurable parameters
socialWidgetClientUrl
The client url
(Usually http://developers.sirixtrader.com)
socialServerUrl
Url of the social server
(Please contact Leverate's administrator for this info)
webServerUrl
Url of the web server
(Please contact Leverate's administrator for this info)
sirixWebUrl
Url of your Sirix trader
termsUrl
External url for your terms & conditions
openAccountUrl
External url for open account
language
The language key (e.g. 'en')
Implementation example
* Please add the script before the </body> tag.
* If you are already using jQuery please remove the 'Framework.jQuery.js' from the 'js.src'.
                <script type="text/javascript">
                    (function() {
                        var clientUrl = "http://developers.sirixtrader.com";
                        var js = document.createElement('script');
                        js.type = 'text/javascript';
                        js.async = true;
                        js.src = clientUrl + '/PageScripts/GetJavaScript/?files=Framework.jQuery.js;Framework.jQuery.Tpl.js;Join.Widget.js&callback=window.onJoinWidgetLoad';
                        document.getElementsByTagName('head')[0].appendChild(js);

                        var css = document.createElement('link');
                        css.type = 'text/css';
                        css.async = true;
                        css.rel = 'stylesheet';
                        css.href = clientUrl + '/PageScripts/GetCss/?files=Join.Widget.css';
                        document.getElementsByTagName('head')[0].appendChild(css);

                        onJoinWidgetLoad = function() {
                            var join = new $.Leverate.Join({
                                socialServerUrl: 'https://social-mt2.forexwebservices.com',
                                webServerUrl: 'https://uk1-websrv1-privatelabelbrokerage.FOREXWEBSERVICES.COM',
                                language: 'en'
                            });
                            $('#joinsocial').on('click', function() {
                                join.show();
                            });
                        };
                    })();
                </script>