using xmlhttp (ajax), am unable to get values of the textarea i am using fckeditor for.
i'll initiate as such:
sBasePath = "/FCKeditor/"
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = sBasePath
oFCKeditor.ToolbarSet = "Basic"
oFCKeditor.Width = "100%"
oFCKeditor.Height = "500"
oFCKeditor.Value = description
oFCKeditor.Create "description"
IF there is an existing value of description, it will be loaded into the textarea.
however, when i go to process the form via xmlhttp, the value is either empty (if there was not value to begin with) or it has what was initially loaded.
in other words, after loading the page, any content i'll add to the textarea is not "collected".
again, i'm using xmlhttp as my form process method
onclick="processForm('edit_file','edit_file','file_listing');return false;"
which goes to this:
function processForm(formName,action,div_to_update,nextAction)
{
var queryString;
var xString;
var formLength
formLength = eval("document." + formName + ".elements.length");
for (var i=0; i<formLength; i++)
{
if ((eval("document." + formName + ".elements[i].type") == 'checkbox' && eval("document." + formName + ".elements[i].checked")) || eval("document." + formName + ".elements[i].type") != 'checkbox')
{
elementName = eval("document." + formName + ".elements[i].name");
valu = eval("document." + formName + ".elements[i].value");
xString = elementName + "=" + valu;
//alert(xString);
if (!queryString)
{
queryString = xString;
}else{
queryString = queryString + "&" + xString;
}
}
}
var pattern_1 = /\r\n|\r|\n/g;
var pattern_2 = / /g;
//var MyNewString=MyString.replace(pattern,"_");
queryString = queryString.replace(pattern_1, "<br />");
queryString = queryString.replace(pattern_2, "%20");
makeRequest("_includes/xmlhttp.asp?action=" + action,"POST",div_to_update,queryString,nextAction);
}
sorry for the lenghty post, any suggestions are appreciated
Wed, 02/08/2006 - 10:13
#1