This is a migrated thread and some comments may be shown as answers.

Open external link Childbrowser issue

3 Answers 127 Views
AppBuilder Windows client
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Audrey
Top achievements
Rank 1
Audrey asked on 15 Jan 2013, 03:30 PM
Hello,
I'm currently developping an app for iOS and Android.
I have a problem when I want to open an external link :
for iOS, I use :
         <a id="LinkPJ" href="url" rel="external" target="_blank" >
and it opens my link in Safari.

But in Android, this doesn't work :(
So I try to open my link in Childbrowser but it doesn't work neither !!

I have this issue :
Uncaught TypeError: Cannot call method 'addConstructor' of undefined (Plugins/Child%20Browser/childbrowser.js:102)

Below the part of my code :
Javascript :
$("#LinkPJ").click(function () {
                            window.plugins.childBrowser.showWebPage('http://www.google.com', { showLocationBar: true });
                         });

In the <head> :
<script type="text/javascript" src="cordova.js"></script>
        <script src="Plugins/Child Browser/childbrowser.js"></script>

I don't find the origine of the problem... Do you have any idea or solution to open an external link out of the app (Childbrowser or native android browser) in android ?

Best regards.
Audrey.






3 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 16 Jan 2013, 12:52 PM
Hi Audrey,

Your code looks fine. What version of Apache Cordova do you use? You could try to move your script definitions at the bottom of page just before </body>.

You could also try to clone our ChildBrowser plugin demo and see if it's working on your device.

Greetings,
Ivan Ivanov
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
0
Eric Garrison
Top achievements
Rank 1
answered on 11 Dec 2013, 09:37 PM
The example you point to says it was deprecated in cordova 3.0. Do you have a suggestion of what should now be used in its place? This plugin seems to do exactly what I need, but I can't find an example of anything else that I can get to work in my icenium cordova kendo setup.
0
Kaloyan
Telerik team
answered on 12 Dec 2013, 11:57 AM
Hi Eric,

The ChildBrowser plugin is now replaced with the InAppBrowser core Cordova plugin. There is a good demo about its usage, here. Documentation on InAppBrowser is available in Cordova help here.

Regards,
Kaloyan
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
AppBuilder Windows client
Asked by
Audrey
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Eric Garrison
Top achievements
Rank 1
Kaloyan
Telerik team
Share this question
or