Pentiums Posted April 28, 2009 Report Share Posted April 28, 2009 Sveiki, te kods http://paste.php.lv/beef4178b0573f381f8a81...lang=javascript Uzspiežot uz jaunā iegūtā teksta gribu atgriezt sākotnējo tekstu, kas tur jāpapildina lai to izdarītu? Quote Link to comment Share on other sites More sharing options...
codez Posted April 28, 2009 Report Share Posted April 28, 2009 Es ieteiktu izmantot jquery, tad šāds kods, kurā tas viss strādā arī uz visām šūnām, izskatītos šādi: http://paste.php.lv/b71594c40892a3cbaf730d...lang=javascript Quote Link to comment Share on other sites More sharing options...
Pentiums Posted April 28, 2009 Author Report Share Posted April 28, 2009 liels paldies, es jau skatījos arī jquery tikai neatradu ko vajadzēja, laikam miega trūkums! :) Quote Link to comment Share on other sites More sharing options...
Pentiums Posted April 28, 2009 Author Report Share Posted April 28, 2009 Bet kā ar jquery katram elementam padot savus parametrus priekš ajax.php faila? Quote Link to comment Share on other sites More sharing options...
codez Posted April 28, 2009 Report Share Posted April 28, 2009 (edited) ieliec katram td savu id un tad to padod par parametru ajax postā, piemēram, tā: http://paste.php.lv/0259b85c872c86a722c01b...lang=javascript P.S. Ja ajax dati katru reizi var būt savādāki, tad labāk taisīt $.post, nevis $.get, lai nav problēmas ar browser cache. Edited April 28, 2009 by codez Quote Link to comment Share on other sites More sharing options...
Pentiums Posted April 28, 2009 Author Report Share Posted April 28, 2009 Sanāca, paldies vēlreiz! :) 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.