Click here to Skip to main content
15,913,685 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Resizing TextArea Pin
Roger Wright7-Oct-02 3:29
professionalRoger Wright7-Oct-02 3:29 
GeneralNeed a suggestion! Pin
leppie5-Oct-02 2:15
leppie5-Oct-02 2:15 
GeneralRe: Need a suggestion! Pin
Paul Riley5-Oct-02 4:50
Paul Riley5-Oct-02 4:50 
GeneralRe: Need a suggestion! Pin
leppie5-Oct-02 6:53
leppie5-Oct-02 6:53 
GeneralRe: Need a suggestion! Pin
Paul Riley5-Oct-02 7:21
Paul Riley5-Oct-02 7:21 
GeneralRe: Need a suggestion! Pin
leppie5-Oct-02 8:03
leppie5-Oct-02 8:03 
GeneralRe: Need a suggestion! Pin
Paul Riley5-Oct-02 8:11
Paul Riley5-Oct-02 8:11 
GeneralRe: Need a suggestion! Pin
leppie5-Oct-02 10:25
leppie5-Oct-02 10:25 
<small><b>Paul Riley wrote:</b></small>
<i>If you're passing that as a parameter, you probably need to use document.formName.elements[divName].innerHTML or something like that.</i>

Not necesary Smile | :) I just pass the DIV's ID.

OK but I have a problem Frown | :( Dont know if this has to do with the table tags.

<pre>function MakeReply(elm)
{
elm.style.display = "";

var TABLESTART = "<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\" class=\"Reply\"><tr>";
var FORMSTART = "<form name=\"ReplyForm\" id=\"ReplyForm\" method=post><td>";
var TEXTAREA = "<textarea rows=\"20\" name=\"TextBox1\" id=\"TextBox1\" class=\"ReplyText\"></textarea>";
var FORMEND = "</td></form></tr><tr>";
var SEND = "<td class=\"PostFooter\"><span class=\"Fakelink\" onclick=\"\" onmouseover=\"LinkOn(this)\" onmouseout=\"LinkOff(this)\">Send</span>";
var QUOTE = "<span class=\"Fakelink\" onclick=\"\" onmouseover=\"LinkOn(this)\" onmouseout=\"LinkOff(this)\">Quote</span>";
var CLEAR = "<span class=\"Fakelink\" onclick=\"ClearText(\"TextBox1\")\" onmouseover=\"LinkOn(this)\" onmouseout=\"LinkOff(this)\">Clear</span>";
var TABLEEND = "</td></tr></table>";

var alltext = TABLESTART + FORMSTART + TEXTAREA + FORMEND + SEND + QUOTE + CLEAR + TABLEEND;
alert(alltext);
//alltext = "SOME DUMB TEXT";
elm.innerHTML = alltext;

return false;
}</pre>
[edit] turned off html in this box Smile | :) [edit]
Now the text that I have looks OK in alert box, I just get unknown runtime error in IE. If I uncomment 3rd last line, that text is displayed. Some how there is something wrong...Confused | :confused: Please help Dr Riley Laugh | :laugh:

<i>Give them a chance! Do it for the kittens, dear God, the kittens!</i>
As seen on MS File Transfer: Please enter an integer between 1 and 2.
GeneralRe: Need a suggestion! Pin
Paul Riley5-Oct-02 10:33
Paul Riley5-Oct-02 10:33 
GeneralRe: Need a suggestion! Pin
leppie5-Oct-02 11:06
leppie5-Oct-02 11:06 
GeneralRe: Need a suggestion! Pin
Paul Riley5-Oct-02 11:17
Paul Riley5-Oct-02 11:17 
GeneralRe: Need a suggestion! Pin
leppie5-Oct-02 11:43
leppie5-Oct-02 11:43 
GeneralRe: Need a suggestion! Pin
Paul Riley5-Oct-02 11:57
Paul Riley5-Oct-02 11:57 
GeneralRe: Need a suggestion! Pin
leppie5-Oct-02 12:16
leppie5-Oct-02 12:16 
GeneralRe: Need a suggestion! Pin
Paul Riley5-Oct-02 12:27
Paul Riley5-Oct-02 12:27 
GeneralRe: Need a suggestion! Pin
leppie5-Oct-02 12:48
leppie5-Oct-02 12:48 
GeneralRe: Need a suggestion! Pin
Paul Riley5-Oct-02 13:00
Paul Riley5-Oct-02 13:00 
GeneralRe: Need a suggestion! Pin
leppie5-Oct-02 13:42
leppie5-Oct-02 13:42 
GeneralRe: Need a suggestion! Pin
Paul Riley5-Oct-02 13:52
Paul Riley5-Oct-02 13:52 
GeneralRe: Need a suggestion! Pin
leppie5-Oct-02 15:56
leppie5-Oct-02 15:56 
GeneralRe: Need a suggestion! Pin
Paul Riley6-Oct-02 0:49
Paul Riley6-Oct-02 0:49 
GeneralRe: Need a suggestion! Pin
Paul Riley5-Oct-02 13:22
Paul Riley5-Oct-02 13:22 
GeneralRe: Need a suggestion! Pin
leppie5-Oct-02 14:21
leppie5-Oct-02 14:21 
GeneralRe: Need a suggestion! Pin
Paul Riley5-Oct-02 15:03
Paul Riley5-Oct-02 15:03 
GeneralRe: Need a suggestion! Pin
leppie5-Oct-02 15:35
leppie5-Oct-02 15:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.