ezs Posted January 17, 2006 Report Share Posted January 17, 2006 Itkā pavisam veinkārša lieta, bet neesmu JavaScript specialists tādēļ vaidāju jūsu palīdzību. Ir formas elaments <input type="text" name="sha" onchange="" /> un iekš tā onchange vajadzētu kādu f-ciju, kura izsauc submit. Paldies jau iepriekš Link to comment Share on other sites More sharing options...
v3rb0 Posted January 17, 2006 Report Share Posted January 17, 2006 document.getElementById("formas_id").submit(); Link to comment Share on other sites More sharing options...
ezs Posted January 17, 2006 Author Report Share Posted January 17, 2006 paldies, bet šādi nestrādā: <input type="text" name="sha" onchange="document.getElementById("me").submit();"/> Link to comment Share on other sites More sharing options...
Klez Posted January 17, 2006 Report Share Posted January 17, 2006 <forma name="me" id="me" action="post"> Link to comment Share on other sites More sharing options...
bubu Posted January 17, 2006 Report Share Posted January 17, 2006 (edited) Ja nestrādā, tad nozīmē, ka kādu kļūdu pasaka? (iekš Javascript console) vai ko? Ja pasaka kautko, tad pasaki te citiem arī. Formas id ir "me" ? Edit: Klez, priekškam name? Edited January 17, 2006 by bubu Link to comment Share on other sites More sharing options...
ezs Posted January 17, 2006 Author Report Share Posted January 17, 2006 atradu vainu vaina bija pēdiņas, bet tik un tā nenotiek kā es vēlētos lai notiktu izmaiņas jāieklikšķina kkur ar peli t.i. tās nenotiek automātiksi, kamēr tiek aizpildīc input lauks. Paldies jums vēlreiz Link to comment Share on other sites More sharing options...
v3rb0 Posted January 17, 2006 Report Share Posted January 17, 2006 onchange events ar tāds ir - notiek tad kad kontroles vertiba ir izmainita un taa zaudee fokusu. skaties uz onkeydown, bet drosi vien tev vajadzēs arī taimeru, ja, piem 5sec nekas nav nospiests tad submito. Link to comment Share on other sites More sharing options...
Recommended Posts