Non ho scritto niente in php, cmq la funzione che pensavo di usare è questa:
codice:
_ if (window.getSelection)
___{
____txt_select = window.getSelection();
___}
__else if (document.getSelection)
__{
_ __txt_select = document.getSelection();
___}
__else if (document.selection)
___{
__ _txt_select = document.selection.createRange().text;
___}
if(txt_select.length>0)
{
alert("prova!");
}
Non sono sicuro che il codice funzione, in ogni caso la mia textarea è in realtà un iframe trasformato in textarea posso inserire l'evento onkeyup?