1. #1
    Sencha User
    Join Date
    Jul 2012
    Location
    Bangalore
    Posts
    113
    Vote Rating
    0
    kramprabhu is on a distinguished road

      0  

    Default How to use childBrowser example

    How to use childBrowser example


    Hi

    Anybody used childBrowser successfully in Sencha Touch. If so please share your sample code snippet.
    Also let me know the compatible phonegap js and childbroser js version to be used.

    Please help me how to make childbrowser work in sencha touch.

    -Ram

  2. #2
    bricemason's Avatar
    Join Date
    Jan 2008
    Location
    Upstate NY
    Posts
    280
    Vote Rating
    44
    bricemason has a spectacular aura about bricemason has a spectacular aura about bricemason has a spectacular aura about

      0  

    Default


    What platforms are you developing for? iOS, Android, both, others? What have you tried so far? If you haven't got Sencha Touch wrapped up in PhoneGap yet then you should start by asking that question first.

    If you have Sencha Touch wrapped in PhoneGap already, then please offer a more specific part of the process you're having trouble with related to the ChildBrowser plugin. We'll need more information in order to help you out.

    Brice
    Brice Mason
    Front End Developer
    Modus Create

    @bricemason
    bricemason.com

    Sencha Touch Screencasts
    Vimeo - Sencha Touch Channel

    Github Projects:
    Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.

    Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.

    Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Location
    Bangalore
    Posts
    113
    Vote Rating
    0
    kramprabhu is on a distinguished road

      0  

    Default


    Hi

    I am currently deploying for Android OS. Could be later I start using iOS once Android is successful.

    I am including phonegap.js and childbrowser.js in sencha index.html file as below.

    <script src="cordova-2.4.0.js"></script>
    <script src="sencha-touch-all.js"></script>
    <script src="ChildBrowser.js"></script>

    Also include src\com\phonegap\plugins\childBrowser\ChildBrowser.java file in my www root folder.

    I am developing it in Windows PC with Chrome browser and deploying using sencha tool or phonegap build to android device.

    My sample code is

    window.plugins.childBrowser.openExternal("http://www.google.com");



    I get following error in my webkit browser.

    Uncaught TypeError: Object #<Object> has no method 'exec'

    And in my native app I am not getting any response.

    Let me know.. for any other info.

    -Ram

  4. #4
    bricemason's Avatar
    Join Date
    Jan 2008
    Location
    Upstate NY
    Posts
    280
    Vote Rating
    44
    bricemason has a spectacular aura about bricemason has a spectacular aura about bricemason has a spectacular aura about

      0  

    Default


    You shouldn't directly hook those libraries into index.html, they should be integrated in the build process using app.json.

    I have two step-by-step screencasts which demonstrate how to wrap a sencha touch app in phonegap for android:

    http://vimeo.com/55335529

    and another screencast which demonstrates installing the ChildBrowser plugin into the sencha touch sample app:

    http://vimeo.com/56456199

    These two screencasts demonstrate the manual process of getting this running. I have a project which automates this process (except for the plugins) called the sencha cordova builder. You can learn more about that here:

    https://github.com/bricemason/sencha-cordova-builder

    I hope this gets you started in the right direction.

    Brice
    Brice Mason
    Front End Developer
    Modus Create

    @bricemason
    bricemason.com

    Sencha Touch Screencasts
    Vimeo - Sencha Touch Channel

    Github Projects:
    Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.

    Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.

    Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.

  5. #5
    Sencha User
    Join Date
    Jul 2012
    Location
    Bangalore
    Posts
    113
    Vote Rating
    0
    kramprabhu is on a distinguished road

      0  

    Default


    I tried your example.. but got following error

    [INF] [echo] cordova library D:phonegap-2.4.0
    [INF] [echo] ios tools D:phonegap-2.4.0\lib\ios\bin
    [INF] [echo] ios create script D:phonegap-2.4.0\lib\ios\bin\\create.bat
    [INF] [echo] ios project D:\sencha\hello\build\hello\ios
    [INF] [echo] ios project built state...false
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.BasicException: one or more of the resources required to initialize the ios project cannot be resolved

    Note. I am developing in Windows PC.

  6. #6
    Sencha User
    Join Date
    Dec 2012
    Location
    Ghaziabad
    Posts
    1
    Vote Rating
    0
    Deepak Katiyar is on a distinguished road

      0  

    Default


    Can anyone tell me how wrap Sencha Touch 2.1 app with latest Phonegap for iOS. Thanks, Help is Appreciated a Lot...

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi