HTML5 on Playbook

Hi guys,.

I try a simple script HTML5 drag / move with ripple on the Chrome browser / emulator Playbook - that works well and when I create folder and tested PlayBook - bar not working!

What could be the possible reason? I use the latest SDK BlackBerry Tablet 2.2.0.5 WebWorks and my PlayBook under 2.0.1

Thanks in advance.

You have got it, which is a great article to start. As a quick comparison, a mouse event might look like this:

image.onmousedown= function (e) {
    console.log('X: ' + e.clientX);
    console.log('Y: ' + e.clientY);
};

Whereas a key event may look like this:

image.ontouchstart = function (e) {
    console.log('X: ' + e.touches[0].clientX);
    console.log('Y: ' + e.touches[0].clientY);
};

Note that for the event, we have to get the specific contact point (i.e. 0 refers to the first point of contact, that's assuming that the user has a finger on the screen.) We then retrieve the coordinates X and Y of touch. It is a very basic example, the URL that you noted will provide much more detail.

In general, each mouse event has a corresponding key event. Examples:

-mousedown: touchstart

-mouseup: touchstart

-passage of the mouse: touchmove / touchenter

-mouseout/mouseouthandler(): touchleave

The key with tactile event obstacle is aware that there may be several points of contact at any given time. If you want to just stick with the first point of contact, then the sample above with the key [0] would do that.

Tags: BlackBerry Developers

Similar Questions

  • What are the databases, we can use with html5 in playbook

    What is the best database used with html5 in playbook

    The answer lies in the developer site very well documented of the RIM:

    https://bdsc.webapps.BlackBerry.com/HTML5/APIs/database.html

    LocalStorage might be easier to use:

    https://bdsc.webapps.BlackBerry.com/HTML5/APIs/localStorage.html

  • No button back for Playbook and Z10

    My request of WebWorks HTML5 for Playbook and Z10 occasionally open external web pages and at least in the Playbook there no back button during the display of the external web pages. How can I add a "back" button? I spent a few hours looking for solutions, without success. I looked at bbUI.js, but it seems not able to add a "back button" while looking at an external pages - unless I'm mistaken.

    Any suggestions?

    Bb10, your solution is childBrowser: https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/childBrowser

  • Help w / BB SDK installed plug-in for Eclipse

    Forgive me if I am problem with everything I post here, I'm as inexperienced and little educated with Java and everything associated with it, hell, programming in general.  My knowledge begins and ends with the basic html coding.  But, I have a great idea (I think) for an application and do my best to learn Java on my own.  What I'm having a problem with is just install the Blackberry SDK and others for Eclipse.  Shortly after the installation starts, and it always gets stuck on the extraction of net.rim.ejde.componentpack5.0(substitute through different versions of OS here, 4.5, 5.0, 7.0) status text continues with ...nloads.blackberry.com/upr/developers/Win/

    Now, I don't know if it of related or not, but when I did the initial download of Java (jdk1.7.0_06), a window pops up warning me that some banks were too long or something like that (even once, forgive me ~ _ ~).  I tried to put everything I downloaded in ProgramFiles (of course it comes to Windows I'm talking about).

    Anyway, Ive tried to be helpful by giving everything I know I did, someone please help me, if I can't even the installation done, Lord help me when I'm in a coding application

    Well, I am a java developer, but java BB is not the path to the future, as the new OS (BB10) will support is no longer, so the question is if you really want to go this way.

    as a start page, I suggest using
    https://developer.BlackBerry.com/
    you get a good overview here.

    about html5, there are many different points of view, and some say it's not feeling not native (sensitive) enough, while others think it is the best thing ever.
    side pro, you can use html5 on Playbook and BB10 (as well as other platforms non - BB).

    If you don't know not java the platform BB is bit harsh as a learning ground, and most of the tutorials assume a basic knowledge of java.

    I suggest trying html5, you should find most of the things on the site link above, otherwise, there is also a forum where, someone more familiar with it can help you.

  • Playbook HTML5 audio problem (problem of streaming media)?

    Hello. I'm working on a simple app using HTML5 audio tags. Deploy the application in virtual Playbook (BlackBerry WebWorks SDK for Tablet 2.2.0.5 - BlackBerryPlayBookSimulator - 1.0.7)

    It's my config.xml file:

    
    http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets"
        version="1.0.0.0">
        Radio
        
            A sample application to demostrate some of the possibilities.
        
        
            CESAR
        
        
            Example license.
        
    
        
        
    
        
        
    
        
    
    

    My index.html:

    
    
    
    audio testing live stream!
    
    
        

    REMOTE RADIO (works on playbook browser)

    MP3 (local file)

    REMOTE FILE

    Remote stream (shoutcast radio) and remote files (ogg, http://blackberry.github.com/WebWorks-Samples/kitchenSink/html/html5/audio.html) does not work on HTML5 app.

    In streams remotely, the error was: "there was an error decoding of this media. "The multimedia format not supported".

    What's wrong?

    What can I do?

    Now I know what was my mistake: the URL does not contain a stream, only a playlist (PLS) with multiple URLS to to access the stream. For more details you can see:

    http://en.Wikipedia.org/wiki/PLS_%28file_format%29

  • How to get the ip of playbook via HTML5

    Hi, I am trying to add ads to mmedia to my app playbook, but I need to get the ip address of the playbook in order to achieve this is anyone knows how I can do? I looked if the API and have not been able to get a way to do it, thanks.

    Just get the IP address via an external service.

    Call this URL:

    http://jsonip.appspot.com/?callback=GetIP

    The returned object will contain the IP Address of the client

    Solution provided by

    http://StackOverflow.com/questions/102605/can-i-lookup-the-IP-address-of-a-hostname-from-JavaScript

  • Error trying to test my html5 for Tablet playbook Simulator application. It says "not enough to access the file authorization".

    My problem is solved when I run vmware as admsisnistrator player.

  • Does he know that "why can not play Mp3 sound using html5 in BB Simulator Playbook and Smartphone?

    Dear developer,

    I really nead help, so far I can not play mp3 sound after I developed application but in android her beautiful work.

    in the bb Simulator cannot play mp3 and wav its woking, any body know why? and I have prolem "I can't hear an echo of the sound API in the Simulator also mp3, but in android it works well, please give me solution bro, thank you to hear me."

    respect,

    Fery

    This is probably due to a missing codec.  Simulators have not the same level of multimedia support direct devices do.

  • PlayBook Simulator - missing all icons, features etc.

    I downloaded the Simulator playbook and runing am through VMWare... but I don't see not all icons, can't use the browser etc.

    screenshot:

    The Simulator is limited at this stage to deal purely with AIR apps only? or is there a problem with my installation.

    I was hoping to test the functionality of the browser for certain web applications, HTML5 etc before going into a java application development.

    Thank you!

    steve_web wrote:

    The Simulator is limited at this stage to deal purely with AIR apps only?

    Thank you!

    Yes.  Currently the BlackBerry PlayBook Simulator can be used only to test custom air applications.

  • Error when creating applications of HTML5 for Blackberry OS Versions os7

    I'm currently building HTML5 APP (a Hello World application) which will work on Blackberry curve that is to say for the version of the device: 4.6.1.310 (Platform 4.2.0.127) 8900 Smart Phone (Edge Wifi) IE versions under BlackBerry OS 7
    using the HTML OS Blackberry Webworks, I installed emulator Web SDK and the ripple of http://developer.blackberry.com/bbos/html5/download/ works
    also after doing all the steps as described in
    https://developer.BlackBerry.com/BBOS/HTML5/documentation/creating_hello_world.html

    but when I do run this url
    http://localhost:9910/HelloWorld/index.html the ripple emulator does not work for me

    I tried to connect to the key, but https://www.blackberry.com/SignedKeys the page is not working there at - it another way connect and get the signature key and create the HTML5 Apps to work with the Smart Phone (Iam having the device to test) 8900.

    I tried the Blackberry10 Webworks and created the Hello World application and tested in the Simulator, but when I tried that bar the file to run it on my camera its an old version and his version of the device: 4.6.1.310 (Platform 4.2.0.127)

    Phone (Edge Wifi) smart 8900, so is possible to deploy the bar file that I created for Blackberry10 to test on the 8900 device? If it can be please let me know how?

    You cannot deploy a BlackBerry 10 at BBOS; each platform (BBOS, PlayBook and BlackBerry 10) has a unique architecture and you must use the correct SDK, which corresponds to build your application folder.

    BBOS, this will be a COD file. For PlayBook and BB10, these will be BAR files (but then again you cannot load a file BB10 BAR on the PlayBook the architectures are different.)

    Also note that on BBOS WebWorks is supported only from BlackBerry OS 5.0. So if you are looking for a web solution, you need to go native BlackBerry Java and either incorporate into a BrowserField (functionality will be limited) or go all-out BlackBerry Java.

    Regarding the ripple does not connect, my advice would be to use something like XAMPP or WampServer to put in place a local web server. This will help to overcome the problems of accommodation. For practice, I think B & D services must be running for the ripple server to be active, which means that you must activate the undulation on a random Web page (i.e. www.google.com), begin to build and deploy services and then try to connect to the server of the ripple. Ripple was recently given to the Open source Apache Foundation so that may have changed. Essentially, you can get the same emulation size/viewport through the Web Inspector of Google Chrome today well.

    BBOS devices also have their own simulators (the actual OS) as opposed to the emulator (pretends to act as the operating system.) You can find here:
    https://developer.BlackBerry.com/BBOS/Java/download/#testingtools

  • HTML5: Define a new list function

    Hey guys! I'm trying to define a list of JavaScript function in my html5 creator so it can work with the playbook, but I'm going to hurt to know what JS file to get the names of the functions of. Should I use the dispatcher or ns?

    Thank you!

    To this end, they are largely equivalent I think. But I would probably go with the ns file, because it is one that is used for standard javascript function calls. In my view, the dispatcher is used for URI calls.

  • At the request of Youtube video in PlayBook

    Hi all

    I want to just embed the video in my aplication in playbook. I use a file RTSP and 3gp. I found an application in playbook videos Youtube. I need something similar to this, if someone help me with a built-in player for my applications webworks or API for streaming videos.

    I used the HTML5 video tag, but does not not for rtsp. And I posted the code in this forum yesterday.

    RTSP support in playbook...

  • How to install app on BlackBerry PlayBook OS 2.0 WebWorks

    Hello world

    I develop application webworks for playbook.

    I see how to install Debug Token on http://yllus.com/2011/06/18/deploying-a-blackberry-webworks-app-to-the-playbook-windows/ playbook. It is ideal for use in 30 days and now I see 'signing of debugging result::failure 881 token a expiré'

    Now, I don't know to correct the err. Can you help me?

    And can you tell me how to install my WebWorks app on playbook (because it show me to install Debug Token)?

    See your reply soon!

    Best regards

    A Pham

    Hello!

    When exprires token that I just create a new one and install again. So, basically, follow the same steps as you did the first time.

    Please see the official developer documentation for how to proceed and how to test the application on a real device:

    https://developer.BlackBerry.com/HTML5/documentation/ww_testing/runnning_unsigned_apps_using_a_debug...

    https://developer.BlackBerry.com/HTML5/documentation/ww_testing/loading_your_app_to_playbook_1866988...

    happy coding!

  • HTML5 database: where is her physically stored?

    Hello

    I'm fiddling around with HTML5 database.

    In order to make my faster web service request, I would like to "cache" data in a local database.

    This SQLlite thing seems very nice and I wanted to give it a go.

    I use ripple and it seems to keep these data but then I do not understand where is the database stored physically.

    I want to pre-create a database so that users will not have to wait for the db update first.

    Any idea?

    Thank you

    Roberto.

    Rather than trying to crush the ".db" on the device database file, it is much easier to save the CREATE TABLE and INSERT statements in a local file or incorporate into a JavaScript file and load the first time the application is run. Let me know if you need an example.

    A file of WebSQL .db with your packaging application would be great, but because of the restrictions, local file access, I don't think that this a pinpointing would be possible on the BlackBerry.  However, if you look at the location of the physical database file on the PlayBook, you must install Blackberry Connect. Databases on PlayBook should be included in the folder: / accounts/1000/appdata //data/database/local_0 /.

    See you soon,.

    James

  • How to get the Javascript Extension written for Tablet Playbook/submit to App World

    WebWork SDK "TABLETS" documentation:

    https://developer.BlackBerry.com/HTML5/documentation/ww_release_notes/bb_webworks_sdk_tablets_rn_2.2...

    It shows that we can

    "use the JavaScript extensions-

    You can create JavaScript extensions to enhance your applications by adding them to archive the application before compiling the source of the application. You can modify and distribute these extensions. "

    However, even I can successfully test the extension on my local playbook in the folder "\BlackBerry WebWorks SDK for Tablet 2.2.0.5\bbwp\ext", I can't find doc showing what to do during the presentation of the app on the app store with my extension. WeBWorK for smartphone seems obvious because it uses the java & jar, but just can not find information about the expansion on tablet...

    The extension is integrated within your compiled cod or bar. you have nothing to do rather than download the bar or COD.

Maybe you are looking for

  • Satellite C660 - 1CJ BIOS flash error

    Hello. I had a hard time with flashing my bios on toshiba c660-1cj yesterday. I downloaded most recent program bios and you have followed all the steps correctly Flash...When asked to reboot, I restarted the laptop and now I'm stuck on a black screen

  • Editor not found disk image app

    Cannot open files.sparseimage sure, I created a few years ago with OSX... Last opened last year. Suggests the opening with diskimagemounter.app. However, the file does not open and I can not find diskimagemounter.app Who kidnapped ElCapitan, or befor

  • NI488: Writing not detected no listener

    I read the humidity Relative and temperature using probe cards-2 (Rotronic). The VI works OK for 24-26 hours and after that gives the error message indicating the Possible reason: Labview: memory, if it is full NI488: Writing not detected no listener

  • Serj Photoshop Cs4 como para Português do Brazil?

    Adobe Photoshop Cs4 Extended, esta em Ingles MEU. Preciso da traducao em Português. Como Fazer?

  • question of the application background ~ ~

    my application is a background thread and the auto-run app, now I have the qustions on click the application icon my application have no any screen, but it has an icon of the application, now, I want to show the default browser, as I click on the app