alins Posted October 7, 2005 Report Share Posted October 7, 2005 piemeeram ir links <a href=lapa?action=dzeest&id=blabla>dzeest</a> ja uzspiezh, tad apstraadaa linku un izdzeesh no baazes attieciigo ierakstu ?? ir iespeejams, ka uzspiezhot uz linka paraadaas piem kkaads logs ar jautaajumu - Vai tieshaam...? un iespeejas Jā - Nē Link to comment Share on other sites More sharing options...
goldy Posted October 7, 2005 Report Share Posted October 7, 2005 par JavaScript nezinu, bet ar PHP tas darās šādi <a href=lapa.php?id=blabla>dzeest</a> kur lapa.php satur formu ar pogām Jā, Nē un kaut kādā veidā pieliktu id (sesija cookie, input etc) un tad nu pēc attiecīgās pogas nospiešanas darām ko vajag Link to comment Share on other sites More sharing options...
Delfins Posted October 7, 2005 Report Share Posted October 7, 2005 href="#" onclick="java script:if(confirm('delete?')) this.href='_te_ir_istais_url_';" Link to comment Share on other sites More sharing options...
alins Posted October 7, 2005 Author Report Share Posted October 7, 2005 href="#" onclick="java script:if(confirm('delete?')) this.href='_te_ir_istais_url_';" 24244[/snapback] paldies!?! tas ir tas, kas vajadziigs! to goldy -> par tavu atbildi bishki iereecu, nenjem ljaunaa :P Link to comment Share on other sites More sharing options...
v3rb0 Posted October 7, 2005 Report Share Posted October 7, 2005 kaapeec? goldy variants ar smuku konfirmaacijas logu no servera pirms dzeesanas ir daudz elegantaaks nekaa javascripta confirm. Link to comment Share on other sites More sharing options...
alins Posted October 7, 2005 Author Report Share Posted October 7, 2005 goldy ideja jau ir pareiza un akcepteejama, bet jautaajums(teema) ir par javascript :ph34r: Link to comment Share on other sites More sharing options...
Recommended Posts