home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
Improvement Suggestions
Pandora Internet Radio Plugin Vote
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="afidel" data-source="post: 206689" data-attributes="member: 51971"><p>Another approach would be to use the XML generated by Pandora for blogs and consume it to make a list page that then loads the target in an iframe with some javascript to catch the esc key which depending on if an iframe is open will either close the iframe or close the plugin. You'd simply need to use this javascript</p><p>[CODE]</p><p>function lookupEmail(form) {</p><p> var emailAddress = $("input[@name=email]", form).val();</p><p> if (emailAddress != "enter email address" && emailAddress.length > 0) {</p><p> if (cache[emailAddress] == null) {</p><p> jQuery.getJSON(</p><p> "/services/ajax/",</p><p> { method : "authenticate.emailToWebname", email : emailAddress },</p><p> function(json) {</p><p> if (json.stat == "ok") {</p><p> cache[emailAddress] = json.result.webname;</p><p> showFeed(form, json.result.webname);</p><p> } else {</p><p> showError(form, "ERROR: Could not find email address");</p><p> }</p><p> }</p><p> );</p><p> } else {</p><p> showFeed(form, cache[emailAddress]);</p><p> }</p><p> } else {</p><p> alert("Please enter your email address.");</p><p> }</p><p>}</p><p></p><p>[/CODE]</p><p></p><p>from <a href="http://www.pandora.com/feeds" target="_blank">http://www.pandora.com/feeds</a></p><p></p><p>to generate a URL in the form http://feeds.pandora.com/feeds/people/<username>/stations.xml?max=<1-100></p><p>which is an rss which lists the users current n channels.</p><p></p><p>This would even be kosher because the iframe would include the ads so pandora doesn't lose any ad revenue.</p></blockquote><p></p>
[QUOTE="afidel, post: 206689, member: 51971"] Another approach would be to use the XML generated by Pandora for blogs and consume it to make a list page that then loads the target in an iframe with some javascript to catch the esc key which depending on if an iframe is open will either close the iframe or close the plugin. You'd simply need to use this javascript [CODE] function lookupEmail(form) { var emailAddress = $("input[@name=email]", form).val(); if (emailAddress != "enter email address" && emailAddress.length > 0) { if (cache[emailAddress] == null) { jQuery.getJSON( "/services/ajax/", { method : "authenticate.emailToWebname", email : emailAddress }, function(json) { if (json.stat == "ok") { cache[emailAddress] = json.result.webname; showFeed(form, json.result.webname); } else { showError(form, "ERROR: Could not find email address"); } } ); } else { showFeed(form, cache[emailAddress]); } } else { alert("Please enter your email address."); } } [/CODE] from [url]http://www.pandora.com/feeds[/url] to generate a URL in the form http://feeds.pandora.com/feeds/people/<username>/stations.xml?max=<1-100> which is an rss which lists the users current n channels. This would even be kosher because the iframe would include the ads so pandora doesn't lose any ad revenue. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
Pandora Internet Radio Plugin Vote
Contact us
RSS
Top
Bottom