keiby Posted September 9, 2004 Report Share Posted September 9, 2004 (edited) ir kods: <select name="d1"> <option value="1">viens</option> <option value="2">divi</option> </select> <? switch ($_GET['d1']){ case "1":{ echo "viens"; break; } case "2":{ echo "divi"; break; } } ?> ceru, ka saprataat ko es esmu domaajis. vajag lai nomainaas texc blakus, onthefly. neizmantojot javascript vai form submit. ir tas vispaar iespeejams ? Edited September 9, 2004 by keiby Link to comment Share on other sites More sharing options...
bubu Posted September 9, 2004 Report Share Posted September 9, 2004 Bez JS, hmm, diez vai varēs. HTML pēc dabas ir statisks, un CSS ar diez vai te līdzēs. A kas tev pret JS? Link to comment Share on other sites More sharing options...
keiby Posted September 9, 2004 Author Report Share Posted September 9, 2004 A kas tev pret JS? ar JS es zinu kaa to izdariit. gribeeju ar php to noveidot. Link to comment Share on other sites More sharing options...
rudzis Posted September 9, 2004 Report Share Posted September 9, 2004 (edited) Manupraat bez submita vai js tas vispaar nav izdaraams. Edited September 9, 2004 by rudzis Link to comment Share on other sites More sharing options...
bubu Posted September 9, 2004 Report Share Posted September 9, 2004 (edited) :D vienā vietā tu raksti: neizmantojot ... form submit. ir tas vispaar iespeejams ?un otrā atkal:gribeeju ar php to noveidot. Ai, ai, ka mēs nesaprotam klienta-servera koncepciju! t.b. kas darās klienta galā un kas servera! ;) Edited September 9, 2004 by bubu Link to comment Share on other sites More sharing options...
keiby Posted September 9, 2004 Author Report Share Posted September 9, 2004 Ai, ai, ka mēs nesaprotam klienta-servera koncepciju! t.b. kas darās klienta galā un kas servera! ;) pankuuka, vareetu padomaat, ka nesaprati. Link to comment Share on other sites More sharing options...
bubu Posted September 9, 2004 Report Share Posted September 9, 2004 pankuuka, vareetu padomaat, ka nesaprati. es kautko nesapratu? Link to comment Share on other sites More sharing options...
keiby Posted September 9, 2004 Author Report Share Posted September 9, 2004 es kautko nesapratu? ko tieshi ? labi, speshalii, prieksh teviim. gribu izdariit to, ko mineju savaa pirmajaa postaa, izmantojot, php, bet neizmantojot formsubmit un JS. Link to comment Share on other sites More sharing options...
bubu Posted September 9, 2004 Report Share Posted September 9, 2004 Nu tu nejēdz servera-klienta tehnoloģijas! php darbojas servera daļā! to ko klients redz browserī - klienta galā! Tu nevari ar php on-fly mainīt informāciju browserī. Link to comment Share on other sites More sharing options...
keiby Posted September 9, 2004 Author Report Share Posted September 9, 2004 Tu nevari ar php on-fly mainīt informāciju browserī. ja tu shito buutu pateicis jau savaa primajaa postaa, tad mees buutu izvairiijushies no shitaas 'saraxtes' Link to comment Share on other sites More sharing options...
bubu Posted September 9, 2004 Report Share Posted September 9, 2004 Tas tāpēc, ka īsti nesapratu, ar ko tu ko gribi panākt. Link to comment Share on other sites More sharing options...
Klez Posted September 10, 2004 Report Share Posted September 10, 2004 S.W.I.E.S.C :) Link to comment Share on other sites More sharing options...
Recommended Posts