<?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: Calling JavaScript in a WebBrowser control from C#</title>
	<atom:link href="http://notions.okuda.ca/2009/06/11/calling-javascript-in-a-webbrowser-control-from-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://notions.okuda.ca/2009/06/11/calling-javascript-in-a-webbrowser-control-from-c/</link>
	<description>A mental image or representation; an idea or conception</description>
	<lastBuildDate>Sat, 04 Feb 2012 00:52:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: tom</title>
		<link>http://notions.okuda.ca/2009/06/11/calling-javascript-in-a-webbrowser-control-from-c/comment-page-1/#comment-143711</link>
		<dc:creator>tom</dc:creator>
		<pubDate>Sat, 30 Apr 2011 13:17:02 +0000</pubDate>
		<guid isPermaLink="false">http://notions.okuda.ca/2009/06/11/calling-javascript-in-a-webbrowser-control-from-c/#comment-143711</guid>
		<description>I am also using this technique to call google analytics event tracking from inside a windows application.  So i can peform analytics on win forms...

This blog has bolstered my decision to roll it out and see what happens..
great stuff!


Jscript

 function trackEvent(category, action, opt_label, opt_value) 
        {
          _gaq.push([&#039;_trackEvent&#039;, category, action, opt_label, opt_value]);
        }

C#

webBrowser1.Document.InvokeScript(&quot;trackEvent&quot;, args).ToString();</description>
		<content:encoded><![CDATA[<p>I am also using this technique to call google analytics event tracking from inside a windows application.  So i can peform analytics on win forms&#8230;</p>
<p>This blog has bolstered my decision to roll it out and see what happens..<br />
great stuff!</p>
<p>Jscript</p>
<p> function trackEvent(category, action, opt_label, opt_value)<br />
        {<br />
          _gaq.push(['_trackEvent', category, action, opt_label, opt_value]);<br />
        }</p>
<p>C#</p>
<p>webBrowser1.Document.InvokeScript(&#8220;trackEvent&#8221;, args).ToString();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://notions.okuda.ca/2009/06/11/calling-javascript-in-a-webbrowser-control-from-c/comment-page-1/#comment-140833</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Mon, 14 Mar 2011 17:51:43 +0000</pubDate>
		<guid isPermaLink="false">http://notions.okuda.ca/2009/06/11/calling-javascript-in-a-webbrowser-control-from-c/#comment-140833</guid>
		<description>Article proved to be very helpful! Thank you for taking the time for writing it!

- Alex</description>
		<content:encoded><![CDATA[<p>Article proved to be very helpful! Thank you for taking the time for writing it!</p>
<p>- Alex</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anon E. Mous</title>
		<link>http://notions.okuda.ca/2009/06/11/calling-javascript-in-a-webbrowser-control-from-c/comment-page-1/#comment-137669</link>
		<dc:creator>Anon E. Mous</dc:creator>
		<pubDate>Fri, 11 Feb 2011 23:40:52 +0000</pubDate>
		<guid isPermaLink="false">http://notions.okuda.ca/2009/06/11/calling-javascript-in-a-webbrowser-control-from-c/#comment-137669</guid>
		<description>Thank you! You have given me exactly what I was looking for to advance a project I am working on. Very well written, easy to follow, perfect guide!</description>
		<content:encoded><![CDATA[<p>Thank you! You have given me exactly what I was looking for to advance a project I am working on. Very well written, easy to follow, perfect guide!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nag</title>
		<link>http://notions.okuda.ca/2009/06/11/calling-javascript-in-a-webbrowser-control-from-c/comment-page-1/#comment-114935</link>
		<dc:creator>Nag</dc:creator>
		<pubDate>Tue, 23 Mar 2010 04:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://notions.okuda.ca/2009/06/11/calling-javascript-in-a-webbrowser-control-from-c/#comment-114935</guid>
		<description>Thanks buddy !!! Helped me a lot...</description>
		<content:encoded><![CDATA[<p>Thanks buddy !!! Helped me a lot&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: e</title>
		<link>http://notions.okuda.ca/2009/06/11/calling-javascript-in-a-webbrowser-control-from-c/comment-page-1/#comment-114900</link>
		<dc:creator>e</dc:creator>
		<pubDate>Mon, 22 Mar 2010 10:05:32 +0000</pubDate>
		<guid isPermaLink="false">http://notions.okuda.ca/2009/06/11/calling-javascript-in-a-webbrowser-control-from-c/#comment-114900</guid>
		<description>Thanks for this useful write-up. I&#039;m surprised how simple it is to access the hosting application from a script in the browser control; I would hardly have imagined it possible.</description>
		<content:encoded><![CDATA[<p>Thanks for this useful write-up. I&#8217;m surprised how simple it is to access the hosting application from a script in the browser control; I would hardly have imagined it possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alon</title>
		<link>http://notions.okuda.ca/2009/06/11/calling-javascript-in-a-webbrowser-control-from-c/comment-page-1/#comment-114429</link>
		<dc:creator>Alon</dc:creator>
		<pubDate>Tue, 09 Mar 2010 20:12:33 +0000</pubDate>
		<guid isPermaLink="false">http://notions.okuda.ca/2009/06/11/calling-javascript-in-a-webbrowser-control-from-c/#comment-114429</guid>
		<description>Thank you.  Your summary is concise and aimed exactly at what I was trying to do.  With some minor changes to work with C++, your code got me going within a couple of hours.  Nowhere else is this info summarized in one place.  Particularly gratifying was seeing fields in my window update live with changes in the Google Earth view.</description>
		<content:encoded><![CDATA[<p>Thank you.  Your summary is concise and aimed exactly at what I was trying to do.  With some minor changes to work with C++, your code got me going within a couple of hours.  Nowhere else is this info summarized in one place.  Particularly gratifying was seeing fields in my window update live with changes in the Google Earth view.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guy Louchen</title>
		<link>http://notions.okuda.ca/2009/06/11/calling-javascript-in-a-webbrowser-control-from-c/comment-page-1/#comment-114269</link>
		<dc:creator>Guy Louchen</dc:creator>
		<pubDate>Fri, 05 Mar 2010 01:41:50 +0000</pubDate>
		<guid isPermaLink="false">http://notions.okuda.ca/2009/06/11/calling-javascript-in-a-webbrowser-control-from-c/#comment-114269</guid>
		<description>Hello, I found this blog post while searching for help with JavaScript. I&#039;ve recently switched browsers from Opera to Internet Explorer 7. Now I seem to have a problem with loading JavaScript. Everytime I go on a page that needs Javascript, my browser doesn&#039;t load and I get a &quot;runtime error javascript.JSException: Unknown name&quot;. I cannot seem to find out how to fix the problem. Any aid is greatly appreciated! Thanks</description>
		<content:encoded><![CDATA[<p>Hello, I found this blog post while searching for help with JavaScript. I&#8217;ve recently switched browsers from Opera to Internet Explorer 7. Now I seem to have a problem with loading JavaScript. Everytime I go on a page that needs Javascript, my browser doesn&#8217;t load and I get a &#8220;runtime error javascript.JSException: Unknown name&#8221;. I cannot seem to find out how to fix the problem. Any aid is greatly appreciated! Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://notions.okuda.ca/2009/06/11/calling-javascript-in-a-webbrowser-control-from-c/comment-page-1/#comment-113241</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 28 Jan 2010 06:01:56 +0000</pubDate>
		<guid isPermaLink="false">http://notions.okuda.ca/2009/06/11/calling-javascript-in-a-webbrowser-control-from-c/#comment-113241</guid>
		<description>This is great!  I was looking to implement google maps in my application and needed exactly what you have here.  One note on your code: In your class &quot;ScriptInterface&quot;, I had to make &quot;CallMe&quot; a public method.</description>
		<content:encoded><![CDATA[<p>This is great!  I was looking to implement google maps in my application and needed exactly what you have here.  One note on your code: In your class &#8220;ScriptInterface&#8221;, I had to make &#8220;CallMe&#8221; a public method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: josbass</title>
		<link>http://notions.okuda.ca/2009/06/11/calling-javascript-in-a-webbrowser-control-from-c/comment-page-1/#comment-111723</link>
		<dc:creator>josbass</dc:creator>
		<pubDate>Wed, 02 Dec 2009 07:55:21 +0000</pubDate>
		<guid isPermaLink="false">http://notions.okuda.ca/2009/06/11/calling-javascript-in-a-webbrowser-control-from-c/#comment-111723</guid>
		<description>Great article, concise and to the point! Thanks to your text I managed to include a browser window doing Javascript commands to a web application in my windows application i 5 minutes.</description>
		<content:encoded><![CDATA[<p>Great article, concise and to the point! Thanks to your text I managed to include a browser window doing Javascript commands to a web application in my windows application i 5 minutes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jens Christian Rasch</title>
		<link>http://notions.okuda.ca/2009/06/11/calling-javascript-in-a-webbrowser-control-from-c/comment-page-1/#comment-108571</link>
		<dc:creator>Jens Christian Rasch</dc:creator>
		<pubDate>Wed, 16 Sep 2009 12:40:33 +0000</pubDate>
		<guid isPermaLink="false">http://notions.okuda.ca/2009/06/11/calling-javascript-in-a-webbrowser-control-from-c/#comment-108571</guid>
		<description>The code you are describing is the same I have found but at the moment I am working with AxWebBrowser instead of the WebBrowser control included in the .NET framework.

In this AxWebBrowser control I cannot find the equivalent of ObjectForScripting. Do you know how to get this to work?

Or better, do you have any knowledge on, how to get the WebBrowser control to handle opening of new browser windows and maintain session? :-)</description>
		<content:encoded><![CDATA[<p>The code you are describing is the same I have found but at the moment I am working with AxWebBrowser instead of the WebBrowser control included in the .NET framework.</p>
<p>In this AxWebBrowser control I cannot find the equivalent of ObjectForScripting. Do you know how to get this to work?</p>
<p>Or better, do you have any knowledge on, how to get the WebBrowser control to handle opening of new browser windows and maintain session? <img src='http://notions.okuda.ca/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

