Page 2 of 2

How to add a button to an rss feed

Posted: Thu Sep 05, 2013 5:36 pm
by 3dbounce

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?


How to add a button to an rss feed

Posted: Thu Sep 05, 2013 8:27 pm
by Maryna Brodina

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


How to add a button to an rss feed

Posted: Fri Sep 06, 2013 10:19 am
by 3dbounce

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.