JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old February 12th, 2004, 07:59 PM
aron aron is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: brisbane
Posts: 42 aron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 9 m 35 sec
Reputation Power: 5
javascript and xml help???

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.

Code:
<!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.

Last edited by dhouston : February 13th, 2004 at 08:08 AM. Reason: Wrapped code in code tags for readability.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > javascript and xml help???


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway