Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [js] Dlaczego to nie dziala?
atomp3
post
Post #1





Grupa: Zarejestrowani
Postów: 126
Pomógł: 1
Dołączył: 31.03.2006

Ostrzeżenie: (0%)
-----


document.getElementById(arr[i]).value (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) ?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
ayeo
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 1 202
Pomógł: 117
Dołączył: 13.04.2007
Skąd: 127.0.0.1

Ostrzeżenie: (0%)
-----


co to znaczy nie działa? Może coś więcej napiszesz/pokażesz? (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)
Go to the top of the page
+Quote Post
atomp3
post
Post #3





Grupa: Zarejestrowani
Postów: 126
Pomógł: 1
Dołączył: 31.03.2006

Ostrzeżenie: (0%)
-----


Cytat(ayeo @ 18.12.2007, 11:54:59 ) *
co to znaczy nie działa? Może coś więcej napiszesz/pokażesz? (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)



OK

  1. <?php
  2. function save_menu(string) {
  3.  
  4. var arr = string.split(",");
  5. var sum;
  6.  
  7. for (var i in arr) {
  8.  
  9. sum += arr[i] + '=' + document.getElementById(arr[i]).value +'&';
  10. }
  11. alert(sum);
  12. //requestInfo('admin.php?action=insert&'+sum, 'showTable','');
  13. }
  14. ?>
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: 8.10.2025 - 20:13