Click here to Skip to main content
16,009,728 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Colour Format (Please help) Pin
Christian Graus3-Jul-05 11:28
protectorChristian Graus3-Jul-05 11:28 
GeneralRe: Colour Format (Please help) Pin
Guffa3-Jul-05 12:11
Guffa3-Jul-05 12:11 
GeneralRe: Colour Format (Please help) Pin
Christian Graus3-Jul-05 12:48
protectorChristian Graus3-Jul-05 12:48 
GeneralRe: Colour Format (Please help) Pin
Guffa3-Jul-05 13:23
Guffa3-Jul-05 13:23 
GeneralRe: Colour Format (Please help) Pin
fakefur3-Jul-05 15:33
fakefur3-Jul-05 15:33 
GeneralRe: Colour Format (Please help) Pin
Guffa4-Jul-05 1:47
Guffa4-Jul-05 1:47 
GeneralPer-user web directories in IIS Pin
Adam Durity30-Jun-05 8:44
Adam Durity30-Jun-05 8:44 
Generaldynamic tree structure table (jscript & xml) Pin
minette30-Jun-05 1:19
minette30-Jun-05 1:19 
I'm building a page that displays a potentially very large table. It consists of 'nodes' that can be expanded and collapsed (a tree structure). I'm using an Http request that fetches the appropriate Xml and slots it into the correct position into the Xml Dom on the client. And then I have to render the page again using XSL to display the new structure. There could be up to 5000 lines or more in some cases and re-rendering this every time will be too big a load on the client's CPU. So I’ve written some code that only transforms the fragment of xml that I returned and now I want to slot it into the correct place in the table. I'm having trouble with this though, because it does not seem to recognize the 'processor.output' as Html (or an Html node when I try to do this using the Html Dom). There must be a way of doing this and I think it’s just a matter of syntax. Any suggestions would be greatly appreciated.

A snippet of the code:

<br />
function TransformFragment(node)<br />
	{<br />
		var objNodeDOM = new ActiveXObject("MSXML2.DomDocument");<br />
		objNodeDOM.async = false;<br />
		var fragment = "<Fragment> </Fragment>";<br />
		objNodeDOM.loadXML(fragment);<br />
		<br />
		objNodeDOM.firstChild.appendChild(node);<br />
		<br />
		// Load XSL<br />
		var xsl = new ActiveXObject("MSXML2.FreeThreadedDomDocument");<br />
		xsl.async = false;<br />
		xsl.load("StructureFragment.xslt");<br />
<br />
		var template = new ActiveXObject("MSXML2.XSLTemplate")<br />
		template.stylesheet = xsl<br />
		processor = template.createProcessor()<br />
<br />
		processor.input = objNodeDOM<br />
		// Transform<br />
		processor.transform()<br />
		<br />
		//added this out of desperation to get it working:	<br />
		var objHtmlDOM = new ActiveXObject("MSXML2.DomDocument");<br />
		objHtmlDOM.load(processor.output);<br />
		<br />
		//Get place in document<br />
		var id = node.getAttribute("ID");<br />
		var oTr = document.getElementById(id);<br />
		<br />
		//some of the things I've tried:<br />
		<br />
		/*var index = oTr.rowIndex;<br />
		var oTable = document.getElementById("maintable");<br />
		var x = oTable.insertRow(index);<br />
		x.outerHTML = processor.output;*/<br />
		<br />
		//oTr.outerHTML = objHtmlDOM.xml;<br />
		<br />
		/*var parentNode = oTr.parentNode;<br />
		var newnode = processor.output;<br />
		parentNode.replaceChild(newnode,oTr); */<br />
<br />
		<br />
	}

Generaljavascript Pin
Anonymous30-Jun-05 0:52
Anonymous30-Jun-05 0:52 
GeneralRe: javascript Pin
Guffa30-Jun-05 2:14
Guffa30-Jun-05 2:14 
GeneralWord 2003 automation problem in web service Pin
hrdegroot29-Jun-05 20:36
hrdegroot29-Jun-05 20:36 
QuestionHow to resize a web page ? Pin
rushing29-Jun-05 19:47
rushing29-Jun-05 19:47 
Generaljavascript Pin
cmarmr29-Jun-05 6:48
cmarmr29-Jun-05 6:48 
GeneralRe: javascript Pin
StylezHouse29-Jun-05 7:44
StylezHouse29-Jun-05 7:44 
GeneralRe: javascript Pin
cmarmr29-Jun-05 8:06
cmarmr29-Jun-05 8:06 
GeneralRe: javascript Pin
Guffa29-Jun-05 8:43
Guffa29-Jun-05 8:43 
GeneralRe: javascript Pin
cmarmr29-Jun-05 14:30
cmarmr29-Jun-05 14:30 
GeneralRe: javascript Pin
Guffa30-Jun-05 2:23
Guffa30-Jun-05 2:23 
GeneralProblem in setting the Date using Calendar control Pin
just4ulove729-Jun-05 4:38
just4ulove729-Jun-05 4:38 
GeneralRe: Problem in setting the Date using Calendar control Pin
Christian Graus29-Jun-05 11:58
protectorChristian Graus29-Jun-05 11:58 
GeneralRe: Problem in setting the Date using Calendar control Pin
just4ulove729-Jun-05 12:08
just4ulove729-Jun-05 12:08 
GeneralRe: Problem in setting the Date using Calendar control Pin
Christian Graus29-Jun-05 12:16
protectorChristian Graus29-Jun-05 12:16 
GeneralRe: Problem in setting the Date using Calendar control Pin
just4ulove729-Jun-05 12:21
just4ulove729-Jun-05 12:21 
GeneralRe: Problem in setting the Date using Calendar control Pin
Christian Graus29-Jun-05 12:36
protectorChristian Graus29-Jun-05 12:36 
GeneralRe: Problem in setting the Date using Calendar control Pin
just4ulove729-Jun-05 12:47
just4ulove729-Jun-05 12:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.