This question is locked. New answers and comments are not allowed.
Trying to open a link in the system browser (android/ have not tried on iOS) doesn't work anymore.
The code below worked on another app, but not anymore.
<a href="javascript:window.open(encodeURI('http://metroguide.com/lib/json/venue_redir.asp?o=mia${venue_id}'), '_system');" target="_system">
${company}
</a>
It opens the in the app browser....
Help and thank you
Robert Earnest Lassiter
The code below worked on another app, but not anymore.
<a href="javascript:window.open(encodeURI('http://metroguide.com/lib/json/venue_redir.asp?o=mia${venue_id}'), '_system');" target="_system">
${company}
</a>
It opens the in the app browser....
Help and thank you
Robert Earnest Lassiter
5 Answers, 1 is accepted
0
Robert
Top achievements
Rank 1
answered on 04 Apr 2014, 01:32 PM
Same issue in iOS (not working), opens link in current web view....
Please help, losing my mind....
Please help, losing my mind....
0
Robert
Top achievements
Rank 1
answered on 07 Apr 2014, 03:28 PM
reworked the app to the following
on the detail page
<div id="x" data-role="button" data-click="app.openInSystemBrowser" data-u="http://metroguide.com/lib/json/venue_redir.asp?o=mia${venue_id}">${company}</div>
in app.js
(function (global) {
app.openInSystemBrowser = function(e) {
var u = $(e.target).data('u');
window.open(u, "_system");
}
})(window);
if I replace window.open() with alert(u) I know the parameter is being passed correctly...
on the detail page
<div id="x" data-role="button" data-click="app.openInSystemBrowser" data-u="http://metroguide.com/lib/json/venue_redir.asp?o=mia${venue_id}">${company}</div>
in app.js
(function (global) {
app.openInSystemBrowser = function(e) {
var u = $(e.target).data('u');
window.open(u, "_system");
}
})(window);
if I replace window.open() with alert(u) I know the parameter is being passed correctly...
0
Hello Robert,
I tried to reproduce your issue, but everything works as expected.
Can you provide us the name of your project so we can take a look?
Does it work in the simulator and what is the device you are using?
Notice that devices' system browsers could vary which may lead to different behavior.
Thanks.
Regards,
Zdravko
Telerik
I tried to reproduce your issue, but everything works as expected.
Can you provide us the name of your project so we can take a look?
Does it work in the simulator and what is the device you are using?
Notice that devices' system browsers could vary which may lead to different behavior.
Thanks.
Regards,
Zdravko
Telerik
Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!
0
Robert
Top achievements
Rank 1
answered on 08 Apr 2014, 04:29 PM
My apologies, it suddenly started working and I am on deadline and forgot to post back. I can't seem to get it to fail like it was. It was just opening a blank page inside the cordova webview... But now at least it's working...
Regards
Robert
Regards
Robert
0
Hello Robert,
Thanks for your reply.
I am glad everything is fine now.
Please, do not hesitate to contact us if you have any further questions or need of assistance.
Regards,
Zdravko
Telerik
Thanks for your reply.
I am glad everything is fine now.
Please, do not hesitate to contact us if you have any further questions or need of assistance.
Regards,
Zdravko
Telerik
Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!