<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: MP3 player from Yahoo! - bookmarklet</title>
	<link>http://www.phpied.com/mp3-player-from-yahoo-bookmarklet/</link>
	<description>Stoyan's blog about (x)html, ajax, bookmarklets, browsers, css, firebug, javascript, json, mdb2, mysql, pear, performance, php, phpbb, tools, yslow, yui, writing, music,... life and everything.</description>
	<pubDate>Sun, 18 May 2008 01:35:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.1</generator>

	<item>
		<title>by: Когато оловният дирижабъл е тъжен &#124; Блогът на Гонзо</title>
		<link>http://www.phpied.com/mp3-player-from-yahoo-bookmarklet/#comment-64102</link>
		<pubDate>Thu, 20 Mar 2008 20:08:29 +0000</pubDate>
		<guid>http://www.phpied.com/mp3-player-from-yahoo-bookmarklet/#comment-64102</guid>
					<description>[...] Благодаря на Стоян, че ме открехна за  Yahoo! Media Player, благодарение на който можете да слушате парчетата без изрично да ги теглите. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Благодаря на Стоян, че ме открехна за  Yahoo! Media Player, благодарение на който можете да слушате парчетата без изрично да ги теглите. [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Stoyan</title>
		<link>http://www.phpied.com/mp3-player-from-yahoo-bookmarklet/#comment-63826</link>
		<pubDate>Tue, 26 Feb 2008 01:51:53 +0000</pubDate>
		<guid>http://www.phpied.com/mp3-player-from-yahoo-bookmarklet/#comment-63826</guid>
					<description>np, Paul, thank &lt;em&gt;you&lt;/em&gt; for keeping &lt;a href=&quot;http://aurgasm.us/&quot; rel=&quot;nofollow&quot;&gt;aurgasm.us&lt;/a&gt; up</description>
		<content:encoded><![CDATA[<p>np, Paul, thank <em>you</em> for keeping <a href="http://aurgasm.us/" rel="nofollow">aurgasm.us</a> up
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Paul Irish</title>
		<link>http://www.phpied.com/mp3-player-from-yahoo-bookmarklet/#comment-63818</link>
		<pubDate>Sun, 24 Feb 2008 01:20:58 +0000</pubDate>
		<guid>http://www.phpied.com/mp3-player-from-yahoo-bookmarklet/#comment-63818</guid>
					<description>Stoyan, thanks for throwing together that bookmarklet. It's very useful. :)</description>
		<content:encoded><![CDATA[<p>Stoyan, thanks for throwing together that bookmarklet. It's very useful. <img src='http://www.phpied.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: phpied.com &#187; Blog Archive &#187; Audacity + Starcaster</title>
		<link>http://www.phpied.com/mp3-player-from-yahoo-bookmarklet/#comment-63618</link>
		<pubDate>Thu, 31 Jan 2008 23:30:45 +0000</pubDate>
		<guid>http://www.phpied.com/mp3-player-from-yahoo-bookmarklet/#comment-63618</guid>
					<description>[...] Ah, yeah and the nice player you use to hear these MP3s is the Yahoo! Media Player, which you can integrate on every page.  Post this entry to: &amp;#187; del.icio.us&amp;#160; &amp;#187; Digg&amp;#160; &amp;#187; Furl&amp;#160; &amp;#187; Newsvine&amp;#160; &amp;#187; reddit&amp;#160; &amp;#187; Y! [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Ah, yeah and the nice player you use to hear these MP3s is the Yahoo! Media Player, which you can integrate on every page.  Post this entry to: &raquo; del.icio.us&nbsp; &raquo; Digg&nbsp; &raquo; Furl&nbsp; &raquo; Newsvine&nbsp; &raquo; reddit&nbsp; &raquo; Y! [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Carl</title>
		<link>http://www.phpied.com/mp3-player-from-yahoo-bookmarklet/#comment-63607</link>
		<pubDate>Tue, 29 Jan 2008 16:49:27 +0000</pubDate>
		<guid>http://www.phpied.com/mp3-player-from-yahoo-bookmarklet/#comment-63607</guid>
					<description>By the way...

Change line:
e.onreadystatechange=function(){if(this.readyState==&quot;complete&quot;){c();}}

to:
e.onreadystatechange=function(){if(this.readyState==&quot;complete&quot;){c();e=null;}}

This will prevent a memory leak in IE6 due to a bug in IE memory management (which is fixed in IE7).</description>
		<content:encoded><![CDATA[<p>By the way&#8230;</p>
<p>Change line:<br />
e.onreadystatechange=function(){if(this.readyState=="complete"){c();}}</p>
<p>to:<br />
e.onreadystatechange=function(){if(this.readyState=="complete"){c();e=null;}}</p>
<p>This will prevent a memory leak in IE6 due to a bug in IE memory management (which is fixed in IE7).
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Carl</title>
		<link>http://www.phpied.com/mp3-player-from-yahoo-bookmarklet/#comment-63605</link>
		<pubDate>Tue, 29 Jan 2008 01:29:55 +0000</pubDate>
		<guid>http://www.phpied.com/mp3-player-from-yahoo-bookmarklet/#comment-63605</guid>
					<description>Sure.  Feel free to incorporate my code.  No charge ;-)  Thanks for posting the bookmarklet!</description>
		<content:encoded><![CDATA[<p>Sure.  Feel free to incorporate my code.  No charge <img src='http://www.phpied.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />   Thanks for posting the bookmarklet!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Stoyan</title>
		<link>http://www.phpied.com/mp3-player-from-yahoo-bookmarklet/#comment-63593</link>
		<pubDate>Sat, 26 Jan 2008 11:20:58 +0000</pubDate>
		<guid>http://www.phpied.com/mp3-player-from-yahoo-bookmarklet/#comment-63593</guid>
					<description>Thanks Carl, this is much better, definitely! 100ms delay was one of those works-for-me quickies which no self-respecting developer should post publicly ;)
I'll update my post with your permission to use your code. </description>
		<content:encoded><![CDATA[<p>Thanks Carl, this is much better, definitely! 100ms delay was one of those works-for-me quickies which no self-respecting developer should post publicly <img src='http://www.phpied.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
I'll update my post with your permission to use your code.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Carl</title>
		<link>http://www.phpied.com/mp3-player-from-yahoo-bookmarklet/#comment-63591</link>
		<pubDate>Fri, 25 Jan 2008 20:10:36 +0000</pubDate>
		<guid>http://www.phpied.com/mp3-player-from-yahoo-bookmarklet/#comment-63591</guid>
					<description>As noted, you could improve the code by actually waiting for the script to load instead of guessing that it will be there in 100ms.

javascript:(function(){
    function c(){
        YAHOO.music.WebPlayer.asyncLoadPlayer();
    }
    var e=document.createElement(&quot;script&quot;);
    if(e.addEventListener){
        e.addEventListener(&quot;load&quot;,c,false);
    }
    else{
        e.onreadystatechange=function(){if(this.readyState==&quot;complete&quot;){c();}}
    }
    e.type=&quot;text/javascript&quot;;
    e.src=&quot;http://mediaplayer.yahoo.com/js&quot;;
    document.getElementsByTagName(&quot;head&quot;)[0].appendChild(e);
})();</description>
		<content:encoded><![CDATA[<p>As noted, you could improve the code by actually waiting for the script to load instead of guessing that it will be there in 100ms.</p>
<p>javascript:(function(){<br />
    function c(){<br />
        YAHOO.music.WebPlayer.asyncLoadPlayer();<br />
    }<br />
    var e=document.createElement("script");<br />
    if(e.addEventListener){<br />
        e.addEventListener("load",c,false);<br />
    }<br />
    else{<br />
        e.onreadystatechange=function(){if(this.readyState=="complete"){c();}}<br />
    }<br />
    e.type="text/javascript";<br />
    e.src="http://mediaplayer.yahoo.com/js";<br />
    document.getElementsByTagName("head")[0].appendChild(e);<br />
})();
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: foo</title>
		<link>http://www.phpied.com/mp3-player-from-yahoo-bookmarklet/#comment-63580</link>
		<pubDate>Wed, 23 Jan 2008 12:32:11 +0000</pubDate>
		<guid>http://www.phpied.com/mp3-player-from-yahoo-bookmarklet/#comment-63580</guid>
					<description>this runs without an error, but it does nothing:

javascript:(function(){var script = document.createElement('script');script.src = 'http://mediaplayer.yahoo.com/now';document.getElementsByTagName('head')[0].appendChild(script);setTimeout('function(){YAHOO.music.WebPlayer.asyncLoadPlayer();}', 1000);})()

btw. better use &quot;http://mediaplayer.yahoo.com/now&quot; as script source ;)</description>
		<content:encoded><![CDATA[<p>this runs without an error, but it does nothing:</p>
<p>javascript:(function(){var script = document.createElement('script');script.src = 'http://mediaplayer.yahoo.com/now';document.getElementsByTagName('head')[0].appendChild(script);setTimeout('function(){YAHOO.music.WebPlayer.asyncLoadPlayer();}', 1000);})()</p>
<p>btw. better use "http://mediaplayer.yahoo.com/now" as script source <img src='http://www.phpied.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Stoyan</title>
		<link>http://www.phpied.com/mp3-player-from-yahoo-bookmarklet/#comment-63579</link>
		<pubDate>Wed, 23 Jan 2008 10:58:45 +0000</pubDate>
		<guid>http://www.phpied.com/mp3-player-from-yahoo-bookmarklet/#comment-63579</guid>
					<description>foo, this is probably because the script is not yet loaded (note to self: should've done a better job testing if the script is loaded). 

You can just run it again after you give it a second or so to load.</description>
		<content:encoded><![CDATA[<p>foo, this is probably because the script is not yet loaded (note to self: should've done a better job testing if the script is loaded). </p>
<p>You can just run it again after you give it a second or so to load.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
