renathy Posted August 23, 2010 Report Posted August 23, 2010 $.post("leave_comment_ajax.php", $(this).serialize(), function(data)... un $.post("leave_comment_ajax.php", function(data)... Tikko saku macities jquery... Kada atskiriba starp augstakminetajiem, no oficiala apraksta nevaru izprast... Quote
Леший Posted August 23, 2010 Report Posted August 23, 2010 Pirmā tiek padoti dati ar post, otrā - nē. Otra koda jēgu īsti nesaprotu. Quote
renathy Posted August 23, 2010 Author Report Posted August 23, 2010 Varetu ludzu preciziet - $(this).serialize() jegu? Respektivi - pirmais mainigais $post-am ir skripta nosaukums, treshais - atdotie dati, bet ko dara shis otrais ($(this).serialize())? Quote
rATRIJS Posted August 23, 2010 Report Posted August 23, 2010 http://api.jquery.com/serialize/ Iisumaa - tas izveidos tev query string'u automaatiski no visiem formas laukiem. Nebuus tev jaaraksta, piemeeram par1=val1&par2=val2&...&parn=valn vai { par1: val1, par2: val2, ..., parn: varn } Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.