<?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: Google Chrome Extension: New Tab Redirect! STEP BY STEP</title>
	<atom:link href="http://www.ipreferjim.com/2010/02/google-chrome-extension-new-tab-redirect-step-by-step/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ipreferjim.com/2010/02/google-chrome-extension-new-tab-redirect-step-by-step/</link>
	<description>Developer James Schubert shares his code and his thoughts.</description>
	<lastBuildDate>Mon, 05 Dec 2011 02:16:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: jimschubert</title>
		<link>http://www.ipreferjim.com/2010/02/google-chrome-extension-new-tab-redirect-step-by-step/comment-page-1/#comment-16</link>
		<dc:creator>jimschubert</dc:creator>
		<pubDate>Thu, 01 Apr 2010 15:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.ipreferjim.com/site/2010/02/google-chrome-extension-new-tab-redirect-step-by-step/#comment-16</guid>
		<description><![CDATA[Tiesto: I modified the post to link to &lt;a href=&quot;http://src.chromium.org/svn/trunk/src/chrome/common/url_constants.cc&quot; rel=&quot;nofollow&quot;&gt;Chrome&#039;s URL Constants&lt;/a&gt;.  There is no chrome://net-internal.  This would be chrome://net-internals/  and it used to be about:net-internal (which has also changed to about:net-internals).  You don&#039;t need to request any additional permissions to access this.

It appears that I have a number of additional about: and chrome: pages to add to my extension to keep up with the trunk.

Thanks for your question!]]></description>
		<content:encoded><![CDATA[<p>Tiesto: I modified the post to link to <a href="http://src.chromium.org/svn/trunk/src/chrome/common/url_constants.cc" rel="nofollow">Chrome&#8217;s URL Constants</a>.  There is no chrome://net-internal.  This would be chrome://net-internals/  and it used to be about:net-internal (which has also changed to about:net-internals).  You don&#8217;t need to request any additional permissions to access this.</p>
<p>It appears that I have a number of additional about: and chrome: pages to add to my extension to keep up with the trunk.</p>
<p>Thanks for your question!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tiesto</title>
		<link>http://www.ipreferjim.com/2010/02/google-chrome-extension-new-tab-redirect-step-by-step/comment-page-1/#comment-15</link>
		<dc:creator>Tiesto</dc:creator>
		<pubDate>Tue, 30 Mar 2010 09:47:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.ipreferjim.com/site/2010/02/google-chrome-extension-new-tab-redirect-step-by-step/#comment-15</guid>
		<description><![CDATA[Hi! 
I should take url from chrome://net-internal, it is possible?
In the manifest.json i can&#039;t add (chrome://*) in the permissions.
There is another way?
Thanks]]></description>
		<content:encoded><![CDATA[<p>Hi!<br />
I should take url from chrome://net-internal, it is possible?<br />
In the manifest.json i can&#8217;t add (chrome://*) in the permissions.<br />
There is another way?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jimschubert</title>
		<link>http://www.ipreferjim.com/2010/02/google-chrome-extension-new-tab-redirect-step-by-step/comment-page-1/#comment-14</link>
		<dc:creator>jimschubert</dc:creator>
		<pubDate>Fri, 26 Mar 2010 13:21:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.ipreferjim.com/site/2010/02/google-chrome-extension-new-tab-redirect-step-by-step/#comment-14</guid>
		<description><![CDATA[Mike, thanks for the comment!  As far as interacting with the background page, the chrome API offers a method: chrome.extension.getBackgroundPage() which returns the DOMWindow of the Background Page.  This means you can assign the above function to a variable in your popup.html, e.g. calling the object &#039;bp&#039;, then interact with scripts in your background page directly.  So, if you have a script on your background page called &#039;function stopPlayer() { }&#039; and you&#039;ve assigned the background page to the &#039;bp&#039; variable, you can call &#039;bp.stopPlayer();&#039; from your popup.

See how I did this with the setUrl() function in Background.html, and how I access that function from options.js in the save() function.

You can access all of the chrome.* APIs here: http://code.google.com/chrome/extensions/api_index.html

I think the important thing to consider in your functionality is that your player&#039;s logic should reside totally in the background page, and think of your popup.html as only a remote control.  In other words, the popup should only have html, stylesheet, and calls to functions in the background.html.  That&#039;ll keep it lightweight and responsive for the user.

I hope that helps!]]></description>
		<content:encoded><![CDATA[<p>Mike, thanks for the comment!  As far as interacting with the background page, the chrome API offers a method: chrome.extension.getBackgroundPage() which returns the DOMWindow of the Background Page.  This means you can assign the above function to a variable in your popup.html, e.g. calling the object &#8216;bp&#8217;, then interact with scripts in your background page directly.  So, if you have a script on your background page called &#8216;function stopPlayer() { }&#8217; and you&#8217;ve assigned the background page to the &#8216;bp&#8217; variable, you can call &#8216;bp.stopPlayer();&#8217; from your popup.</p>
<p>See how I did this with the setUrl() function in Background.html, and how I access that function from options.js in the save() function.</p>
<p>You can access all of the chrome.* APIs here: <a href="http://code.google.com/chrome/extensions/api_index.html" rel="nofollow">http://code.google.com/chrome/extensions/api_index.html</a></p>
<p>I think the important thing to consider in your functionality is that your player&#8217;s logic should reside totally in the background page, and think of your popup.html as only a remote control.  In other words, the popup should only have html, stylesheet, and calls to functions in the background.html.  That&#8217;ll keep it lightweight and responsive for the user.</p>
<p>I hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MikeHobo</title>
		<link>http://www.ipreferjim.com/2010/02/google-chrome-extension-new-tab-redirect-step-by-step/comment-page-1/#comment-13</link>
		<dc:creator>MikeHobo</dc:creator>
		<pubDate>Fri, 26 Mar 2010 07:12:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.ipreferjim.com/site/2010/02/google-chrome-extension-new-tab-redirect-step-by-step/#comment-13</guid>
		<description><![CDATA[You seem to have a general grasp of this kind of stuff, I actually have very few experience with javascript at all, but I&#039;m currently toying around with Chrome Extensions, and I am wondering as to how I could go about putting a script of javascript in my popup.html that will control something on my background.html, currently I&#039;m testing with the JW Player and trying to have music play on the background.html page and then have popup.html controls to pause or skip through songs.]]></description>
		<content:encoded><![CDATA[<p>You seem to have a general grasp of this kind of stuff, I actually have very few experience with javascript at all, but I&#8217;m currently toying around with Chrome Extensions, and I am wondering as to how I could go about putting a script of javascript in my popup.html that will control something on my background.html, currently I&#8217;m testing with the JW Player and trying to have music play on the background.html page and then have popup.html controls to pause or skip through songs.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Served from: www.ipreferjim.com @ 2013-05-22 04:07:36 by W3 Total Cache -->