ArnisR Posted April 4, 2010 Report Share Posted April 4, 2010 (edited) Kur var atrast kādu pavisam vienkāršu AJAX skriptu HTML formas apstrādei? Galvenais, lai datu apstrāde notiktu nepārlādējot citas lapas... varbūt kāds var palīdzēt? Edited April 4, 2010 by ArnisR Quote Link to comment Share on other sites More sharing options...
m8t Posted April 4, 2010 Report Share Posted April 4, 2010 (edited) http://www.tizag.com/ajaxTutorial/ajax-mysql-database.php Edit: laikam nepareiza atbilde... Atrast var googlē Edited April 4, 2010 by m8t Quote Link to comment Share on other sites More sharing options...
emsy Posted April 5, 2010 Report Share Posted April 5, 2010 (edited) Reāli formu vajag vispirms ar JS apstrādāt un tad ar AJAX tos nosūtīt attiecīgajam dokumentām. Es personīgi izvelku katru teksta lauku pēc id, bet gan jau ir arī kāds vieglāks veids, vai ērtāks :). Edited April 5, 2010 by emsy Quote Link to comment Share on other sites More sharing options...
ezis Posted April 5, 2010 Report Share Posted April 5, 2010 nuu ar to pasu jQuery var.. ka jau emsy teica, panjem lauka datus pec id, tad nosuti uz kadu php failu, kur talak tos datus saglabas/apstrdas un gala doas atbildi vai nedos.. ka gribi. Quote Link to comment Share on other sites More sharing options...
xPtv45z Posted April 5, 2010 Report Share Posted April 5, 2010 ar jquery, nevajag katru lauku ņemt atsevišķi, var $('forma').serialize() un būs visi dati ko sūtīt. Quote Link to comment Share on other sites More sharing options...
emsy Posted April 5, 2010 Report Share Posted April 5, 2010 ar jquery, nevajag katru lauku ņemt atsevišķi, var $('forma').serialize() un būs visi dati ko sūtīt. It kā jau es izmantoju document.getElementById("id").value;, ar jQueryu.... nebiju tik tālu aizdomājies ;) 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.