xmlHttpRequest is back no answer in blackberry 10 webworks

Hello

I use link below to send an http get request in a webworks blackberry application.

https://github.com/BlackBerry/WebWorks-community-samples/BLOB/master/kitchenSink/js/browser/XHR.js

UpdateContent appeal (http://www.google.com) when the button is clicked.

I have whitelisted the url in the config.xml file.

Now get as empty response and req.status by 0.

Please let me know what I am doing wrong.

Based on tests:



    
    
    
        
    

When I replaced it by http://www.domain.com with different URLS, I see a readyState 4, condition 0 happen often when there is a breach of security because of cross-domain requests. This is not something that can just be set on the client side if the server denies this kind of access.

When I made the request to a domain on the same server that hosted the index.html file the above examples, the application worked very well.

You can test it again here:

http://www.test-CORS.org

Note that a http://www.google.com request causes an error, whereas a request to https://cors-test.appspot.com/test succeeds.

EDIT: What this amounts to then is the likely destination server does not Cross-origin requests, and you simply won't be able to make a request to this URL.

Tags: BlackBerry Developers

Similar Questions

  • I forgot the answer to my security question rather than I sent to apple to get back the answer. but Apple did not answer me pleas help me >?  iPhone 6 9.2ios

    I forgot the answer to my security question rather than I sent to apple to get back the answer. but Apple did not answer me pleas help me >?

    iPhone IOS 6 9.2

    You will need to talk with the security of the accounts to AppleCare. Be sure to have your ID ready PW and Apple because you need sigun in Id.apple.com to generate a temp support PIN, then be able to provide one more piece of the verification of identity, they can reset your questions for you.

  • Builder blackBerry training: WebWorks

    Hello

    I'm new to Blackberry 10 development, I want to know what is

    means what is the procedure of training Web works and in what platform the training means its development in native or html5 (webworks)

    How can I join, how long it will be completed

    Please explain to me in detail...

    Thank you...

    See the training close to home center.

  • "Back button" while browsing blackBerry smartphones

    Sometimes if I press the back button it will not go back while you browse the browser... For the most part happens on youtube, what do I do?

    ermanturko wrote:
    I'm sorry, you're right... I tell you all first I already rebooted.

    Accepted.

    ermanturko wrote:
    And I'm just using this flashlight for a week now, I do not use the 9800 but a 9860

    Ahhh... that makes a big difference indeed. 7.1 is available for the 9860, and you can look on what our friend Xandrex keeps up-to-date in a sticky on this forum:

    It seems that he has had no time to update recently, but I know 100% that 7.1.0.342 exists for the 9860 since I use it now (I got Norwegian Telenor). To use your bundle of BONES of carriers, you can follow all the instructions provided. To use a package of different carriers OS, you download (from this official Portal I linked for you earlier), install on your PC, find and delete all copies of a file named PROVIDER. XML (there will be at least one, sometimes two, and you need to hunt deep into your PC system and hidden folders) and then run the Desktop software (assuming that it is already installed before the operating system package), and it will update your BB to some bundle of BONES that you have installed on your PC.

    Of course, backups and others are a thing you need to do with this process.

    Good luck!

  • My Blackberry BlackBerry Smartphones will not end back up in the Blackberry Desktop Manager

    I had problems with my blackberry as it was crashing every few minutes. I want back the shop but I need to back it up and he did not finish the back upward. What should I do? I don't want to lose all my contacts and messages!

    eve9790 wrote:

    Good,

    Also, I can't back up my contacts. I think they can be synced to my email.

    Hi eve9790

    Trun first syncing wireless Contact. , to do this open your address book or Contacts - press the menu key > Options > contacts (email id) list, click on it - then sure uncheck the wireless sync, then save the screen.

    KB22430 : How to enable or disable syncing wireless contact with the BlackBerry Internet Service

     

    After that you can try to back up your contacts.

    eve9790 wrote:

    If they are saved on my email I'm guaranteed to get them on my new phone or should I remove them from the email and save them? If so how to do that?

    If you have sync and stored your contacts with any email account, if you reconfigure this particular e-mail account in your new device, then you can then.

    But have you tried to run these steps I have already suggested, first turn off wireless sync, and then perform a backup full after the removal of these social feeds database.

  • BlackBerry smartphone security back-up with various Blackberry ID

    I want to reload my new Z10 BB with a backup security file, but in the meantime I had to change my BB ID (at the same time, email and password). Now the BB link won't load my backup to my new saying of device security: 'ID différent BB!'.

    What can I do to access my data?

    Siegfried, if you contact your technical support of official carrier & bring to escalate the problem to BlackBerry, Yes. Maybe they will be.

  • Will not answer application blackBerry Smartphones, phone will not do anything

    My bb-9330 has 'a + chat for face book' installed and it is stuck on the screen where the application requests access to gps information, but will not let me answer.

    I got it but thanks for trying. This time when it restarts, I immediately scrolled to the answer that I wanted before it locked up. Thank you

  • my account is blocked and I just can't get it back, I answered the question, and I've been getting emails in my daughter account are not enough response to recover my account

    Please, I need to get in to my account, about 8 years a go, these account help me to open it, a friend of my, because that didn't how.

    but, I can give all information about the name of the files, my friends email address, the last emails I send, etc and it did not work
    They said that I have enough information, I think I'll be a big trouble if I can't access my files... Please some body
    Help me.. Thank you

    Hello Myrna50,

    I suggest that you look at the next Windows Live thread that deals with the problems of blocking your account:
    You can also start your own thread at:
  • NO ANSWER YET blackBerry smartphones. How can I remove my schedule in previous years?

    I use the calendar like a diary & have details since 2005.  How can I delete the previous years?

    I spent some time looking through my calendar and could not find any / option to remove entries and nominations a year whole. My suggestion is to make sure to constantly update your calendar as things happen in this way you will not have to remove one events. I may be wrong and that there could be a special/hidden setting I don't know about point delete the entries a year.

  • BlackBerry 7 Webworks Documentation

    Hi guys

    Could someone point me in the direction of Blackberry 7 or earlier Webworks documentation. I had a quick glance, but I seem to keep coming back to the Blackberry Webworks 10 docs.

    See you soon

    Marcus

    Do not worry found...

  • question of payment in 10 blackberry gateway webworks to phonegap

    Hi all

    I'm working on PhoneGap app for Android, iOS, BB, WM. In that I have a problem with the payment for BB 10 webworks gateways. I have made in Android and iOS when I'm doing this feature in BB, WM, it only is not implemented correctly some forums shows as Cordova is not suppaort payments in BB, WM so can someone help me please respect the web 10 BB payment gateways work.

    Thanks and regards,

    We have a new payment API sample on GitHub as well as a new blog post (with links) http://devblog.blackberry.com/2014/04/make-money-with-your-webworks-2-0-app/

    Probably worth it. I show how to apply a basic payment.

  • How to get the type of network in Blackberry 10 Webworks 1.0

    Hello

    I am developing web applications and using connection plugin to get the type of network used.

    I've added the id of the required functionality in the file config.xml as follows:

    function id = "blackberry.connection".

    Now when you click on buuton, I call the function below:

    function currentConnectionType(){
        alert("1111111111");
        var connection = blackberry.connection;
        alert("222222"+blackberry.connection.CELL_3G);
    
        var connType = blackberry.connection.currentConnectionType();
    
        alert("Current con Type : "+connType);
    }
    

    In the code above curretCoonectionType is not called.

    Please help me correct where I am doing wrong. Or please let me know is there another way or sample code for the Type of network being used

    Thanks in advance

    It seems that the type property, you should get the current connection type:
    BlackBerry.Connection.type

    https://developer.BlackBerry.com/HTML5/APIs/gold/BlackBerry.connection.html#.type

    You can also save to connectionchange headphones to monitor changes in the type.

  • How to link or to disable the button submit virtual keyboard in blackberry 10 webworks?

    Hi all

    I developed Blackberry 10 Web application using Ripple emulator and Blackberry Webworks SDK 1.0.4.11.In that I am faced with the question of the connection... While the virtual keyboard-click submit button... it will not validate the credentials and without validating it goes to the actual page... So, how to validate or disable the virual submit button 10. Please Blackberry keyboard me... Thanks in advance.

    Kind regards

    Marimuthu_P

    Hi Mc Donald,

    You are using a

    element in your application with a built-in element
  • BlackBerry Z10 Z10 "Please wait while your device is the software update and restart"

    Sorry if this question has been asked elsewhere but I searched and could not find an answer the applies to my particular situation.

    I have a Z10 on Bell who got an automatic update this morning (I have no note of my operating system version number or the version that I was updating to) and the phone is locked to the prompt "Please wait while your device is the software update and restart."  Update messages said it would take a lot of time and that I should connect my phone if it was less than 20% of battery.

    The Bell's Web site indicates that the version of the software is 10.3.2.2168 and the latest version of the OS is 10.3.2.2252.  I don't know how many times this site is updated, but I guess that's the version that I am trying to update?

    (http://support.bell.ca/Mobility/Smartphones_and_mobile_internet/Operating-Systems?alias=BlackBerry-Z...)

    The phone is not fixed... I can see messages turn on the lock screen and interact with the phone to get a glimpse of these messages, but if I try to unlock the phone, the message block appears above any function, I tried to launch (whether a text message, the camera, an email, etc) and I can't interact with the phone at that time otherwise than to lock again and open the lock screen up.

    At the time wherever I drag, the prompt.

    The prompt on the phone for about 6 hours now.  The battery was full this morning and had exhausted 70%, but I've since plugged.

    I have not tried a batt pull because I'm afraid of the consequences of this action after the launch of the update.

    Everyone knows this and had the phoen back? I know that 6 hours is well past any reasonable wait times in my books and was strongly tempted to restart the device... but is there here experts who recommended that I continue to wait?

    I forgot to mention that the power button was still working to give the ability to power off the unit.

    In the end, I couldn't wait any longer.  I put off the device "no risk" with the power button, rather than using the battery pull method.  I turned on the camera back later and the blackberry logo appeared.  The screen faded faded black and no lights appeared on the phone.

    I could hit to swipe down to get the blackberry logo to return to the screen, but no startup loading progress screen never wouldn't come.

    I could never get to the home screen, but the phone was actually 'ON' below.  I could call the phone and it should sound, but there is no visual indication that the phone was working and there was no way to respond.  Sliding down to unlock simply revealed the word "blackberry" in the middle of the screen.

    I did a Batt pull and this time, the logo appeared as before, but disappeared forever... and then the progress of boot screen appear.

    The words 'from 10 Blackberry OS' were visible on the bottom and rotate it beween this and "install updates".

    Start-up took a LOT of time (15-20 minutes?) but after that, everything was fine.

    Displayed software update version information and it is indeed updated to 10.3.2.2168.

  • BlackBerry with Blackberry link or major Bug software's major security problem?

    Like some other assignments, which seem to have been ignored either because the helpful souls here is not an answer or Blackberry are avoid it like the plague! I have an unknown (to me) computer on my screen of BB Link on my Z10. The errant computer's Desktop-32 CF no home not a computer on my network and not a name composed with the last 4 signs in a known mac address authorized connection.

    The link is picking up something else and adding (without my consent or interaction) or someone is able to connect to my Z10 without authorization.

    Absolute silence of a person located at Blackberry is not acceptable. Either it's a major safety or a major bug Miu or both!

    The computer remove incriminated in the side phone of things just seems to withdraw temporarily, because later his law here yet. I cannot interact with this false entry but have seen no indication that it cannot access my phone.

    I did a reinstall of link on my laptop and have even the mysterious Office link. I'm not sure of the identifier, perhaps a unique hard drive MAC or other sign distinctive. I'm looking.

    Whatever it is, is of no interest to me as a security breach. And nor am I surprised without no observation of BlackBerry, this forum is a user support forum user such as quoted in never a page of this forum.

    If I find all the information, I'll post back.

Maybe you are looking for