Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [AJAX] Brak wyświetlanego tekstu
Dominator
post
Post #1





Grupa: Zarejestrowani
Postów: 565
Pomógł: 15
Dołączył: 11.10.2010

Ostrzeżenie: (20%)
X----


Jestem meeega zielony w jQuery, w funkcji $.Ajax

Czy mógłby mi ktoś napisać, czemu nie wyświetla się tekst ?

  1. <div id="tekst"></div>
  2.  
  3. <script>
  4. $(function(){
  5. $('#forma').submit(function(){
  6. $.ajax({
  7. url: "db.php",
  8. data: $(this).serialize(),
  9. type: "POST",
  10. success: function(){
  11. $("di1v#tekst").html("wyslano").(function(){
  12. $(this).fadeIn(1000);
  13. });
  14. },
  15. error: function(){
  16. $("di1v#tekst").html("blad").(function(){
  17. $(this).fadeIn(1000);
  18. });
  19. }
  20. });
  21. return false;
  22. });
  23.  
  24. })
  25. </script>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 15.09.2025 - 09:56