02-15-2011
01:49 AM
- last edited on
02-20-2011
03:36 PM
by
Andy
Hi I'm Indra a beginner developer of BlackBerry WebWorks Application
Here is the scenario...
I want to building a Blackberry WebWorks (widget) that is used as a portal to a remote website. Most of the pages are remote. Last time I chat with Adam Stanley is about if I want to build an application in webworks so that my application can retrieve data from web server included with database like mysql. He told me to build an application with JSON and just using PHP in my server. Well right now I'm so desperate on how an BlackBerry application can connect to a web server (my private server not from RIM)?
If I'm not bothering you,, please give me the link to resolve my problem. And/or please give me a sample code for the client side and server side on how to communicate each other using JSON? I've search for it and google still give the java sample application not webworks application. Thank you for your time and I'm sorry if my english is look terrible.
EDIT: Split from another thread, edited title
02-18-2011
08:25 PM
- last edited on
02-20-2011
03:37 PM
by
Andy
Indra
There are a couple of things you must do.
First - the config.xml file must enable access to your web site.
Insert a line such as below in the config.xml file
<access uri="yourwebsite.com" subdomain="true">
This enables access to your web site and the subfolders there.
Next - you must create an html file which links to your web site. It can be as simple as a standard a href link construct or more complex using cgi-bin programs such as PERL, ASP, or something similar.
Let me know how you make out.
Terry
EDIT:Edited title to match
02-23-2011 06:47 PM
Hi Indra,
I am beginner too, and my scenario is more or less like your scenario.
In my case I want to create an app through which my users could access the data from our server (not blackberry server).
Idea is that on my server there is oralce db and I need only 3 columns and couple of rows data from a table of this database and show on page with couple of options on the blackberry for each particular user.
If you are working on something that you beleive can help me understand my case please do let me know if you like.
Thanks,
-T
02-24-2011 02:53 AM - edited 02-24-2011 03:15 AM
tcode wrote:
Hi Indra,
I am beginner too, and my scenario is more or less like your scenario.
In my case I want to create an app through which my users could access the data from our server (not blackberry server).
Idea is that on my server there is oralce db and I need only 3 columns and couple of rows data from a table of this database and show on page with couple of options on the blackberry for each particular user.
If you are working on something that you beleive can help me understand my case please do let me know if you like.
Thanks,
-T
You can using a WEB SERVICE method
For sample reference: http://supportforums.blackberry.com/t5/Web-Develop