<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Glue-free JSCall#</title>
	<atom:link href="http://www.chrishowie.com/2007/05/08/glue-free-jscall/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chrishowie.com/2007/05/08/glue-free-jscall/</link>
	<description>Trading social skills for technical prowess since 1994</description>
	<pubDate>Tue, 06 Jan 2009 05:08:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Viggio</title>
		<link>http://www.chrishowie.com/2007/05/08/glue-free-jscall/comment-page-1/#comment-7910</link>
		<dc:creator>Viggio</dc:creator>
		<pubDate>Thu, 31 Jul 2008 14:49:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrishowie.com/2007/05/08/glue-free-jscall/#comment-7910</guid>
		<description>Hi Chris, I's me again... please forget my last question. I could solve the problem by using the .tag.gz installer from Adobe rather than .deb package from the same site.
Ciao!</description>
		<content:encoded><![CDATA[<p>Hi Chris, I&#8217;s me again&#8230; please forget my last question. I could solve the problem by using the .tag.gz installer from Adobe rather than .deb package from the same site.<br />
Ciao!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viggio</title>
		<link>http://www.chrishowie.com/2007/05/08/glue-free-jscall/comment-page-1/#comment-7909</link>
		<dc:creator>Viggio</dc:creator>
		<pubDate>Thu, 31 Jul 2008 13:54:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrishowie.com/2007/05/08/glue-free-jscall/#comment-7909</guid>
		<description>Hi Chris,
although I understand that this is not the best place where to post this question (we're talking about JSCall here), I cannot find any other place where to find support.
This is my problem:
I'm running Ubunto 8.04. I've embed mozilla through Gecko# in my mono application. Everithing works, I can also see pages with Flash contents.
Unfortunatelly I cannot see pdf files, neither direclty opening the pdf itself, nor embedding them into html pages. In firefox 3 I can see them in both ways, with also pdf 3D support. What do I miss?
Thanks for you help!</description>
		<content:encoded><![CDATA[<p>Hi Chris,<br />
although I understand that this is not the best place where to post this question (we&#8217;re talking about JSCall here), I cannot find any other place where to find support.<br />
This is my problem:<br />
I&#8217;m running Ubunto 8.04. I&#8217;ve embed mozilla through Gecko# in my mono application. Everithing works, I can also see pages with Flash contents.<br />
Unfortunatelly I cannot see pdf files, neither direclty opening the pdf itself, nor embedding them into html pages. In firefox 3 I can see them in both ways, with also pdf 3D support. What do I miss?<br />
Thanks for you help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viggio</title>
		<link>http://www.chrishowie.com/2007/05/08/glue-free-jscall/comment-page-1/#comment-7907</link>
		<dc:creator>Viggio</dc:creator>
		<pubDate>Wed, 30 Jul 2008 07:05:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrishowie.com/2007/05/08/glue-free-jscall/#comment-7907</guid>
		<description>Chris thanks.
That's what I was fearing...

So, I'll look for a different solution...
Ciao.</description>
		<content:encoded><![CDATA[<p>Chris thanks.<br />
That&#8217;s what I was fearing&#8230;</p>
<p>So, I&#8217;ll look for a different solution&#8230;<br />
Ciao.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.chrishowie.com/2007/05/08/glue-free-jscall/comment-page-1/#comment-7906</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 29 Jul 2008 14:58:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrishowie.com/2007/05/08/glue-free-jscall/#comment-7906</guid>
		<description>Viggio: It doesn't work because JavaScript is not truly multi-threaded.  At the point that the TitleChanged handler is executing, the JavaScript interpreter is suspended, waiting for it to return.  If you try to execute a function then, there is no way for the interpreter to actually run it.  It would be nice if Mozilla would queue the call, but instead it just ignores it.

You will have to deal with threads if you want to accomplish this.  A better option might be to ensure that the script has all of the data it needs to accomplish its work.  Interaction between C# and JavaScript should be kept minimal, and back-and-forth exchanges should be avoided for the very issue you have encountered.</description>
		<content:encoded><![CDATA[<p>Viggio: It doesn&#8217;t work because JavaScript is not truly multi-threaded.  At the point that the TitleChanged handler is executing, the JavaScript interpreter is suspended, waiting for it to return.  If you try to execute a function then, there is no way for the interpreter to actually run it.  It would be nice if Mozilla would queue the call, but instead it just ignores it.</p>
<p>You will have to deal with threads if you want to accomplish this.  A better option might be to ensure that the script has all of the data it needs to accomplish its work.  Interaction between C# and JavaScript should be kept minimal, and back-and-forth exchanges should be avoided for the very issue you have encountered.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viggio</title>
		<link>http://www.chrishowie.com/2007/05/08/glue-free-jscall/comment-page-1/#comment-7904</link>
		<dc:creator>Viggio</dc:creator>
		<pubDate>Mon, 28 Jul 2008 12:20:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrishowie.com/2007/05/08/glue-free-jscall/#comment-7904</guid>
		<description>Hi
(I've tried to post before but nothing happened, so I try again now).

I've put in place the mechanism as you described and it works pretty well.
The only thing I cannot do is to return a value back to javascript.
In other words, in javascript I change the document.title to a formatted string with command name and args. In c# I listen to the TitleChange event and I parse the new title. Up to here everything is ok.
Now, I want my TitleChange event handler to return a value back to the javascript but if I do myMoz.LoadUrl("javascript:SomeFunction(Some Args)") this is not executed. If I do the same somewhere else, like for example when pressing a button in my Gtk# window, the same javascript code is executed normally.
It seems that, after setting document.title in js, it waits until the c# event handler function is completed, but while waiting, the webcontrol is not able to execute any other javasrcipt call.
Can you help me?
Thanks in advance!!!</description>
		<content:encoded><![CDATA[<p>Hi<br />
(I&#8217;ve tried to post before but nothing happened, so I try again now).</p>
<p>I&#8217;ve put in place the mechanism as you described and it works pretty well.<br />
The only thing I cannot do is to return a value back to javascript.<br />
In other words, in javascript I change the document.title to a formatted string with command name and args. In c# I listen to the TitleChange event and I parse the new title. Up to here everything is ok.<br />
Now, I want my TitleChange event handler to return a value back to the javascript but if I do myMoz.LoadUrl(&#8221;javascript:SomeFunction(Some Args)&#8221;) this is not executed. If I do the same somewhere else, like for example when pressing a button in my Gtk# window, the same javascript code is executed normally.<br />
It seems that, after setting document.title in js, it waits until the c# event handler function is completed, but while waiting, the webcontrol is not able to execute any other javasrcipt call.<br />
Can you help me?<br />
Thanks in advance!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.chrishowie.com/2007/05/08/glue-free-jscall/comment-page-1/#comment-6329</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 28 Jan 2008 14:29:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrishowie.com/2007/05/08/glue-free-jscall/#comment-6329</guid>
		<description>Basically the way I solved the comment issue is I don't use single-line comments in any of my scripts.  :)  Not exactly clean, but I didn't feel like writing a context-free JavaScript parser just to strip them.

As for the modulo operator, good catch.  I didn't account for that since I'm not really using that operator at all.</description>
		<content:encoded><![CDATA[<p>Basically the way I solved the comment issue is I don&#8217;t use single-line comments in any of my scripts.  <img src='http://www.chrishowie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Not exactly clean, but I didn&#8217;t feel like writing a context-free JavaScript parser just to strip them.</p>
<p>As for the modulo operator, good catch.  I didn&#8217;t account for that since I&#8217;m not really using that operator at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: skoczko</title>
		<link>http://www.chrishowie.com/2007/05/08/glue-free-jscall/comment-page-1/#comment-6328</link>
		<dc:creator>skoczko</dc:creator>
		<pubDate>Mon, 28 Jan 2008 10:12:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrishowie.com/2007/05/08/glue-free-jscall/#comment-6328</guid>
		<description>Hi the idea is really nice and comments are quite easy to strip (along with the excessive new lines and breaks) take a look here: http://javascript.crockford.com/jsmin.cs. There is one more issue here, however. The '%' sign which in JS is used as a modulo operator or when converting from ASCII codes. Firefox will try to escape everything that follows breaking the script. The only solution is to change the '%' into '%25' before injecting the script. Jsmin.cs can be altered to do it as well. Cheers.

PS Hutch: Your JSCall has got that issue, please test your code!</description>
		<content:encoded><![CDATA[<p>Hi the idea is really nice and comments are quite easy to strip (along with the excessive new lines and breaks) take a look here: <a href="http://javascript.crockford.com/jsmin.cs" rel="nofollow">http://javascript.crockford.com/jsmin.cs</a>. There is one more issue here, however. The &#8216;%&#8217; sign which in JS is used as a modulo operator or when converting from ASCII codes. Firefox will try to escape everything that follows breaking the script. The only solution is to change the &#8216;%&#8217; into &#8216;%25&#8242; before injecting the script. Jsmin.cs can be altered to do it as well. Cheers.</p>
<p>PS Hutch: Your JSCall has got that issue, please test your code!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Hutchinson</title>
		<link>http://www.chrishowie.com/2007/05/08/glue-free-jscall/comment-page-1/#comment-699</link>
		<dc:creator>Michael Hutchinson</dc:creator>
		<pubDate>Sun, 13 May 2007 15:41:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrishowie.com/2007/05/08/glue-free-jscall/#comment-699</guid>
		<description>Well, I did it anyway. It works!</description>
		<content:encoded><![CDATA[<p>Well, I did it anyway. It works!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Hutchinson</title>
		<link>http://www.chrishowie.com/2007/05/08/glue-free-jscall/comment-page-1/#comment-697</link>
		<dc:creator>Michael Hutchinson</dc:creator>
		<pubDate>Sun, 13 May 2007 11:15:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrishowie.com/2007/05/08/glue-free-jscall/#comment-697</guid>
		<description>Nice idea! I will have to try this in AspNetEdit.. after I finish my exams, of course :)</description>
		<content:encoded><![CDATA[<p>Nice idea! I will have to try this in AspNetEdit.. after I finish my exams, of course <img src='http://www.chrishowie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
