renathy Posted August 23, 2010 Report Share 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 Link to comment Share on other sites More sharing options...
Леший Posted August 23, 2010 Report Share Posted August 23, 2010 Pirmā tiek padoti dati ar post, otrā - nē. Otra koda jēgu īsti nesaprotu. Quote Link to comment Share on other sites More sharing options...
renathy Posted August 23, 2010 Author Report Share 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 Link to comment Share on other sites More sharing options...
rATRIJS Posted August 23, 2010 Report Share 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 Link to comment Share on other sites More sharing options...
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.