Witam

Mam problemy ze skrpytem, działa pod FF/OPERA ale pod IE w każdej wersji dane nie są zastępowane.

DEMO:
http://marcinmarecik.com (galeria, ladowanie zdjec po wyborze albumu)


[JAVASCRIPT] pobierz, plaintext
  1. $(function()
  2. {
  3. $('.albumFoto').bind('click', function() {
  4. var id = parseInt($(this).attr('rel'));
  5. var response2 = $('#galeria');
  6.  
  7. $.ajax({
  8. type: "POST", url: "galeria.php", cache: false, data: "mode=foto" + "&id=" + id,
  9. complete: function(data){
  10. response2.html(data.responseText);
  11. }
  12. });
  13. });
  14. });
  15.  
  16.  
  17. $(function()
  18. {
  19. $('#galeriaBack').bind('click', function() {
  20. var response2 = $('#galeria');
  21.  
  22. $.ajax({
  23. type: "POST", url: "galeria.php", cache: false, data: "mode=back",
  24. complete: function(data){
  25. response2.html(data.responseText);
  26. }
  27. });
  28. });
  29. });
[JAVASCRIPT] pobierz, plaintext


skrypt działający na podobnej zasadzie na inej stronie działa.

DEMO: staniatkisalos.pl (logowanie)

[JAVASCRIPT] pobierz, plaintext
  1. $(document).ready(function(){
  2. //global vars
  3. var inputUser = $("#nick");
  4. var inputPass = $("#pass");
  5. var loading = $("#loading");
  6. var panel = $("#script");
  7.  
  8. //check if all fields are filled
  9. function checkForm(){
  10. if(inputUser.attr("value") && inputPass.attr("value"))
  11. return true;
  12. else
  13. return false;
  14. }
  15.  
  16. //on submit event
  17. $("#logIn").submit(function(){
  18. if(checkForm()){
  19. var nick = inputUser.attr("value");
  20. var pass = inputPass.attr("value");
  21. //we deactivate submit button while sending
  22. $("#send").attr({ disabled:true });
  23.  
  24. $.ajax({
  25. type: "POST", url: "login.php", cache: false, data: "mode=login&nick=" + nick + "&pass=" + pass,
  26. complete: function(data){
  27. panel.hide();
  28. loading.fadeIn(500, function() {
  29. loading.fadeOut(500, function() {
  30. panel.html(data.responseText);
  31. panel.fadeIn(1000);
  32. });
  33. });
  34. //reactivate the send button
  35. $("#send").attr({ disabled:false });
  36. }
  37. });
  38. }
  39. else alert("Wypelnij wszystkie pola!");
  40. //we prevent the refresh of the page after submitting the form
  41. return false;
  42. });
  43.  
  44. $("#out").click(function(){
  45. $.ajax({
  46. type: "POST", url: "login.php", cache: false, data: "mode=out",
  47. complete: function(data){
  48. panel.hide();
  49. loading.fadeIn(500, function() {
  50. loading.fadeOut(500, function() {
  51. panel.html(data.responseText);
  52. panel.fadeIn(1000);
  53. });
  54. });
  55. }
  56. });
  57. });
  58. });
[JAVASCRIPT] pobierz, plaintext