ok, sinceramente non so cosa sia successo, fatto sta che l'ho modificato così
.....<div class="ShortAnswer" id="Q_0_SA"><form method="post" action="" onsubmit="return false;"><textarea name="Q_0_Guess"" cols="60" rows="3"></textarea>
........
e il campo di testo si è allargato![]()
ma adesso sorge un altro problema (non odiatemi, per favore...)in questa textarea deve essere possibile inserire dei caratteri con una tastiera a video. la testiera c'è, ma i caratteri non vengono più inseriti. mi sapete dire casa devo modificare?
questo è lo script della textarea:
[list=1]
<li class="QuizQuestion" id="Q_0"><p class="QuestionText">1. Viktor Gennadevič entrò in cucina e chiese alla moglie se aveva/avesse comprato 10 mele e 4 pomodori. Lei rispose che era stata al mercato, ma aveva dimenticato di comprare frutta e verdura.</p><div class="ShortAnswer"
id="Q_0_SA"><form method="post" action="" onsubmit="return false;"><textarea name="Q_0_Guess"" cols="60" rows="3"></textarea>
<button class="FuncButton" onfocus="FuncBtnOver(this)" onblur="FuncBtnOut(this)" onmouseover="FuncBtnOver(this)" onmouseout="FuncBtnOut(this)"
onmousedown="FuncBtnDown(this)" onmouseup="FuncBtnOut(this)" onclick="CheckShortAnswer(0)">Check</button><button class="FuncButton"
onfocus="FuncBtnOver(this)" onblur="FuncBtnOut(this)" onmouseover="FuncBtnOver(this)" onmouseout="FuncBtnOut(this)"
onmousedown="FuncBtnDown(this)" onmouseup="FuncBtnOut(this)" onclick="ShowHint(0)">Hint</button><button class="FuncButton"
onfocus="FuncBtnOver(this)" onblur="FuncBtnOut(this)" onmouseover="FuncBtnOver(this)" onmouseout="FuncBtnOut(this)"
onmousedown="FuncBtnDown(this)" onmouseup="FuncBtnOut(this)" onclick="ShowAnswers(0)">Show answer</button></form></div>
e questa è la tastiera
<div class="Keypad">
<button onclick="TypeChars('\u0410'); return false;">А</button><button onclick="TypeChars('\u0430'); return false;">а</button><button onclick="TypeChars('\u0431'); return false;">б</button><button onclick="TypeChars('\u0412'); return false;">В</button><button onclick="TypeChars('\u0432'); return false;">в</button><button onclick="TypeChars('\u0413'); return false;">Г</button>....ecc ecc
mi sembra di capire he l'onclick attiva la funzione Typechars che è questa:
function TypeChars(Chars){
if (CurrBox != null){
// if (CurrBox.style.display != 'none'){
CurrBox.value += Chars;
// }
}
}
forse è qui che bisogna correggere qualcosa?
grazie ancora,
dani![]()