Ajax request from Blackberry Phonegap application

I am creating an application for Blackberry (OS 5.0 and higher). I have no experience in mobile development. I created a sample application that works just fine (following the guidelines provided at http://wiki.phonegap.com/w/page/31930982/Getting-Started-with-PhoneGap-BlackBerry-WebWorks ). I have installed

  • JDK - version 1.6.0_23
  • Apache Ant - 1.8.2
  • BBWP - 1.5.1.22
  • phonegap - 0.9.3

(Work on the BlackBerry 9550 simulator)

I want to make a simple AJAX request to a domain (i.e. www.sampledomain.com - where www.sampledomain.com is hosted on my local server.)

I added the following to www config.xml

<access uri="http://www.sampledomain.com" subdomains="true" />

The problem is that when I send an Ajax request, I get the message "Error: error requesting resource".

( apache www.sampledomain.com).

- , ? ?

+3
2

:

SDK - MDS \ BlackBerry\Plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\\\run.bat , .

BlackBerry, :

, http://supportforums.blackberry.com/t5/Java-Development/Connecting-your-BlackBerry-http-and-socket-connections-to-the/td-p/206242

+7

, - jQuery ajax- , , , , run.bat SDK.

, ? RIM , API.

0

Source: https://habr.com/ru/post/1786585/


All Articles