1. Justam's Avatar
    What is the best approach to create a web service client on blackberry devices?

    Essentially I would like to post to my php scripts on my webserver and get the returned data to display/fill in fields to/for the user and download/store an image to be displayed on the device within the app.

    I haven't done any blackberry application development but I am looking to learn. I do know php, javascript, html, css, vb and can grasp concepts quickly. I am NOT looking for a handout or for someone to do the coding for me. I WANT TO LEARN! I am a young single father, who works full time, also doing correspondence for my university and raising my 2 children. As such I am asking for some advice to help me out as my time on side projects like this is very limited.

    If anyone can provide a little advice I would be very grateful.

    Thank you all for your time.
    Last edited by Justam; 05-08-12 at 02:24 AM.
    05-07-12 01:02 AM
  2. Justam's Avatar
    kids actually went to bed with no fuss today...god bless the park! So I did some reading*finally*....it seems I can do wat I need with HTML5/Javascript and webworks.

    Will need to figure out if I can package multiple html files(index.html, post.html, get.html) how to store login info/a downloaded image on the device and populate input boxes with the locally stored login data.

    and pretty much that is it. Seeing how I can do the rest in HTML5/Javascript (which i know) i'll just need to learn those api's.

    Can't wait to get started...now just need to find some time lol....*wishing there was more than 24hrs in a given day*
    05-08-12 02:23 AM
  3. kdna's Avatar
    Hello,

    Here are a few links to get you started.

    Download the tools(you need the sdk, ripple, and emulator if you don't have a Playbook)
    https://developer.blackberry.com/html5/download/sdk

    Good Documentation
    https://developer.blackberry.com/html5/documentation

    Official Developer Support Forum (search is your friend)
    Web and WebWorks Development - BlackBerry Support Community Forums

    So in WebWorks you will essentially only have one so-called application file. You will use application logic(javascript) to handle pushing/popping of views within the file. I.e. You will remove or append, show, or hide elements.

    To post and get information from your server, you will just need to make xhr(xml http requests, or ajax requests) to a url with parameters and a payload.

    This shouldn't be too difficult to do once you get started. Good luck to you sir!
    05-31-12 11:52 AM
  4. Justam's Avatar
    Hello,

    Here are a few links to get you started.

    Download the tools(you need the sdk, ripple, and emulator if you don't have a Playbook)
    https://developer.blackberry.com/html5/download/sdk

    Good Documentation
    https://developer.blackberry.com/html5/documentation

    Official Developer Support Forum (search is your friend)
    Web and WebWorks Development - BlackBerry Support Community Forums

    So in WebWorks you will essentially only have one so-called application file. You will use application logic(javascript) to handle pushing/popping of views within the file. I.e. You will remove or append, show, or hide elements.

    To post and get information from your server, you will just need to make xhr(xml http requests, or ajax requests) to a url with parameters and a payload.

    This shouldn't be too difficult to do once you get started. Good luck to you sir!
    Hello, Thank you for your reply. A few days after the original post I began the process u suggested. My app is now in private beta testing and so far so good. The only issue I can't seem to sniff out if on the 9800 os6.0.0.668 sim the app hangs during database initalisation. I have everything wrapped in try/catch statements and no errors are being thrown. I am trying to get ahold of a live device(9800) to install .668 and see if this is a sim issue or os issue. The app runs fine in every other device/os version I've tested from os5 to os7.

    Any thoughts to what might be causing the database to not initialize?
    05-31-12 04:07 PM
LINK TO POST COPIED TO CLIPBOARD