Hi.
I have a forum that need a inline reply container.
I can use this with a regular form and send text the normal way.
But i need to replace the textarea with fck area.
How do i do this.
The form is making a "div" container visible.
Here is the code from php page.
Here is the code with regular form.
I have a forum that need a inline reply container.
I can use this with a regular form and send text the normal way.
But i need to replace the textarea with fck area.
How do i do this.
The form is making a "div" container visible.
Here is the code from php page.
Here is the code with regular form.
function vis_svar(id, smil, snor_id, gruppe_id) {
var e = document.getElementById(id);
var f = document.getElementById(smil);
if(e.style.display == 'block')
{
e.style.display = 'none';
f.style.display = 'none';
}
else
{
e.style.display = 'block';
f.style.display = 'block';
}
// form elements
parentElement = document.getElementById(id)
parentElement.innerHTML = ""
// Create form
myForm = document.createElement('FORM')
myForm.method = 'post'
myForm.action = 'forum_post.php?' + snor_id +'&'+ gruppe_id
myForm.setAttribute('Name', 'save_post')
myForm.id = 'save_post'
// Create text area
textArea = document.createElement('TEXTAREA')
textArea.appendChild(document.createTextNode(''))
textArea.setAttribute('Name', 'PostText')
textArea.setAttribute('ID', 'PostText')
textArea.style.display = 'block'
textArea.style.width = '500px'
textArea.style.height = '150px'
myForm.appendChild(textArea)
// Create submit button
newButton = document.createElement('INPUT')
newButton.type = 'submit'
newButton.setAttribute('Name', 'save_post')
newButton.value = 'Send posten'
newButton.style.display = 'block'
myForm.appendChild(newButton)
// insert form
parentElement.appendChild(myForm)
// IE fix
if(navigator.appVersion.indexOf("MSIE") != -1) {
parentElement.innerHTML = parentElement.innerHTML
if(navigator.appVersion.indexOf("MSIE 6.0") != -1) {
multiOptions = document.getElementById('myDropDownMulti').options
for(i=0; i<multiOptions.length; i++) {
if(i==1 || i==3) { multiOptions[i].setAttribute('selected', 'true') }
}
}
}
}

Re: FCKeditor inside a javascript form.
Re: FCKeditor inside a javascript form.
I can create a FCKeditor area to be visible, but i can't get this inside the form.
The FCK area is created outside the fom code, and i need to get the code created for each time the reply button is clicked.
Look at the code i have posted here in the first post..