Dvielis Posted March 22, 2006 Report Share Posted March 22, 2006 Lapā ir links uz attiecīgo tēmu (<a href="tema.php?id=$id">Tēmas nosaukums</a>), pieņemsim, ka tēmas ID=10. Kā ar javascript panākt, lai uzspiežot uz šī linka, viņš izdzēš to tēmu ārā no datubāzes! Link to comment Share on other sites More sharing options...
v3rb0 Posted March 22, 2006 Report Share Posted March 22, 2006 (edited) ar js (clienta puses) nekā! Edited March 22, 2006 by v3rb0 Link to comment Share on other sites More sharing options...
Grey_Wolf Posted March 22, 2006 Report Share Posted March 22, 2006 Dvielis--> izvada tekstu apmeeram: "Ludzu pazvaniet pa tel..... un paluudziet lai sysadmins nodzeesh ID nr..." -------- nu kaa tu iedomaajis savaadaak? JS straadaa klienta galaa... (faktiski klienta kompis tajaa briidi var buut fiziski atvienots no Ineta) --------- Var uztaisiit 1X1 px ifreimu un norefreshot to ar doto ID .... kur tiek palaists PHP (perl...) skripts kas tad uz servera izdzeesh to ID un atgriezj pazinjojumu par veiksmiigu/neveiksmiigu iznaakumu... Link to comment Share on other sites More sharing options...
andrisp Posted March 22, 2006 Report Share Posted March 22, 2006 Var uztaisiit 1X1 px ifreimu un norefreshot to ar doto ID .... kur tiek palaists PHP (perl...) skripts kas tad uz servera izdzeesh to ID un atgriezj pazinjojumu par veiksmiigu/neveiksmiigu iznaakumu... var arī Ajax tech izmantot Link to comment Share on other sites More sharing options...
Stopp Posted March 22, 2006 Report Share Posted March 22, 2006 andrisp, arī Ajax taču galu galā izsauc PHP, vai tad ne ? Link to comment Share on other sites More sharing options...
andrisp Posted March 23, 2006 Report Share Posted March 23, 2006 nu jā; ar pašu javascript ne vella neko nevarēs izdzēst no datubāzes :) Link to comment Share on other sites More sharing options...
Recommended Posts