i have this xml code that brings in data from xml how can i have it bring in the data into fckeditor.
i want to input text from an xml file into here.
oFCKeditor.Value = 'This is some <B>sample text</B>.' ;
this line inports the xml content
td_page_content.innerHTML=xmldso_list.recordset("Page_Content")
so i want to do something like this.
oFCKeditor.Value = ***td_page_content.innerHTML=xmldso_list.recordset("Page_Content")*** ;
but that dosent work.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
cheers aron.
i want to input text from an xml file into here.
oFCKeditor.Value = 'This is some <B>sample text</B>.' ;
this line inports the xml content
td_page_content.innerHTML=xmldso_list.recordset("Page_Content")
so i want to do something like this.
oFCKeditor.Value = ***td_page_content.innerHTML=xmldso_list.recordset("Page_Content")*** ;
but that dosent work.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<TITLE>FCKeditor - Javascript Test Page</TITLE>
<SCRIPT language="javascript" src="../fckeditor.js"></SCRIPT>
</HEAD>
<BODY>
<xml id="xmldso_list" src="Content.xml"></xml>
<form action="TestSubmit.asp" target="_blank" method="post" language="javascript">
FCKeditor - Default Toolbar Set<BR>
<SCRIPT language="javascript">
function testclick(field)
{
var row=field.rowIndex
xmldso_list.recordset.absoluteposition=row
td_id.innerHTML=xmldso_list.recordset("id")
td_page_content.innerHTML=xmldso_list.recordset("Page_Content")
}
<!--
var oFCKeditor ;
oFCKeditor = new FCKeditor('EditorDefault') ;
oFCKeditor.Value = 'This is some <B>sample text</B>.' ;
oFCKeditor.Config['StyleNames'] = ';Style 1;Style 2; Style 3' ;
oFCKeditor.Config['ToolbarFontNames'] = ';Arial;Courier New;Times New Roman;Verdana' ;
oFCKeditor.Create() ;
//-->
</SCRIPT>
<BR>
<BR>
<INPUT type="submit" value="Submit Data">
<BR>
</form>
<table border="1" bgcolor="yellow">
<tr align="left">
<th>ID: </th>
<td id="td_id"></td></tr>
<tr align="left">
<th>Page Content: </th>
<td id="td_page_content"></td></tr>
</table>
<p><b>Pages in the xml:</b></p>
<table datasrc="#xmldso_list" border="1">
<thead>
<tr align="left">
<th>Page Name</th>
<th>ID</th>
</tr>
</thead>
<tr align="left" onclick="testclick(this)">
<td><div datafld="Title" /></td>
<td><div datafld="id" /></td>
</tr>
</table>
</BODY>
</HTML>
cheers aron.
