daleader Posted January 28, 2004 Report Share Posted January 28, 2004 veel viens dumsh jaut. Vai vaar uzlikt taa kad piem. tu uzpied uz pogas un ieliekas textareaa kaads texts ja var tad kaa Link to comment Share on other sites More sharing options...
hu_ha Posted January 28, 2004 Report Share Posted January 28, 2004 (edited) veel viens dumsh jaut. Vai vaar uzlikt taa kad piem. tu uzpied uz pogas un ieliekas textareaa kaads texts ja var tad kaa <form method="post"> <?php if (isset($_POST['poga'])) { $txt="aaa"; } else $txt=""; ?> <textarea name="" <?=$txt";?></textarea> <input type="submit" name="poga"/> </form> lapa refreshojas un tev buus textarea simboli "aaa" ja gribi bez refresha, tad jaaizmanto javascript - onclick eventi utt (tas vairs nav php :) ) Edited January 28, 2004 by hu_ha Link to comment Share on other sites More sharing options...
Gacha Posted January 28, 2004 Report Share Posted January 28, 2004 Un kaa to pashu var izdarit ar javascript, bet taa lai nerefreshojas? Prieksh smaidinju ielikshanas! Link to comment Share on other sites More sharing options...
hu_ha Posted January 28, 2004 Report Share Posted January 28, 2004 Un kaa to pashu var izdarit ar javascript, bet taa lai nerefreshojas? Prieksh smaidinju ielikshanas! nu to tak var apstiities jebkuraa vietaa, kur taads pasaakums ir, piem, no hackers.lv ceru, ka nepaarkaapju autortiesiibaz: function smile(val) { var el = document.getElementById('comment_text'); val = ' <smile>' + val + '</smile>'; if(el) { el.focus(); if(el.createTextRange) { var range = document.selection.createRange(); range.text = val; } else el.value += val; } } un tad attieciigi izsauc <span onClick="smile('3');"><img src="img/smiles/action-smiley-024.gif" alt="Ratatataaa" class="smile" border="0" width="15" height="15"></span> ---------------- kods citeets no hackers.lv foruma Link to comment Share on other sites More sharing options...
рпр Posted January 29, 2004 Report Share Posted January 29, 2004 tam buttonam, kas pievieno tekstu tekst arejai jaapieliek klaat parametrs onCLick, kur var rakstiit javaskriptu, kas ieraksta tavaa textareaa kautkaadu tekstu. piemeeram <textarea name="manatekstaaareja"></atextarea> <inupt type="button" onClick="document.manaforma.manatekstaaareja.value='teksts, kas ieliekaas nos';"> Link to comment Share on other sites More sharing options...
Recommended Posts