Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [AJAX]Dynamiczne wczytywanie plikow
marcio
post
Post #1





Grupa: Zarejestrowani
Postów: 2 291
Pomógł: 156
Dołączył: 23.09.2007
Skąd: ITALY-MILAN

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


Witam mam glupi problem taki kod dziala:
Kod
function send(file) {

var req = mint.Request();
   req.AddParam("file", file);

      req.OnLoading = function() {
      document.getElementById("loading").innerHTML = "<img src=\'./grafiki/administration/spinner.gif\'> Prosze czekac trwa ladowanie pliku.";
      }

      req.OnLoaded = function() {
      document.getElementById("loading").innerHTML = "";
      }

    req.OnSuccess = function() {
       $("content").innerHTML = req.responseText;
    }
   req.Send("./system/check.php");
}

Ale jak chce dodac efekt:
Kod
var req = null;

function ShowContent() {
   $("content").innerHTML = req.responseText;
   mint.fx.Fade("content", 90, 10, 1000);

}

function send(file) {

var req = mint.Request();
   req.AddParam("file", file);

      req.OnLoading = function() {
      document.getElementById("loading").innerHTML = "<img src=\'./grafiki/administration/spinner.gif\'> Prosze czekac trwa ladowanie pliku.";
      }

      req.OnLoaded = function() {
      document.getElementById("loading").innerHTML = "";
      }

    req.OnSuccess = function() {
        mint.fx.Fade("content", 10, 10, 500, null, ShowContent);
    }
   req.Send("./system/check.php");
}

Wszystko dziala opprocz tego ze nie dostaje calego echo() z check.php tzn bez mx.fade dziala jak dodam taki efekt nie dziala gdzie w systemie news'ow dziala.

Moze problem polega na tym ze w pliku check.php laduje rozne pliki?
Go to the top of the page
+Quote Post

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: 23.12.2025 - 08:25