Mam taki kod do buttona fb share i on działa

  1.  
  2. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
  3.  
  4. <div id="fb-root"></div>
  5. window.fbAsyncInit = function() {
  6. FB.init({appId: '11111111111111', status: true, cookie: true,
  7. xfbml: true});
  8. };
  9. (function() {
  10. var e = document.createElement('script'); e.async = true;
  11. e.src = document.location.protocol +
  12. '//connect.facebook.net/en_US/all.js';
  13. document.getElementById('fb-root').appendChild(e);
  14. }());
  15.  
  16.  
  17. <script type="text/javascript">
  18. $(document).ready(function(){
  19. $('#share_button').click(function(e){
  20. e.preventDefault();
  21. FB.ui(
  22. {
  23. method: 'feed',
  24. name: 'This is the content of the "name" field.',
  25. link: 'http://www.groupstudy.in/articlePost.php?id=A_111213073144',
  26. picture: 'http://www.groupstudy.in/img/logo3.jpeg',
  27. caption: 'Top 3 reasons why you should care about your finance',
  28. description: 'What happens when you don',
  29. message: ''
  30. });
  31. });
  32. });
  33. <button id="share_button">sad</button>
  34.  


Mam template na bootstrap (dark admin)
  1. <script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
  2. <script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>



Mam taki kod do wywoływanie modal z AJAX

  1. <script type="text/javascript">
  2.  
  3. $(window).load(function(){
  4. showHint();
  5. });
  6.  
  7. function showHint(p) {
  8. var xmlhttp = new XMLHttpRequest();
  9. $('#msg').modal('show');
  10. //document.getElementById("txtHint").innerHTML = '';
  11. xmlhttp.onreadystatechange = function() {
  12. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  13. document.getElementById("txtHint").innerHTML = xmlhttp.responseText;
  14. }
  15. };
  16.  
  17. if(p == 'add'){
  18. var fname = document.getElementById("fname").value;
  19. var ftext = document.getElementById("ftext").value;
  20. p = p + '&fname=' + fname + '&ftext=' + ftext;
  21. }
  22.  
  23. xmlhttp.open("GET", "gethint.php?q=" + p, true);
  24. xmlhttp.send();
  25. }
  26.  
  27. </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 sad.gif jak to naprawić bo znalezienie błedu zajeło mi kilka godzin ale jak to naprawić serio nie wiem. Jestem początkujący.


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 wink.gif