<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Displaying Notes Views with AJAX Part 1</title>
	<atom:link href="http://www.rich-waters.com/blog/2005/11/displaying-notes-views-with-ajax-part-1.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.rich-waters.com/blog/2005/11/displaying-notes-views-with-ajax-part-1.html</link>
	<description>Ext, Javascript, Notes/Domino, Ext.nd, Ruby on Rails</description>
	<pubDate>Tue, 06 Jan 2009 01:35:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Stefan Deser</title>
		<link>http://www.rich-waters.com/blog/2005/11/displaying-notes-views-with-ajax-part-1.html#comment-8422</link>
		<dc:creator>Stefan Deser</dc:creator>
		<pubDate>Mon, 12 Mar 2007 10:49:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.rich-waters.com/blog/?p=5#comment-8422</guid>
		<description>Hi Rich, 

first thanks for this nice text. Clear expleaned, easy to understand.

The only problem i got, was, that the .xsl-file couldn't be loaded. I found a hint on the Sarissa documentation (http://sarissa.sourceforge.net/doc/index.html), where it says referring to load: "use XMLHttpRequest to load remote documents instead". 

So, if i use: 
"var dbPath = window.location.href.substr(0, window.location.href.lastIndexOf('.nsf') + 4); 
var xmlhttp = new XMLHttpRequest();
xmlhttp.open('GET', dbPath + '/viewentries.xsl', false);
xmlhttp.send('');
var xslDoc = xmlhttp.responseXML;"
instead of "xslDoc.load(...)" it works... 

This also seems to be the problem in some comments above. 

Kind regards, 
Stefan</description>
		<content:encoded><![CDATA[<p>Hi Rich, </p>
<p>first thanks for this nice text. Clear expleaned, easy to understand.</p>
<p>The only problem i got, was, that the .xsl-file couldn&#8217;t be loaded. I found a hint on the Sarissa documentation (http://sarissa.sourceforge.net/doc/index.html), where it says referring to load: &#8220;use XMLHttpRequest to load remote documents instead&#8221;. </p>
<p>So, if i use:<br />
&#8220;var dbPath = window.location.href.substr(0, window.location.href.lastIndexOf(&#8217;.nsf&#8217;) + 4);<br />
var xmlhttp = new XMLHttpRequest();<br />
xmlhttp.open(&#8217;GET&#8217;, dbPath + &#8216;/viewentries.xsl&#8217;, false);<br />
xmlhttp.send(&#8221;);<br />
var xslDoc = xmlhttp.responseXML;&#8221;<br />
instead of &#8220;xslDoc.load(&#8230;)&#8221; it works&#8230; </p>
<p>This also seems to be the problem in some comments above. </p>
<p>Kind regards,<br />
Stefan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich Waters</title>
		<link>http://www.rich-waters.com/blog/2005/11/displaying-notes-views-with-ajax-part-1.html#comment-2845</link>
		<dc:creator>Rich Waters</dc:creator>
		<pubDate>Fri, 17 Nov 2006 01:29:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.rich-waters.com/blog/?p=5#comment-2845</guid>
		<description>I'll see if I can dig up some of that code and toss a sample database together.  Almost seems outdated to me at this point :P</description>
		<content:encoded><![CDATA[<p>I&#8217;ll see if I can dig up some of that code and toss a sample database together.  Almost seems outdated to me at this point <img src='http://www.rich-waters.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: quintessens</title>
		<link>http://www.rich-waters.com/blog/2005/11/displaying-notes-views-with-ajax-part-1.html#comment-2427</link>
		<dc:creator>quintessens</dc:creator>
		<pubDate>Sun, 12 Nov 2006 17:15:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.rich-waters.com/blog/?p=5#comment-2427</guid>
		<description>Hej Rich,

I tries to follow your guidelines but I get an error message: attempt to modify a read only file. Don't understand where that comes from.

Question: could you send me a sample database so I can work with that as a startingpoint?

Thanks in advance! 

// Patrick</description>
		<content:encoded><![CDATA[<p>Hej Rich,</p>
<p>I tries to follow your guidelines but I get an error message: attempt to modify a read only file. Don&#8217;t understand where that comes from.</p>
<p>Question: could you send me a sample database so I can work with that as a startingpoint?</p>
<p>Thanks in advance! </p>
<p>// Patrick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich Waters</title>
		<link>http://www.rich-waters.com/blog/2005/11/displaying-notes-views-with-ajax-part-1.html#comment-300</link>
		<dc:creator>Rich Waters</dc:creator>
		<pubDate>Thu, 17 Aug 2006 14:44:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.rich-waters.com/blog/?p=5#comment-300</guid>
		<description>Tough to tell, the first place I would look would be the XSL stylesheet, a minor mistake in there will cause the whole thing to not work.  When developing XSL I was using Altova XML Spy, I saved a local copy of readviewentries and tested the translation as I went.  Altova also has validation built in and will be able to tell you right off the bat if something is wrong with the XSL.

Also one thing to make sure of if your using a page is to make sure you set the content type in page properties to 'text/xml'.

Hope that helps.</description>
		<content:encoded><![CDATA[<p>Tough to tell, the first place I would look would be the XSL stylesheet, a minor mistake in there will cause the whole thing to not work.  When developing XSL I was using Altova XML Spy, I saved a local copy of readviewentries and tested the translation as I went.  Altova also has validation built in and will be able to tell you right off the bat if something is wrong with the XSL.</p>
<p>Also one thing to make sure of if your using a page is to make sure you set the content type in page properties to &#8216;text/xml&#8217;.</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken Haggman</title>
		<link>http://www.rich-waters.com/blog/2005/11/displaying-notes-views-with-ajax-part-1.html#comment-277</link>
		<dc:creator>Ken Haggman</dc:creator>
		<pubDate>Wed, 16 Aug 2006 09:36:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.rich-waters.com/blog/?p=5#comment-277</guid>
		<description>Hi Rich

I tried to implement this and I could only get it to work partially.
I created pages for the sarissa js files and included them.
Using Sarissa without a stylesheet works as expected, the XML is put into the div-tag I specify.

When I create a page containing the stylesheet you supply, I get an error: "Attempt to modify a read-only node".

I tried to use this code instead:
var proc = new XSLTProcessor();
var xslDoc = Sarissa.getDomDocument("", "/mydb.nsf/viewgeneric.xsl?openpage");
proc.importStylesheet(xslDoc); 
Sarissa.updateContentFromURI('/mydb.nsf/myview?readviewentries&#38;count=-1&#38;collapseview', document.getElementById("viewbody"), proc);

I then get the error: "The stylesheet does not contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document".

What am I doing wrong here?
I am certainly no star when it comes to XSL stylesheets, and I am sure this can be easily resolved.

Eagerly awaiting response.

// Ken</description>
		<content:encoded><![CDATA[<p>Hi Rich</p>
<p>I tried to implement this and I could only get it to work partially.<br />
I created pages for the sarissa js files and included them.<br />
Using Sarissa without a stylesheet works as expected, the XML is put into the div-tag I specify.</p>
<p>When I create a page containing the stylesheet you supply, I get an error: &#8220;Attempt to modify a read-only node&#8221;.</p>
<p>I tried to use this code instead:<br />
var proc = new XSLTProcessor();<br />
var xslDoc = Sarissa.getDomDocument(&#8221;", &#8220;/mydb.nsf/viewgeneric.xsl?openpage&#8221;);<br />
proc.importStylesheet(xslDoc);<br />
Sarissa.updateContentFromURI(&#8217;/mydb.nsf/myview?readviewentries&amp;count=-1&amp;collapseview&#8217;, document.getElementById(&#8221;viewbody&#8221;), proc);</p>
<p>I then get the error: &#8220;The stylesheet does not contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document&#8221;.</p>
<p>What am I doing wrong here?<br />
I am certainly no star when it comes to XSL stylesheets, and I am sure this can be easily resolved.</p>
<p>Eagerly awaiting response.</p>
<p>// Ken</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pconroy</title>
		<link>http://www.rich-waters.com/blog/2005/11/displaying-notes-views-with-ajax-part-1.html#comment-28</link>
		<dc:creator>pconroy</dc:creator>
		<pubDate>Tue, 20 Jun 2006 21:20:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.rich-waters.com/blog/?p=5#comment-28</guid>
		<description>Rich,

Did you ever write Part 2 of this article, if so I can't seem to locate it.

I am very interested in the merger of Bob's code and yours - would love to see of a demo of the final thing - thanks.

Cheers,
Paul</description>
		<content:encoded><![CDATA[<p>Rich,</p>
<p>Did you ever write Part 2 of this article, if so I can&#8217;t seem to locate it.</p>
<p>I am very interested in the merger of Bob&#8217;s code and yours - would love to see of a demo of the final thing - thanks.</p>
<p>Cheers,<br />
Paul</p>
]]></content:encoded>
	</item>
</channel>
</rss>
