3dbounce
Posts: 0
Joined: Sat May 18, 2013 9:58 am

How to add a button to an rss feed

Hi,

after changing myNavigate none of the buttons work.

This is what i have:
function myNavigate(url) {
if (/function myNavigate(url) {
if (/\.pdf$/i.test(url)) {
//If url ends with ".PDF" then open it in system browser
window.open(url, '_system');
} else {
var cb;
if (window.plugins) {
cb = window.plugins.childBrowser;
}
if (cb != null) {
cb.showWebPage(url);
} else {
window.open(url);
};
}
}

is there a way to get it to always open in standard browser?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How to add a button to an rss feed

Hi, there is a typo in code, sorry. Please find the correct code here https://gist.github.com/anonymous/372...

3dbounce
Posts: 0
Joined: Sat May 18, 2013 9:58 am

How to add a button to an rss feed

Hi,

I switched the code up a bit so now it always opens in there preferred browser:

function myNavigate(url) {
var cb;
if (window.plugins) {
cb = window.location = url;
}
if (cb != null) {
cb.showWebPage(url);
} else {
window.open(url);
};
}

Work around so that i don't need to use the in app browser "childBrowser." If you can see any problems with this please tell me but it seems to be working for now!

Thanks a lot guys.

Return to “Issues”