andrisp Posted May 26, 2005 Report Share Posted May 26, 2005 ir forma kurai ir divas apstiprinaashanas pogas, atkariibaa no nospiestaas pogas tiek nosuutiita atskjiriiga informaacija. Probleemaa ir, ka browseris kaa defaulto pogu ieziimee to, kas ir html kodaa ir pirmaa. Tipa ievadot infu un nospiezhot enter aktivizeejaas pirmaa poga. Kaa lai uztaisa lai defaultaa poga ir otra ? Link to comment Share on other sites More sharing options...
рпр Posted May 26, 2005 Report Share Posted May 26, 2005 he. atradis arii probleemu. meegjini varbuut ar css samainiit taas pogas vietaam, pirms tam htmlaa samainot ar vietaam. iisteniiba nav ne jausmas kaa brouzeriem ir jaauzvedas shajaa situaacijaa. Link to comment Share on other sites More sharing options...
Venom Posted May 26, 2005 Report Share Posted May 26, 2005 not sure, bet varbūt tabindex palīdzēs? Link to comment Share on other sites More sharing options...
andrisp Posted May 26, 2005 Author Report Share Posted May 26, 2005 he. atradis arii probleemu.meegjini varbuut ar css samainiit taas pogas vietaam, pirms tam htmlaa samainot ar vietaam. iisteniiba nav ne jausmas kaa brouzeriem ir jaauzvedas shajaa situaacijaa. 17989[/snapback] sen jau taa buutu izdariijis, bet interfeiss neljauj to dariit. Link to comment Share on other sites More sharing options...
andrisp Posted May 26, 2005 Author Report Share Posted May 26, 2005 not sure, bet varbūt tabindex palīdzēs? 17990[/snapback] nepaliidz.. Link to comment Share on other sites More sharing options...
andrisp Posted May 26, 2005 Author Report Share Posted May 26, 2005 a kaa ir ar nested forms ? cik saprotu neesot labi un pat laikam nevar.. iedomaajos, ka vareetu <form> <input type='text'> <form> <input type='text'> <input type='submit'> </form> <input type='submit'> </form> <form> Link to comment Share on other sites More sharing options...
andrisp Posted May 26, 2005 Author Report Share Posted May 26, 2005 ai besii - nestraadaa Link to comment Share on other sites More sharing options...
Grey_Wolf Posted May 26, 2005 Report Share Posted May 26, 2005 ir forma kurai ir divas apstiprinaashanas pogas, atkariibaa no nospiestaas pogas tiek nosuutiita atskjiriiga informaacija. Probleemaa ir, ka browseris kaa defaulto pogu ieziimee to, kas ir html kodaa ir pirmaa. Tipa ievadot infu un nospiezhot enter aktivizeejaas pirmaa poga. Kaa lai uztaisa lai defaultaa poga ir otra ? 17987[/snapback] izmanto JavaScripta fokuseeshanu - kad skripts ievadiits nofokusee uz vajadziigo pogu - defoltaa vajadzeetu buut ka ir fokuss uz 1 submit... ja nekljuudos tad -focus(elements) Buutu jaastraadaa.... Link to comment Share on other sites More sharing options...
andrisp Posted May 26, 2005 Author Report Share Posted May 26, 2005 arii iedomaajos ka kautkaa uz javascript vareetu, bet iisti nesapratu kaa tu to domaa Link to comment Share on other sites More sharing options...
Delfins Posted May 26, 2005 Report Share Posted May 26, 2005 (edited) man nostrādāja vismaz :) <html> <head> <style> #reverse input { float: right; margin-left: 5px; } </style> </head> <body> <form> <input type="text"> <div id="reverse"> <input type="submit" value="Save & Close" onclick="alert('save close');"> <input type="submit" value="Apply" onclick="alert('apply');"> </div> </form> </body> </html> Edited May 26, 2005 by Delfins Link to comment Share on other sites More sharing options...
Grey_Wolf Posted May 26, 2005 Report Share Posted May 26, 2005 arii iedomaajos ka kautkaa uz javascript vareetu,bet iisti nesapratu kaa tu to domaa 17997[/snapback] nu ideja apmeeram shaada: ja poga_neder ir onfocus=blabla() function blabla { blur(); un te fokuseejamies uz poga_der } nu vareetu buut apmeeram shaadi... Link to comment Share on other sites More sharing options...
bubu Posted May 26, 2005 Report Share Posted May 26, 2005 (edited) Nesaprotu, kamdēļ tev neder pnp risinājums? Man šitais strādā: <html> <head> <style> input[name="poga1"] { position: absolute; left: 70px; } input[name="poga2"] { position: absolute; left: 0px; } </style> </head> <body> <form onsubmit="return false"> <input type="text" value="kautkāds formas lauks, pamēģini te nospiest enter" size="100"/> <div> <input type="submit" name="poga1" value="poga1" onclick="alert(this.name)" /> <input type="submit" name="poga2" value="poga2" onclick="alert(this.name)" /> </div> </form> </body> </html> Pamēģini bez style daļas (tb poga1 būs kreisā pusē). Un tad ar style daļu poga1 būs labajā pusē). Edited: Delfins pasteidzās :) Edited May 26, 2005 by bubu Link to comment Share on other sites More sharing options...
Delfins Posted May 26, 2005 Report Share Posted May 26, 2005 Edited: Delfins pasteidzās :) nu tač kādam jārisina problēma Link to comment Share on other sites More sharing options...
v3rb0 Posted May 26, 2005 Report Share Posted May 26, 2005 not sure, bet varbūt tabindex palīdzēs? 17990[/snapback] nepaliidz.. 17992[/snapback] kas kur kā! es nesen tieši ar tabindexiem liku.. viss strādā, pat laikam uz visiem browseriem - vismaz nesūdzas neviens:) Tiešām saliki tabindexu pareizā secībā un visām kontrolēm, ne tikai pogām? Link to comment Share on other sites More sharing options...
Delfins Posted May 26, 2005 Report Share Posted May 26, 2005 not sure, bet varbūt tabindex palīdzēs? 17990[/snapback] nepaliidz.. 17992[/snapback] kas kur kā! es nesen tieši ar tabindexiem liku.. viss strādā, pat laikam uz visiem browseriem - vismaz nesūdzas neviens:) Tiešām saliki tabindexu pareizā secībā un visām kontrolēm, ne tikai pogām? 18010[/snapback] pamēģini kad enter spied uz type=text inputa... nevis kad ar TAB pāriet uz pogām... Link to comment Share on other sites More sharing options...
Recommended Posts