Giter VIP home page Giter VIP logo

webworks-samples's Introduction

WebWorks Samples Repository

The WebWorks-Samples repository is where official WebWorks samples for BlackBerry Smartphone and Tablet OS are hosted. For Community Samples, please refer to the WebWorks-Community-Samples Repository.

All APIs shared in this repository are Open Source under the Apache 2.0 License

To contribute code to this repository you must be signed up as an official contributor.

Code Organization

Each Sample added to the repository should be placed in its own directory. Make sure you name the directory something simple, yet descriptive. Each Sample must also have a README.md file at the root of its directory. This README needs to indicate the Author of the API, devices and OS versions it was tested on, and information about the application and how to use it.

Contributing Samples

To add new Samples or make modifications to existing Samples:

  1. Fork the WebWorks-Samples repository
  2. Make the changes/additions to your fork
  3. Send a pull request from your fork back to the WebWorks-Samples repository
  4. If you made changes to code which you are NOT the owner, send a message via github messages to the Author(s) of the Sample to indicate that you have a pull request for them to review
  5. If you made changes to code which you own, send a message via github messages to one of the Committers listed below to have your code merged

Governence

The code for each of the WebWorks Samples is managed by the author of the Sample. When a pull request comes in for a specific Sample the Author(s) should be notified by the pull request owner to perform a code review. When the author indicates that the pull request is ready to be merged (via a comment on the pull request) they can then send a message to a committer through github messages to have the changes merged.

If there are more than one Author for a specific Sample, only one Author is required to indicate that the pull request is ready. If there's more than one Sample affected by a pull request, at least one Author from each Sample must code review the pull request and indicate that it is ready to be merged before the pull request can be merged.

If the Author of the pull request is the actual owner of the Sample, then the Author should send a message to a committer via github messages to have their changes merged.

Ownership Transfer: An Author can transfer ownership to another Author by opening up an Issue where both the original Author requests ownership to be transfered to the new Author, and the new Author agrees to take ownership of the code.
The README for the Sample should be updated to indicate the new Author.

Repository Committers

Bug Reporting and Feature Requests

If you find a bug in a Sample, or have an enhancement request, simply file an Issue for the Sample.

Disclaimer

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

webworks-samples's People

Contributors

mimendoza avatar pelegri avatar scrid2000 avatar timwindsor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webworks-samples's Issues

error in XML config.xml file

When I was trying to build "Aura" and "payment", both failed. The cause was that the line

    <?xml version="1.0" encoding="UTF-8"?>

wasn't the first line in config.xml, but only appeared after the comments.

After I moved that line up front, the build of both apps went fine.

I did this on a MacBook, not sure if that's relevant, but so that you know.

Willem

SketchPad is missing from the gh-pages branch

I believe the current arrangement is that the gh-pages branch tracks the master branch for all samples with the latest stable version. If that is so, the SketchPad sample needs to be added to the gh-pages branch.

swipemenu.js typo

line 136 says "style.ontFamily" when it should say style.fontFamily.

Weather sample cant find location Ripple emulator

as the title says.. Weather sample cant find location Ripple emulator.
i tried a lot of different locations, city's , zips and more. it cant find New york, Waterloo or other places...
can someone fix this ?!

Rohit

Html audio is not playing any idea to solve this?

swipemenu.js issues in Tablet OS 2.1 BETA

Hearing reports from developers that swipemenu.js is broken when run from within the Tablet OS 2.1 BETA.

I've just updated my device to the 2.1 BETA and re-ran the sample app included in the swipemenu.js project and did not see any problems.

If you are seeing issues, can you please report them here?

glitches in payment.js

At the end of displayPurchasedInventory, there is the line

catch (e) {
    appendContent("errors", "Error in displayDigitalGoods: " + e);
}

which seems to be a copy-paste bug.

Similar errors happen at the end of:

   toggleDevelopmentMode()
   refreshPaymentHistory()
   incrementPurchaseCount()

And maybe I missed some more. You better check.

Happy coding.... :-)

KitchenSink sample

I needed to remove spaces from the widget id attribute in config.xml to get the sample to build (I am running XP).

There are a few other issues related to 'Package' from Ripple::

  • editor remnant files (e.g. config.xml~) must not exist
  • Archive Name field may not contain underscore ('_') [Settings should probably warn about this...]

Potential Code optimization for stationsList.js file

I realize that this is not really a big issue, but by factoring out the repetitive SQL insert statements in the Weather stationsList.js files, this file size could be cut down by approximately 50% i believe. For example:

var stationsList = ["insert into StationList (latitude, longitude, xml_url) values (-22.017, 166.217, 'NWWW');",
"insert into StationList (latitude, longitude, xml_url) values (-21.233, -175.15, 'NFTF');",
........
];

By removing the continuously repeated string in the statement, you can then place it once in the following block:

for (var i=0; i<arrLength; i++) {
tx.executeSql('insert into StationList (latitude, longitude, xml_url) values ('+stationsList[i]+');', null, incrementPercent);
}

The result would be a much smaller file size. As I previously mentioned, this may not be of much importance but it does cut down file size which in my opinion is always a good thing!

Swipedown.js and the <embed> element

I might just be displaying my ignorance and lack of even rudimentary training (other than good ol' google) in html coding, but when I include an element the swipedown.js stops working if I follow any links.
Here's an example of a .bar I made, only changes I made were to remove the original body (except the script for the dropdown) and insert -
.bar download link: http://dl.dropbox.com/u/9610464/Temp/swipemenu.bar
zipped source: http://dl.dropbox.com/u/9610464/Temp/swipemenu.zip
The dropdown works great on the initial page, but if I click any links it no longer works.
Same deal with an iframe.

swipemenu feature enhancement: add ID property to button elements

Developers can customize button elements if they can target them using CSS. Adding a unique ID element to each newly added button will help enable this.

Solution A: Allow developer to provide their own ID value?

Source:
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/onSwipeDown-Menu/m-p/1609103/highlight/true#M21300

Solution B: Some sort of auto-generated ID? Perhaps returned as a value from the addButton() method?

Building Weather Sample App Fails???!!!

2 days ago I tried to test how Webworks works for BB 10 devices.

So, after reading tons of pages about Webworks and HTML 5, I downloaded the Weather sample app and followed the "How to Build" steps described in
https://github.com/blackberry/WebWorks-Samples/tree/master/Weather

The first build error (using the BlackBerry 10 WebWorks SDK 1.0.0.15) was:

[INFO] Populating application source
[INFO] Parsing config.xml
[ERROR] Error: Please enter a valid application id

I was surprised to see that a sample app and step by step description leads the new programmers to an error like that.
Anyway, I spend half an hour to try to fix this issue and at the end had to add an id (with no space and no dot in it) to the config.xml.
I was specially confused by the bad idea mentioned in the page below to use Reverse Domain Name standard for the application id. Reverse Domain Name doesn't work because it contains dots!
blackberry/BB10-Webworks-Packager#91

It is very odd that the build steps in https://github.com/blackberry/WebWorks-Samples/tree/master/Weather are not modified to tell the users to modify the config.xml file before building it.

That fixed the Application ID build error, but a new build error now shows up:

[INFO] Populating application source
[INFO] Parsing config.xml
[INFO] Generating output files
[ERROR] Failed to find feature with id: blackberry.io.file

Now even Google can't find this error. So I am stuck.

To Authors: Sample App doesn't build? Really?

sketchpad sample missing 'id' property

The newer Tablet OS and BB10 SDKs do not compile this older sample properly as it is missing the 'id' property in the top-level element tag in the config.xml file.

Sample Code Swipe Down menu doesn't display on first use

The code shown here (http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Sample-Code-Swipe-down-menu-for-BlackBerry-WebWorks-SDK-for/ta-p/943521) does not work on OS 2.0 device (works on Simulators and Ripple). It is reported to not work on 1.0.x devices either.

The issue is: on first swipe down the menu opens but is not visible (the bottom border can be seen moving down). Once there has been some kind of interaction on the screen the menu appears. Subsequent opens and closes of the menu work until the app is closed and re-opened again at which point the issue appears again.

This issue is discussed in this post (http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/onSwipeDown-Menu/m-p/1396371/highlight/true#M17911) with a solution of removing the z-index from #menuBar. This does work but when using a framework such as BBUI.js it is problematic as it uses a high z-index to display its title bar. While the menu displays properly it is behind the title and it is unusable.

After a little testing it actually looks like the z-index and CSS3 transitions combined that are the problem. It may actually be a browser issue rendering this rather than an actual code issue. When the CSS3 transitions are removed and jQuery.slideDown and jQuery.slideUp are used it functions fine.

Facebook Integration

Need simple SDK that we can use to use to let the user authorize Facebook app and then have the ability to use GRAPH API to access Facebook stream, post to wall, get user/friend details.....etc.

Hooking into Facebook is critical for many devs, and no reason for every dev to try and re-invent the difficult or near impossible task with WebWorks to connect to Facebook in an elegent way.

Is there a RIM developed SDK available that devs can use and depend on for updates? If not will there be one?

Verification Error

Get the following error

"Error starting UIExamples: Module 'UIExamples' has verification errors."

KitchenSink home button errors in Ripple

Home button redirects to the / path, which works as expected for content operating within a WebWorks application, but not in Ripple (404 errors or wrong paths).

For Web Database in KitchenSink Sample

Hi Sir,

When I run this sample for Web Database in My Device(Curve 9330, 6.0.0.436)..Then...
Error: SECURITY_ERR: DOM Exception 18

And for the document, HTML5 Database support BlackBerry OS 5.0+..
Or this error only for this device??

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.