Keşfet

XF2.3's XF.ajax behaves differently depending on HTTP method for handling data argument

XFdestek

Kurucu Üye
Katılım
25 May 2014
Mesajlar
4,476
Tepkime puanı
284
Konum
Türkiye
Web sitesi
fivetu.xyz
In XF2.2, XF.ajax supported GET method using $(form).serializeArray() for the data argument. In XF2.3 this fails when using the replacement method XF.Serializer.serializeArray.

Both versions of serializeArray produce the same output format ie;
JSON:

Kod:
Lütfen içeriği görebilmek için Giriş yap yada Kayıt ol to view codes content!

In XF2.3, XF.ajax use URLSearchParams to encode the arguments for GET which doesn't support serializeArray output format.
JavaScript:

async ajax (method, url, data = {}...

Lütfen içeriği görebilmek için Giriş yap yada Kayıt ol
 

Konu görüntüleyen kullanıcılar

Geri
Üst Alt