Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 948697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:17:06+00:00 2026-05-15T23:17:06+00:00

I am trying to submit an xhr using phonegap on the blackberry. Currently when

  • 0

I am trying to submit an xhr using phonegap on the blackberry. Currently when I make the request it fails silently. I have tried using jQuery jQuery.getJSON(url , callback),

an xhr object

var xmlhttp = new XMLHttpRequest();

//callback function when XMLHttpRequest is ready
xmlhttp.onreadystatechange=function(){
    if(xmlhttp.readyState==4){
        if(xmlhttpForTGT.status==200){

            response = xmlhttpForTGT.getResponseText()
        }
        else{
            alert("Request Failed")
        }
    } 
}

xmlhttp.open("GET", url , true)
xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded')
xmlhttp.send()

, and xui

x$('#home').xhr(url, 
    {method: 'get',
    callback: function(){ alert('made request') }});

and so far I can’t get any of them to work. Has anyone else been able to get xhr’s to work? I’m using JRE4.6.1 & using eclipse for the development environment. No errors are thrown when I attempt to make the requests, any advice??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T23:17:06+00:00Added an answer on May 15, 2026 at 11:17 pm

    I’ve contributed a lot to the phonegap-blackberry project, and in all of my tests, for some reason the XmlHttpRequest object always raises an empty exception when you call the open() function on it. I’m not sure why – phonegap-blackberry in its current form leverages RIM’s proprietary, non-WebKit browser, so maybe that has something to do with it.

    What I’ve done though is implement a very basic, native, Java-based approach to making HTTP requests and retrieving the response. It is bridged back into JavaScript in your PhoneGap app as part of the ‘network’ PhoneGap API. Some information about that is here: http://wiki.phonegap.com/Known-issues-(BlackBerry)

    NOTE: this is most definitely a stopgap measure. The implementation is rough and could definitely use some work. Currently, it only works with API endpoints that return JSON.

    Example usage:

    navigator.network.XHR('http://www.mysite.com/myapi',
        'This is my POST data, or I could pass in "null" for empty POST data',
        function(response) {
            // This is my success callback.
            // Do something with the JSON response object here.
        });
    

    Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using phonegap + jquery mobile and have a submit function that works
i'm trying to submit my Ajax form using jQuery. However calling the submit() function
I am trying to submit data using Jquery AJAX (using the following script) and
I am trying to submit a form thru javascript on the fly (using jquery-form)
I am trying to submit a form using jQuery's .ajax() function. It seems like
I am trying to submit a form by using jquery automatically after page load
I'm trying to submit a simple jQuery ajax call but using the DELETE method
Iam trying to submit values to an external DB using http request My code
Couple questions about the implementation of the XHR request: I am trying to make
I am trying to submit a form using Ajax.Updater and have the result of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.