alins Posted October 7, 2005 Report 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ē
goldy Posted October 7, 2005 Report 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
Delfins Posted October 7, 2005 Report Posted October 7, 2005 href="#" onclick="java script:if(confirm('delete?')) this.href='_te_ir_istais_url_';"
alins Posted October 7, 2005 Author Report 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
v3rb0 Posted October 7, 2005 Report Posted October 7, 2005 kaapeec? goldy variants ar smuku konfirmaacijas logu no servera pirms dzeesanas ir daudz elegantaaks nekaa javascripta confirm.
alins Posted October 7, 2005 Author Report Posted October 7, 2005 goldy ideja jau ir pareiza un akcepteejama, bet jautaajums(teema) ir par javascript :ph34r:
Recommended Posts