Sample page "Add Thread":
http://gwhoops.com/new/
I can't get the text of the text area to post on form submission. I'm using prototype.js and everything else translate just fine (including a non-fckeditor text area). I'm not sure what I'm doing wrong.
Here's the code: (http://gwhoops.com/new/gwscript.js)
function replyMessage()
{var target = 'messageditor';
if (null==$(target))
{new Insertion.Top('message', '<div id="'+target+'"></div>');
var fck = new FCKeditor();
$(target).update('<div id="'+target+'"><form id="PostForm" name="PostForm"><img alt="bball" height="38" src="bball.jpg" width="38" onclick="$(\''+target+'\').hide()">'+fck.CreateHtml()+'<b class="button" onclick="postMessage()">post</b></form></div>');
if ($('user').innerHTML=='GUEST')
{var IP = $('IP').innerHTML;
new Insertion.Top(target, '<h3>You are posting as a guest and your IP address ('+IP+') may be exposed to everyone.</h3>');}}
$(target).show();
$('message').scrollTo();}
Any help at all would be much appreciated. I'm certain it's something small I'm blindly missing. Thanks in advance!
Mon, 09/22/2008 - 17:05
#1