Funkcja zwraca Undefinied |
Funkcja zwraca Undefinied |
20.04.2023, 05:19:59
Post
#1
|
|
Grupa: Zarejestrowani Postów: 140 Pomógł: 0 Dołączył: 14.01.2017 Ostrzeżenie: (0%) |
Witam
Prośba o pomoc, co robię nie tak, że funkcja zwraca mi UNDEFINIED
Ten post edytował topcio 20.04.2023, 05:20:21 |
|
|
20.04.2023, 05:46:05
Post
#2
|
|
Grupa: Zarejestrowani Postów: 1 863 Pomógł: 228 Dołączył: 20.03.2005 Skąd: Będzin Ostrzeżenie: (0%) |
return się używa po za funkcją .ajax().
|
|
|
20.04.2023, 06:33:19
Post
#3
|
|
Grupa: Zarejestrowani Postów: 140 Pomógł: 0 Dołączył: 14.01.2017 Ostrzeżenie: (0%) |
Ok już poprawiłem i zmieniłem całość
Ale mam jeszcze jedno pytanie i prośbę o pomoc bo nie wiem jak to ugryźć
w tym miejscu chciałbym zrobić tyle obiektów ile zwraca ajax, teraz dałem jeden ręcznie by zobaczyć czy działa. |
|
|
20.04.2023, 08:47:21
Post
#4
|
|
Grupa: Zarejestrowani Postów: 6 783 Pomógł: 1826 Dołączył: 11.03.2014 Ostrzeżenie: (0%) |
Skoro tworzysz ten obiekt w odpowiedzi Ajax, to w odpowiedzi masz też informację ile masz stworzyć obiektów.
-------------------- |
|
|
20.04.2023, 10:24:39
Post
#5
|
|
Grupa: Zarejestrowani Postów: 140 Pomógł: 0 Dołączył: 14.01.2017 Ostrzeżenie: (0%) |
Wydaje mi się, że wszystko OK, jeśli coś nie tak dajcie znać
|
|
|
20.04.2023, 10:49:11
Post
#6
|
|
Grupa: Zarejestrowani Postów: 6 373 Pomógł: 1116 Dołączył: 30.08.2006 Ostrzeżenie: (0%) |
Czemu tak mieszasz że raz używasz jquery, raz natywny JS?
-------------------- |
|
|
20.04.2023, 10:53:05
Post
#7
|
|
Grupa: Zarejestrowani Postów: 140 Pomógł: 0 Dołączył: 14.01.2017 Ostrzeżenie: (0%) |
Pewnie z braku wiedzy
Wszystko co robię staram się robić sam, albo znaleźć i dopasować, niestety robię to hobbystycznie więc gdzieniegdzie wiedza jest, a gdzieniegdzie jej nie ma Ten post edytował topcio 20.04.2023, 11:01:18 |
|
|
Wersja Lo-Fi | Aktualny czas: 26.09.2024 - 17:37 |