![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 401 Pomógł: 1 Dołączył: 10.03.2004 Skąd: Warszawa Ostrzeżenie: (0%) ![]() ![]() |
Witam,
nie wiem, czy jest to wykonalne w JS, ale chodzi o to, że mam 3 pola tekstowego user wpisuje w 1 imię, w 2 nazwisko i kiedy przechodzi do 3 pola tekstowego, to w tym trzecim polu wskakują dane z dwóch poprzednich pól w postaci: imie.nazwisko User oczywiście może wykasować zawartość 3 pola, albo zmienić ją, natomiast chodzi o ułatwienie wpisywania ![]() To mi się wydaje nie jest wykonalne, bo w międzyczasie user nie klika w żaden button ![]() Dzięki za pomoc i pozdrawiam Ten post edytował miedzna 17.11.2005, 11:21:14 |
|
|
![]()
Post
#2
|
|
Grupa: Przyjaciele php.pl Postów: 7 494 Pomógł: 302 Dołączył: 31.03.2004 Ostrzeżenie: (0%) ![]() ![]() |
Na przykład tak można:
|
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 401 Pomógł: 1 Dołączył: 10.03.2004 Skąd: Warszawa Ostrzeżenie: (0%) ![]() ![]() |
Mocny jesteś
![]() Wiem że marudzę, ale jednak ![]() Pozdrawiam |
|
|
![]()
Post
#4
|
|
Grupa: Przyjaciele php.pl Postów: 7 494 Pomógł: 302 Dołączył: 31.03.2004 Ostrzeżenie: (0%) ![]() ![]() |
Cytat(miedzna @ 2005-11-17 11:34:15) Mocny jesteś ![]() Hehe, tak się składa, że JavaScript znam bardzo słabo ![]() Możesz użyć funkcji replace() do podmiany znaków. |
|
|
![]()
Post
#5
|
|
Grupa: Zarejestrowani Postów: 401 Pomógł: 1 Dołączył: 10.03.2004 Skąd: Warszawa Ostrzeżenie: (0%) ![]() ![]() |
Znalazłem coś takiego, ale nie wiem jak te 2 scrypty powiązać między sobą:
<script LANGUAGE="JavaScript"> var thisString; function startText() { thisString = document.niePolskie.box1.value; thisString = thisString.replace(/ą/g, "a"); thisString = thisString.replace(/Ą/g, "A"); thisString = thisString.replace(/ś/g, "s"); thisString = thisString.replace(/Ś/g, "S"); thisString = thisString.replace(/ę/g, "e"); thisString = thisString.replace(//g, "E"); thisString = thisString.replace(/ć/g, "c"); thisString = thisString.replace(/Ć/g, "C"); thisString = thisString.replace(/ź/g, "z"); thisString = thisString.replace(/Ź/g, "Z"); thisString = thisString.replace(/ż/g, "z"); thisString = thisString.replace(/Ż/g, "Z"); thisString = thisString.replace(/ó/g, "o"); thisString = thisString.replace(/Ó/g, "O"); thisString = thisString.replace(/ń/g, "n"); thisString = thisString.replace(/Ń/g, "N"); thisString = thisString.replace(/ł/g, "l"); thisString = thisString.replace(/Ł/g, "L"); document.niePolskie.box2.value=thisString; } </script> |
|
|
![]() ![]() |
![]() |
Aktualny czas: 19.08.2025 - 08:55 |