Child browser plugin for blackberry

Showing 1-32 of 32 messages
Child browser plugin for blackberry lakshman 3/26/12 5:49 AM
Hello Friends,

I am using phonegap 1.3.0 version for my application...

In my application i want to show browser field using child browser
plugin for blackberry...

i get the following error while running application

Type error:Result of expression window.plugins.childBrowser[undefined]
is not an object..

can anyone help me to avoid this problem

Regards,
Lakshmanan
Re: [PhoneGap] Child browser plugin for blackberry Drew 3/26/12 5:52 AM
Are you sure you followed all the steps under "Adding the plugin to
your project":

https://github.com/phonegap/phonegap-plugins/tree/master/BlackBerry/ChildBrowser

Are other phonegap API working?

> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com

Re: [PhoneGap] Child browser plugin for blackberry lakshman 3/26/12 6:23 AM
Drew,

Thanks for your reply,

I create a directory com.phonegap.plugins.childbrowser in phonegap.1.3.0 jar file as told by that link...

I added childbrowser.js in my projects www folder and added phonegap.1.3.0.jar file in ext folder..

config.xml

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets"
        xmlns:rim="http://www.blackberry.com/ns/widgets"
        version="1.0.0.0">
   <name>childbrowser</name>
   <action>access_shared</action>
   <permission>access_shared</permission> 
   
   <content src="index.html"/>
   <access subdomains="true" uri="*" />
  
</widget>

plugins.xml

<?xml version="1.0" encoding="UTF-8"?>
<plugins>
  <plugin name="App"            value="com.phonegap.app.App"/>
  <plugin name="Device"         value="com.phonegap.device.Device"/>
  <plugin name="Camera"         value="com.phonegap.camera.Camera"/>
  <plugin name="Network Status" value="com.phonegap.network.Network"/>
  <plugin name="Notification"   value="com.phonegap.notification.Notification"/>
  <plugin name="Accelerometer"  value="com.phonegap.accelerometer.Accelerometer"/>
  <plugin name="Geolocation"    value="com.phonegap.geolocation.Geolocation"/>
  <plugin name="File"           value="com.phonegap.file.FileManager"/>
  <plugin name="FileTransfer"   value="com.phonegap.http.FileTransfer"/>
  <plugin name="Contact"        value="com.phonegap.pim.Contact"/>
  <plugin name="MediaCapture"   value="com.phonegap.media.MediaCapture"/>
  <plugin name="Battery"        value="com.phonegap.battery.Battery"/>
  <plugin name="ChildBrowser"   value="com.phonegap.plugins.childbrowser.ChildBrowser"/>
</plugins>

Index.html


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <!-- Change this if you want to allow scaling -->
        <meta name="viewport" content="width=default-width; user-scalable=no" />
        <meta http-equiv="Content-type" content="text/html; charset=utf-8">
           
            <title>HelloPhoneGap</title>        
            <script type="text/javascript" charset="utf-8" src="phonegap-1.3.0.js"></script>
            <script type="text/javascript" charset="utf-8" src="www/childbrowser.js"></script>
            <script type="text/javascript" charset="utf-8">
                var childBrowser;
               
                function openChildBrowser()
                {
                    try {
                      
                        window.plugins.ChildBrowser.showWebPage("http://www.google.com", { showLocationBar: true });
                    }
                    catch (err)
                    {
                        alert(err);
                    }
                }
                </script>
            </head>
    <body onload="openChildBrowser();">
          
    </body>
</html>



While running this application i get Type error:Result of expression window.plugins.childBrowser[​undefined] is not an object..
Re: [PhoneGap] Child browser plugin for blackberry Drew 3/26/12 6:38 AM
Here are some things to look at that I noticed from a quick glance at your code:

1. If that is your complete config.xml file, then you are missing a
lot of permissions. I would recommend looking at the config.xml
provided in the sample/www folder in the phonegap download.

2. Your index.html is referencing www/childbrowser.js while the
phonegap reference is just phonegap-1.3.0.js.  Is childbrowser.js
really in a different directory then phonegap-1.3.0.js and index.html?

3. In your sample code you have window.plugins.ChildBrowser instead of
window.plugins.childBrowser.

4. I would encourage you to verify that deviceready is firing as well.
 That will confirm that PhoneGap has properly initialized.  Here's one
way to restructure your code:

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" id="viewport"
content="width=device-width,height=device-height,initial-scale=1.0,user-scalable=no">


            <title>HelloPhoneGap</title>
            <script type="text/javascript" charset="utf-8"
src="phonegap-1.3.0.js"></script>
            <script type="text/javascript" charset="utf-8"
src="www/childbrowser.js"></script>
            <script type="text/javascript" charset="utf-8">
                var childBrowser;

                function listenReady() {
                    document.addEventListener("deviceready",
openChildBrowser, true);
                }

                function openChildBrowser()
                {
                    console.log("opening child browser");
                    try {

window.plugins.childBrowser.showWebPage("http://www.google.com", {


showLocationBar : true });
                    }
                    catch (err)
                    {
                        alert(err);
                    }
                }
                </script>
            </head>
    <body onload="listenReady();">

    </body>
</html>

>> Are other phonegap API working?
>>
>> On Mon, Mar 26, 2012 at 7:49 AM, lakshman <lperu...@gmail.com> wrote:
>> > Hello Friends,
>> >
>> > I am using phonegap 1.3.0 version for my application...
>> >
>> > In my application i want to show browser field using child browser
>> > plugin for blackberry...
>> >
>> > i get the following error while running application
>> >
>> > Type error:Result of expression window.plugins.childBrowser[undefined]
>> > is not an object..
>> >
>> > can anyone help me to avoid this problem
>> >
>> > Regards,
>> > Lakshmanan
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "phonegap" group.
>> > To post to this group, send email to phon...@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > phonegap+u...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/phonegap?hl=en?hl=en
>> >
>> > For more info on PhoneGap or to download the code go to www.phonegap.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com

Re: [PhoneGap] Child browser plugin for blackberry lakshman 3/28/12 1:26 AM
Drew,

Thanks for ur reply,

I did all the things u said... the deviceready fn is firing.. But i cant open the webpage.. it shows me blank page....

Regards,
Lakshmanan
Re: Child browser plugin for blackberry lakshman 3/28/12 2:49 AM
Drew,

I did all changes as per your suggestions.. Deviceready fn is firing..
now it didnt show me any error... But i get blank page when call
window.plugins.childbrowser.showWebPage(url)..

I elaborately explain here what i did in my application.

I created a new project.. it contains ext
folder,index.html,config.xml...

I copied my phonegap.1.3.0.jar file into ext folder...
In my jar i created a directory "plugins/childbrowser" within the
directory "com/phonegap" where i copied all my .java files...

I copied www folder which contains childbrowser.js and images into the
project.

In index.html i used your code..

I copied phonegap's config.xml contents into projects config.xml
file...

In plugin.xml file i added these lines
<plugin name="ChildBrowser"
value="com.phonegap.plugins.childbrowser.ChildBrowser"/>


I dont know where i made mistake...
Can you help me how to solve this problem...

My another question is

Using this plugin how to show the web page in the same window where
the firing is happened...

Regards,
Lakshmanan
> >>https://github.com/phonegap/phonegap-plugins/tree/master/BlackBerry/C...
>
> >> Are other phonegap API working?
>
Re: [PhoneGap] Re: Child browser plugin for blackberry Drew 3/28/12 6:55 AM
So you are now getting a blank page.  Does it have the tool bar at the
top (back/forward buttons, URL location)?  Does your device/simulator
have network connectivity?
Re: [PhoneGap] Re: Child browser plugin for blackberry lakshman 3/28/12 9:11 AM
Drew,


I didnt get any toolbar at top of the screen... I got blank page only... My simulator has network connectivity... window.plugins.childbrowser.showWebPage(url,{showlocationbar:true}) is not working..i dont know where i made mistake... I tried another child browser plugin given on github by author rsweny... It is working perfectly...

I have another question to clarify..

How to open the webpage in the same window where the event is firing... i want to open the web page in  index.html page itself... i dont want new page.. Can u give me any suggestions...

Regards,
Lakshmanan...
Re: Child browser plugin for blackberry lakshman 3/28/12 9:15 AM
Re: Child browser plugin for blackberry filmaj 3/28/12 10:38 AM
Make sure you have the remote webpage you are trying to load added to
your config.xml's access whitelist.

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Common-BlackBerry-WebWorks-development-pitfalls-that-can-be/ta-p/624712
Re: [PhoneGap] Re: Child browser plugin for blackberry Drew 3/28/12 10:49 AM
I don't believe it is necessary to whitelist the URL loaded by the
child browser. However, in order to load the URL in the WebWorks
webview (same page) then you would need to whitelist it by adding it
to config.xml as Fil stated.

> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com

Re: [PhoneGap] Re: Child browser plugin for blackberry Drew 3/28/12 11:34 AM
Lakshmanan, are you by chance testing on an OS 7 simulator? For some
reason the OS 7 simulator gives me a blank screen (toolbar loads).  OS
6 and OS 5 simulators work.
Re: [PhoneGap] Re: Child browser plugin for blackberry lakshman 3/29/12 4:58 AM
Drew,

I am using 9800 simulator only.. It shows me blank screen...

My requirement is when i click a button it should open web page from child browser plugin in the same window(i.e) below the button itself..

I tried many methods.. but it all opens in the next window(i.e)new window...
Re: [PhoneGap] Re: Child browser plugin for blackberry lakshman 3/29/12 5:09 AM
Drew,

I am using 9800 simulator only.. It shows me blank screen...

My requirement is when i click a button it should open web page from child browser plugin in the same window(i.e) below the button itself..

I tried many methods.. but it all opens in the next window(i.e)new window...

Regards,
lakshmanan
Re: [PhoneGap] Re: Child browser plugin for blackberry Drew 3/29/12 6:53 AM
The ChildBrowser plugin is not designed to embed pages inside another pages.  Its purpose is to load content in another menu and provide a means for your app to be notified when new pages are loaded in that new window.

Would an iframe work for what you are trying to do?
Re: [PhoneGap] Re: Child browser plugin for blackberry Ash 7/18/12 2:58 AM
Hello Drew,

I am following the steps given in https://github.com/phonegap/phonegap-plugins/tree/master/BlackBerry/C... link, in command line I am getting Build Successful when i run ant blackberry build command, but when I run  ant blackberry load-simulator command I get Build failed and standardInstall does not exists error. I got stuck here please help me...

Thanks and regards
Ashwini

Re: [PhoneGap] Re: Child browser plugin for blackberry Drew 7/18/12 10:48 AM
Please provide the full output of the build error.
> --
> -- You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>
> To compile in the cloud, check out build.phonegap.com
>
>
Re: [PhoneGap] Re: Child browser plugin for blackberry Ash 7/18/12 10:24 PM
ya it gives as build failed standardInstall does not exist.

On Wednesday, July 18, 2012 11:18:48 PM UTC+5:30, Drew wrote:
Please provide the full output of the build error.
  wrote:
> Hello Drew,
>
> I am following the steps given in
> https://github.com/phonegap/phonegap-plugins/tree/master/BlackBerry/C...
> link, in command line I am getting Build Successful when i run ant
> blackberry build command, but when I run  ant blackberry load-simulator
> command I get Build failed and standardInstall does not exists error. I got
> stuck here please help me...
>
> Thanks and regards
> Ashwini
>
> --
> -- You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>
> To compile in the cloud, check out build.phonegap.com
>
>
Re: [PhoneGap] Re: Child browser plugin for blackberry Ashwini Upadhya 8/12/12 8:55 PM
Hello Drew these errors I am getting:
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Nitin Hegade>cd C:\Dev\phonegap-2.0.0\lib\blackberry\sample

C:\Dev\phonegap-2.0.0\lib\blackberry\sample>ant blackberry build
Buildfile: C:\Dev\phonegap-2.0.0\lib\blackberry\sample\build.xml

blackberry:

build:

generate-cod-name:
     [echo] Generated name: cordovaExample.cod

clean:
   [delete] Deleting directory C:\Dev\phonegap-2.0.0\lib\blackberry\sample\build


package-app:
    [mkdir] Created dir: C:\Dev\phonegap-2.0.0\lib\blackberry\sample\build\widge
t
     [copy] Copying 13 files to C:\Dev\phonegap-2.0.0\lib\blackberry\sample\buil
d\widget
      [zip] Building zip: C:\Dev\phonegap-2.0.0\lib\blackberry\sample\build\cord
ovaExample.zip

build:
     [exec] [INFO]                      Parsing command line options
     [exec] [INFO]                      Parsing bbwp.properties
     [exec] [INFO]                      Validating application archive
     [exec] [INFO]                      Parsing config.xml
     [exec] [WARNING]                   Failed to find the <author> element
     [exec] [INFO]                      Populating application source
     [exec] [ERROR]                     Feature cannot be found in any extension
(org.apache.cordova)

BUILD SUCCESSFUL
Total time: 33 seconds

C:\Dev\phonegap-2.0.0\lib\blackberry\sample>ant blackberry load-simulator
Buildfile: C:\Dev\phonegap-2.0.0\lib\blackberry\sample\build.xml

blackberry:

load-simulator:

generate-cod-name:
     [echo] Generated name: cordovaExample.cod

clean:
   [delete] Deleting directory C:\Dev\phonegap-2.0.0\lib\blackberry\sample\build


package-app:
    [mkdir] Created dir: C:\Dev\phonegap-2.0.0\lib\blackberry\sample\build\widge
t
     [copy] Copying 13 files to C:\Dev\phonegap-2.0.0\lib\blackberry\sample\buil
d\widget
      [zip] Building zip: C:\Dev\phonegap-2.0.0\lib\blackberry\sample\build\cord
ovaExample.zip

build:
     [exec] [INFO]                      Parsing command line options
     [exec] [INFO]                      Parsing bbwp.properties
     [exec] [INFO]                      Validating application archive
     [exec] [INFO]                      Parsing config.xml
     [exec] [WARNING]                   Failed to find the <author> element
     [exec] [INFO]                      Populating application source
     [exec] [ERROR]                     Feature cannot be found in any extension
(org.apache.cordova)

load-simulator:
     [echo] Simulator directory=C:\BBWP\simpack\7.0.0.318
     [echo] Simulator directory=C:\BBWP\simpack\7.0.0.318
     [echo] Simulator executable=C:\BBWP\simpack\7.0.0.318/9930.bat
     [echo] Closing all running simulators...
     [exec] No sessions currently running.
     [exec] Result: 1
     [echo] MDS directory=C:\BBWP/mds

BUILD FAILED
C:\Dev\phonegap-2.0.0\lib\blackberry\sample\build.xml:50: The following error oc
curred while executing this line:
C:\Dev\phonegap-2.0.0\lib\blackberry\sample\blackberry.xml:152: C:\Dev\phonegap-
2.0.0\lib\blackberry\sample\build\StandardInstall does not exist.

Total time: 27 seconds

C:\Dev\phonegap-2.0.0\lib\blackberry\sample>

On Wednesday, July 18, 2012 11:18:48 PM UTC+5:30, Drew wrote:
Re: [PhoneGap] Re: Child browser plugin for blackberry Drew 8/13/12 8:47 AM
The key error is this one:

[exec] [ERROR]                     Feature cannot be found in any extension
(org.apache.cordova)

This typically means you don't have the proper cordova.jar in your
projects www/ext folder.  Please verify you have the cordova.jar
located there and that you have added the ChildBrowser source code as
indicated in the Readme for the child browser plugin.
Re: [PhoneGap] Re: Child browser plugin for blackberry Ashwini Upadhya 8/14/12 2:01 AM
Thanks for your reply Drew. I have a doubt that in phonegap plugins childbrowser readme , it is given that "Add the plugin source to your cordova.jar in your projects ext folder. The cordova.jar file is a jar of source code. Open cordova.jar with your favorite archive manager or use the jar command to create a directory called "org/apache/cordova/plugins/childbrowser" and copy the .java files into it.". For this I have extracted the cordova.2.0.0.jar file then added a folder named "org.apache.cordova.plugins.childbrowser". then I zipped the extracted folder which had .zip extension, then to covert into jar file, I replaced the word zip with jar. Is it where I have gone wrong? Actually I wanted to integrate facebook in blackberry using phonegap so I thought of doing in childbrowser.

Thanks and regards
Ashwini
Re: [PhoneGap] Re: Child browser plugin for blackberry Drew 8/14/12 8:13 AM
I would think that would work. Recommended way would be to use the jar
command that comes with java. Can you send me your cordova.jar file
and I'll take a look?
Re: [PhoneGap] Re: Child browser plugin for blackberry Ashwini Upadhya 8/15/12 9:10 PM
Hi Drew,

Please find the attached jar file.

Thanks and regards
Ashwini
Re: [PhoneGap] Re: Child browser plugin for blackberry Ashwini Upadhya 8/15/12 10:57 PM
Hi Drew,

I have got know where I had gone wrong. Actually the folder creations in jar file wasn't proper and now I did it proper. In my simulator when I launch my app I am getting the error windows.plugin[undefined]. What may be the problem? I included the line   <plugin name="ChildBrowser"   value="org.apache.cordova.plugins.childbrowser.ChildBrowser"/>  in my plugins.xml  and I didn't change anything in config.xml. I have attached the modified jar file.

Thanks and regards
Ashwini
Re: [PhoneGap] Re: Child browser plugin for blackberry Drew 8/16/12 9:20 AM
Ashwini, you're cordova.jar file is still not correct.  You placed the
ChildBrowser code in a top level directory named
"org.apache.cordova.plugins.childbrowser". You need to place the code
inside of the existing folder structure in the jar file. The default
cordova.jar has a file structure with org/apache/cordova/.  You should
create subdirectories beneath org/apache/cordova for
plugins/childbrowser. The plugin source should then be copied into the
file path of org/apache/cordova/plugins/childbrowser.

For the "windows.plugin[undefined]" error, are you including the
childbrowser.js file after the cordova.js file? Also, make sure you
have the latest version of childbrowser.js from github because I
updated it recently for 2.0.0 support.
Re: [PhoneGap] Re: Child browser plugin for blackberry Ashwini Upadhya 8/17/12 2:13 AM
Thank you so much Drew for your help. I am getting the childbrowser :). Now using this childbrowser can I connect to facebook and have "sharing"  feature? How can I do this?

Thanks and regards
Ashwini

On Thursday, August 16, 2012 9:50:35 PM UTC+5:30, Drew wrote:
Ashwini, you're cordova.jar file is still not correct.  You placed the
ChildBrowser code in a top level directory named
"org.apache.cordova.plugins.childbrowser". You need to place the code
inside of the existing folder structure in the jar file. The default
cordova.jar has a file structure with org/apache/cordova/.  You should
create subdirectories beneath org/apache/cordova for
plugins/childbrowser. The plugin source should then be copied into the
file path of org/apache/cordova/plugins/childbrowser.

For the "windows.plugin[undefined]" error, are you including the
childbrowser.js file after the cordova.js file? Also, make sure you
have the latest version of childbrowser.js from github because I
updated it recently for 2.0.0 support.

On Thu, Aug 16, 2012 at 12:57 AM, Ashwini <upadhya....@gmail.com> wrote:
> Hi Drew,
>
> I have got know where I had gone wrong. Actually the folder creations in jar
> file wasn't proper and now I did it proper. In my simulator when I launch my
> app I am getting the error windows.plugin[undefined]. What may be the
> problem? I included the line   <plugin name="ChildBrowser"
> value="org.apache.cordova.plugins.childbrowser.ChildBrowser"/>  in my
> plugins.xml  and I didn't change anything in config.xml. I have attached the
> modified jar file.
>
> Thanks and regards
> Ashwini
>
>
>
>
>
>
> On Tuesday, August 14, 2012 8:43:30 PM UTC+5:30, Drew wrote:
>>
>> I would think that would work. Recommended way would be to use the jar
>> command that comes with java. Can you send me your cordova.jar file
>> and I'll take a look?
>>
>> On Tue, Aug 14, 2012 at 4:01 AM, Ashwini <upadhya....@gmail.com> wrote:
>> > Thanks for your reply Drew. I have a doubt that in phonegap plugins
>> > childbrowser readme , it is given that "Add the plugin source to your
>> > cordova.jar in your projects ext folder. The cordova.jar file is a jar
>> > of
>> > source code. Open cordova.jar with your favorite archive manager or use
>> > the
>> > jar command to create a directory called
>> > "org/apache/cordova/plugins/childbrowser" and copy the .java files into
>> > it.". For this I have extracted the cordova.2.0.0.jar file then added a
>> > folder named "org.apache.cordova.plugins.childbrowser". then I zipped
>> > the
>> > extracted folder which had .zip extension, then to covert into jar file,
>> > I
>> > replaced the word zip with jar. Is it where I have gone wrong? Actually
>> > I
>> > wanted to integrate facebook in blackberry using phonegap so I thought
>> > of
>> > doing in childbrowser.
>> >
>> > Thanks and regards
>> > Ashwini
>> >
>> > On Monday, August 13, 2012 9:17:29 PM UTC+5:30, Drew wrote:
>> >>
>> >> The key error is this one:
>> >>
>> >> [exec] [ERROR]                     Feature cannot be found in any
>> >> extension
>> >> (org.apache.cordova)
>> >>
>> >> This typically means you don't have the proper cordova.jar in your
>> >> projects www/ext folder.  Please verify you have the cordova.jar
>> >> located there and that you have added the ChildBrowser source code as
>> >> indicated in the Readme for the child browser plugin.
>> >>
>> >> On Sun, Aug 12, 2012 at 10:55 PM, Ashwini <upadhya....@gmail.com>
>> >> wrote:
>> >> > Hello Drew these errors I am getting:
>> >> > Microsoft Windows [Version 6.1.7600]
>> >> > Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
>> >> >
>> >> > C:\Users\Nitin Hegade>cd C:\Dev\phonegap-2.0.0\lib\blackberry\sample
>> >> >
>> >> > C:\Dev\phonegap-2.0.0\lib\blackberry\sample>ant blackberry build
>> >> > Buildfile: C:\Dev\phonegap-2.0.0\lib\blackberry\sample\build.xml
>> >> >
>> >> > blackberry:
>> >> >
>> >> > build:
>> >> >
>> >> > generate-cod-name:
>> >> >      [echo] Generated name: cordovaExample.cod
>> >> >
>> >> > clean:
>> >> >    [delete] Deleting directory
>> >> > C:\Dev\phonegap-2.0.0\lib\blackberry\sample\build
>> >> >
>> >> >
>> >> > package-app:
>> >> >     [mkdir] Created dir:
>> >> > C:\Dev\phonegap-2.0.0\lib\blackberry\sample\build\widge
>> >> > t
>> >> >      [copy] Copying 13 files to
>> >> > C:\Dev\phonegap-2.0.0\lib\blackberry\sample\buil
>> >> > d\widget
>> >> >       [zip] Building zip:
>> >> > C:\Dev\phonegap-2.0.0\lib\blackberry\sample\build\cord
>> >> > ovaExample.zip
>> >> >
>> >> > build:
>> >> >      [exec] [INFO]                      Parsing command line options
>> >> >      [exec] [INFO]                      Parsing bbwp.properties
>> >> >      [exec] [INFO]                      Validating application
>> >> > archive
>> >> >      [exec] [INFO]                      Parsing config.xml
>> >> >      [exec] [WARNING]                   Failed to find the <author>
>> >> > element
>> >> >      [exec] [INFO]                      Populating application source
>> >> >      [exec] [ERROR]                     Feature cannot be found in
>> >> > any
>> >> > extension
>> >> > (org.apache.cordova)
>> >> >
>> >> > BUILD SUCCESSFUL
>> >> > Total time: 33 seconds
>> >> >
>> >> > C:\Dev\phonegap-2.0.0\lib\blackberry\sample>ant blackberry
>> >> > load-simulator
>> >> > Buildfile: C:\Dev\phonegap-2.0.0\lib\blackberry\sample\build.xml
>> >> >
>> >> > blackberry:
>> >> >
>> >> > load-simulator:
>> >> >
>> >> > generate-cod-name:
>> >> >      [echo] Generated name: cordovaExample.cod
>> >> >
>> >> > clean:
>> >> >    [delete] Deleting directory
>> >> > C:\Dev\phonegap-2.0.0\lib\blackberry\sample\build
>> >> >
>> >> >
>> >> > package-app:
>> >> >     [mkdir] Created dir:
>> >> > C:\Dev\phonegap-2.0.0\lib\blackberry\sample\build\widge
>> >> > t
>> >> >      [copy] Copying 13 files to
>> >> > C:\Dev\phonegap-2.0.0\lib\blackberry\sample\buil
>> >> > d\widget
>> >> >       [zip] Building zip:
>> >> > C:\Dev\phonegap-2.0.0\lib\blackberry\sample\build\cord
>> >> > ovaExample.zip
>> >> >
>> >> > build:
>> >> >      [exec] [INFO]                      Parsing command line options
>> >> >      [exec] [INFO]                      Parsing bbwp.properties
>> >> >      [exec] [INFO]                      Validating application
>> >> > archive
>> >> >      [exec] [INFO]                      Parsing config.xml
>> >> >      [exec] [WARNING]                   Failed to find the <author>
>> >> > element
>> >> >      [exec] [INFO]                      Populating application source
>> >> >      [exec] [ERROR]                     Feature cannot be found in
>> >> > any
>> >> > extension
>> >> > (org.apache.cordova)
>> >> >
>> >> > load-simulator:
>> >> >      [echo] Simulator directory=C:\BBWP\simpack\7.0.0.318
>> >> >      [echo] Simulator directory=C:\BBWP\simpack\7.0.0.318
>> >> >      [echo] Simulator executable=C:\BBWP\simpack\7.0.0.318/9930.bat
>> >> >      [echo] Closing all running simulators...
>> >> >      [exec] No sessions currently running.
>> >> >      [exec] Result: 1
>> >> >      [echo] MDS directory=C:\BBWP/mds
>> >> >
>> >> > BUILD FAILED
>> >> > C:\Dev\phonegap-2.0.0\lib\blackberry\sample\build.xml:50: The
>> >> > following
>> >> > error oc
>> >> > curred while executing this line:
>> >> > C:\Dev\phonegap-2.0.0\lib\blackberry\sample\blackberry.xml:152:
>> >> > C:\Dev\phonegap-
>> >> > 2.0.0\lib\blackberry\sample\build\StandardInstall does not exist.
>> >> >
>> >> > Total time: 27 seconds
>> >> >
>> >> > C:\Dev\phonegap-2.0.0\lib\blackberry\sample>
>> >> >
>> >> > On Wednesday, July 18, 2012 11:18:48 PM UTC+5:30, Drew wrote:
>> >> >>
>> >> >> Please provide the full output of the build error.
>> >> >>
>> >> >> On Wed, Jul 18, 2012 at 4:58 AM, Ash <smithaupad...@gmail.com>
>> >> >> wrote:
>> >> >> > Hello Drew,
>> >> >> >
>> >> >> > I am following the steps given in
>> >> >> >
>> >> >> >
>> >> >> > https://github.com/phonegap/phonegap-plugins/tree/master/BlackBerry/C...
>> >> >> > link, in command line I am getting Build Successful when i run ant
>> >> >> > blackberry build command, but when I run  ant blackberry
>> >> >> > load-simulator
>> >> >> > command I get Build failed and standardInstall does not exists
>> >> >> > error.
>> >> >> > I
>> >> >> > got
>> >> >> > stuck here please help me...
>> >> >> >
>> >> >> > Thanks and regards
>> >> >> > Ashwini
>> >> >> >
>> >> >> > --
>> >> >> > -- You received this message because you are subscribed to the
>> >> >> > Google
>> >> >> > Groups "phonegap" group.
>> >> >> > To post to this group, send email to phon...@googlegroups.com
>> >> >> > To unsubscribe from this group, send email to
>> >> >> > phonegap+u...@googlegroups.com
>> >> >> > For more options, visit this group at
>> >> >> > http://groups.google.com/group/phonegap?hl=en?hl=en
>> >> >> >
>> >> >> > For more info on PhoneGap or to download the code go to
>> >> >> > www.phonegap.com
>> >> >> >
>> >> >> > To compile in the cloud, check out build.phonegap.com
>> >> >> >
>> >> >> >
>> >> >
>> >> > --
>> >> > -- You received this message because you are subscribed to the Google
>> >> > Groups "phonegap" group.
>> >> > To post to this group, send email to phon...@googlegroups.com
>> >> > To unsubscribe from this group, send email to
>> >> > phonegap+u...@googlegroups.com
>> >> > For more options, visit this group at
>> >> > http://groups.google.com/group/phonegap?hl=en?hl=en
>> >> >
>> >> > For more info on PhoneGap or to download the code go to
>> >> > www.phonegap.com
>> >> >
>> >> > To compile in the cloud, check out build.phonegap.com
>> >> >
>> >> >
>> >
>> > --
>> > -- You received this message because you are subscribed to the Google
>> > Groups "phonegap" group.
>> > To post to this group, send email to phon...@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > phonegap+u...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/phonegap?hl=en?hl=en
>> >
>> > For more info on PhoneGap or to download the code go to www.phonegap.com
>> >
>> > To compile in the cloud, check out build.phonegap.com
>> >
>> >
>
> --
> -- You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>
> To compile in the cloud, check out build.phonegap.com
>
>
Re: [PhoneGap] Re: Child browser plugin for blackberry Drew 8/17/12 7:53 AM
I don't have any experience doing facebook auth, you might be able to
do something similar to the twitter authentication done in this
tutorial:

http://www.mobiledevelopersolutions.com/home/start/twominutetutorials/tmt5p1
Re: [PhoneGap] Re: Child browser plugin for blackberry Ashwini Upadhya 8/19/12 8:30 PM
Ok Drew fine thank you so much for your suggestions.

Regards
Ashwini
Re: [PhoneGap] Re: Child browser plugin for blackberry Ashwini Upadhya 8/21/12 5:13 AM

Hi all,
 
Any one using eclipse for Blackberry phonegap application development. What shall I do to get "Blackberry webworks project" while creating a new project in eclipse? I thought of following the link "http://vikaskanani.wordpress.com/2011/05/17/how-to-create-blackberry-webwork-phonegap-project-in-eclipse/", but I am not getting "Blackberry webworks project" while creating the project. Please help me.
Re: [PhoneGap] Re: Child browser plugin for blackberry in4p 10/9/12 4:59 PM
Hey Drew,

I've been trying to get the ChildBrowser plugin to work with the latest cordova for bb (https://github.com/apache/incubator-cordova-blackberry-webworks).

I've followed the directions making sure to include the js file, and insert the java files into the jar. But when I try to launch the childbrowser plugin, Cordova throws the following error:
Error: Status=2 Message=Class ChildBrowser cannot be found 
It seems to be caused by the plugin manager (line 6240), not finding the ChildBrowser plugin in the plugin array. This despite adding the ChildBrowser plugin to the plugins.xml file.

Any suggestions or thoughts?

Thanks a ton!

On Thursday, August 16, 2012 12:20:35 PM UTC-4, Drew wrote:
Ashwini, you're cordova.jar file is still not correct.  You placed the
ChildBrowser code in a top level directory named
"org.apache.cordova.plugins.childbrowser". You need to place the code
inside of the existing folder structure in the jar file. The default
cordova.jar has a file structure with org/apache/cordova/.  You should
create subdirectories beneath org/apache/cordova for
plugins/childbrowser. The plugin source should then be copied into the
file path of org/apache/cordova/plugins/childbrowser.

For the "windows.plugin[undefined]" error, are you including the
childbrowser.js file after the cordova.js file? Also, make sure you
have the latest version of childbrowser.js from github because I
updated it recently for 2.0.0 support.

On Thu, Aug 16, 2012 at 12:57 AM, Ashwini <upadhya....@gmail.com> wrote:
> Hi Drew,
>
> I have got know where I had gone wrong. Actually the folder creations in jar
> file wasn't proper and now I did it proper. In my simulator when I launch my
> app I am getting the error windows.plugin[undefined]. What may be the
> problem? I included the line   <plugin name="ChildBrowser"
> value="org.apache.cordova.plugins.childbrowser.ChildBrowser"/>  in my
> plugins.xml  and I didn't change anything in config.xml. I have attached the
> modified jar file.
>
Re: [PhoneGap] Re: Child browser plugin for blackberry Kolade Kehinde 10/20/12 6:09 PM
I am trying to use the latest Childbrowser plugin with blackberry but I keep getting this error in firebug and chrome: 
Firebug :TypeError: cordova.exec is not a function
"showWebPage", [url, options ]);

In Chrome with Ripple I get : TypeError: Cannot call method 'showWebPage' of undefined

I am actually checking to see if the childbrowser plugin is available before trying to use it but yet i still get this error, here is my code
if(window.plugins.childBrowser){ alert("loaded"); var cb = window.plugins.childBrowser; console.log(cb); cb.showWebPage('http://www.google.com',{ showLocationBar: true });} else{ alert("Not Available"); }
Please help!!! Thanks
Re: [PhoneGap] Re: Child browser plugin for blackberry in4p 10/21/12 11:26 AM
If you're trying to use the ChildBrowser plugin with either a BB10 or Playbook it won't work.  The existing ChildBrowser plugins only works for the Java based BB's (OS7 and down).

I realize it's not the answer your looking for, but hopefully it saves you some time.
More topics »