<script> window.fbAsyncInit = function() { FB.init({appId: '11111111111111', status: true, cookie: true, xfbml: true}); }; (function() { var e = document.createElement('script'); e.async = true; e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; document.getElementById('fb-root').appendChild(e); }()); </script> <script type="text/javascript"> $(document).ready(function(){ $('#share_button').click(function(e){ e.preventDefault(); FB.ui( { method: 'feed', name: 'This is the content of the "name" field.', link: 'http://www.groupstudy.in/articlePost.php?id=A_111213073144', picture: 'http://www.groupstudy.in/img/logo3.jpeg', caption: 'Top 3 reasons why you should care about your finance', description: 'What happens when you don', message: '' }); }); }); </script>
Mam template na bootstrap (dark admin)
Mam taki kod do wywoływanie modal z AJAX
<script type="text/javascript"> $(window).load(function(){ showHint(); }); function showHint(p) { var xmlhttp = new XMLHttpRequest(); $('#msg').modal('show'); //document.getElementById("txtHint").innerHTML = ''; xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { document.getElementById("txtHint").innerHTML = xmlhttp.responseText; } }; if(p == 'add'){ var fname = document.getElementById("fname").value; var ftext = document.getElementById("ftext").value; p = p + '&fname=' + fname + '&ftext=' + ftext; } xmlhttp.open("GET", "gethint.php?q=" + p, true); xmlhttp.send(); } </script>
i teraz probelm pewnie jest z wersja biblioteki jquery i moim kodem, który jest każdy z innej parafi. bo albo działa mi wywoływanie modal (onclick="showHint()") albo button share

Wybrałem złe miejsce na forum, jakiś missclick. Proszę admina o przeniesienie do dopowiedniego działu ;]
Działa ;] nie wiem co robiłem nie tak ale działa teraz mimo ze nic nie zmieniałem
