Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [AJAX]Zapisywanie pliku
marcio
post 26.11.2008, 23:21:37
Post #1





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

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


EDIT: Poradzilem sobie i wszystko dziala good:
Poprawana funkcje
Kod
function edit_file(f_name, f_script) {

   req = mint.Request();
   req.AddParam("file_name_mod", document.getElementById(f_name).value);
   req.AddParam("script_file_mod", document.getElementById(f_script).value);
  
req.OnLoading = function() {
document.getElementById("edit").style.display = "none";
document.getElementById("loading").innerHTML = "<img src=\'./grafiki/administration/spinner.gif\'> Trwa zapisywanie pliku...";
}

req.OnLoaded = function() {
document.getElementById("edit").style.display = "block";
}

   req.OnSuccess = function() {
      document.getElementById("loading").innerHTML = "";
      $("info_edit").innerHTML = req.responseText;
   }
   req.Set("method", "POST");
   req.Send("./system/check.php");
}
              </script>

Do tego oczywiscie evalScripts = true; i wszystko hula smile.gif

tongue.gif

Ten post edytował marcio 26.11.2008, 23:21:29


--------------------
Zainteresowania: XML | PHP | MY(SQL)| C# for .NET | PYTHON
http://code.google.com/p/form-builider/
Moj blog
Go to the top of the page
+Quote Post

Posty w temacie
- marcio   [AJAX]Zapisywanie pliku   26.11.2008, 23:21:37


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

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 02:03