Mikus Posted June 25, 2006 Report Share Posted June 25, 2006 (edited) Ludzu palidziet! Es velos uzzinat ka var izdarit ta kad Submit poga ir "disabeled" lidz bridim kad ir ielikts punktinsh ieksh "radio"(nu tas pats kas vote skriptiem) P.S. Ceru kad sapratisiet ko es tur samurgoju :P Edited June 25, 2006 by Mikus Link to comment Share on other sites More sharing options...
bubu Posted June 25, 2006 Report Share Posted June 25, 2006 Uzliec tam radio buttonam uz onclick eventu submit_poga.enabled=true. Link to comment Share on other sites More sharing options...
Mikus Posted June 25, 2006 Author Report Share Posted June 25, 2006 paldies Link to comment Share on other sites More sharing options...
Mikus Posted June 29, 2006 Author Report Share Posted June 29, 2006 baac... man biku nesanak... nu mana forma ir piemeram shada <form action="lapa.php" method="post"> <input type="radio" name="izvelos" value="jaa" onClick="? ?Nezinu kas te jaraksta!? ?"> <input type="submit" name="submit" value="ok" disabled> </form> plzz uzraksti piemeru ka tur butu jaieraksta... Link to comment Share on other sites More sharing options...
bubu Posted June 29, 2006 Report Share Posted June 29, 2006 Es te jau to uzrakstīju: Uzliec tam radio buttonam uz onclick eventu submit_poga.enabled=true. Link to comment Share on other sites More sharing options...
Mikus Posted June 29, 2006 Author Report Share Posted June 29, 2006 nu bet tape jau jautaju jo man ta nesanak <form action="lapa.php" method="post"> <input type="radio" name="izvelos" value="jaa" onClick="poga.enabled=true"> <input type="submit" name="poga" value="ok" disabled> </form> a mosh tur vajag nevis on click bet kautko citu... es teo4 shito lietu ar tiem eventiem nezinu Link to comment Share on other sites More sharing options...
teror Posted June 29, 2006 Report Share Posted June 29, 2006 šitā valadzētu strādāt <form action="lapa.php" method="post"> <input type="radio" name="izvelos" value="jaa" onClick="document.getElementById('poga').disabled=false" /> <input type="submit" id="poga" name="poga" value="ok" disabled="disabled" /> </form> Link to comment Share on other sites More sharing options...
Mikus Posted June 29, 2006 Author Report Share Posted June 29, 2006 nu vo tagat viss iet ka pa sviestu :D paldies velreiz Link to comment Share on other sites More sharing options...
nemec Posted June 29, 2006 Report Share Posted June 29, 2006 document.getElementById('poga').disabled=false tam tachu browseru probleemas var buuut Link to comment Share on other sites More sharing options...
bubu Posted June 29, 2006 Report Share Posted June 29, 2006 Tikai tad, ja lieto IE5 vai vecu NS. Citiem browseriem (kuri supportē JS) nav pilnīgi nekādu problēmu ar DOM. Link to comment Share on other sites More sharing options...
nemec Posted June 29, 2006 Report Share Posted June 29, 2006 Nevajag taisīt bezjēdzīgas QUOTEs nu es izmantoju taadu suudu function returnObjById( id ) { if (document.getElementById) var returnVar = document.getElementById(id); else if (document.all) var returnVar = document.all[id]; else if (document.layers) var returnVar = document.layers[id]; return returnVar; } kas tu gribi teikt, ka esu novecojis?? Link to comment Share on other sites More sharing options...
bubu Posted June 29, 2006 Report Share Posted June 29, 2006 Nu ja tev vajag atbalstīt IE5 un vecus NS, tad jā tā var. Bet citādā ziņā pilnīgi bezjēdzīgi. Pie tam, daudz labāk pie tam būtu šādā veidā (lai katru reizi nav lieki ifi jāizpilda): if (document.getElementById) { returnObjById = function(id) { return document.getElementById(id); } } else if (document.all) { returnObjById = function(id) { return document.all[id]; } } else if (document.layers) { returnObjById = function(id) { return document.layers[id]; } } Link to comment Share on other sites More sharing options...
Recommended Posts