Why does this code (community widget in contact with my dopil) work correctly, but is displayed only on my pc? If you give a link to friends, is not displayed? Link to hosting. I open, everything is OK, from another pc - file. http://likebox.ru/qr/cupon.html
Dopil is that defines the community ID by name and this ID is inserted into the widget. Otherwise, the widget does not plow.
<script src="http://vkontakte.ru/js/api/openapi.js" type="text/javascript"></script> <div id="vk_groups"></div> <script language="javascript"> VK.init({ apiId: 2852415 }); /*function authInfo(response) { if (response.session) { alert('user: '+response.session.mid); } else { alert('not auth'); } }*/ //VK.Auth.getLoginStatus(authInfo); //VK.UI.button('login_button'); VK.api('groups.getById',{gid: 'typical_proger'},function(data) { if (data.response) { // data.response is object // alert(data.response.gid); VK.Widgets.Group("vk_groups", {mode: 0, width: "380", height: "60"}, data.response[0].gid); } }); </script>