Problem with XMLHttpRequest and 0.9.4 on PlayBook

I'm working on with the latest SDK 0.9.4 PlayBook. When I try to send an XMLHttpRequest like this

 var myJSONObject = {'function': 'add', 'params': [parseFloat(s1), parseFloat(s2)]};
    var xmlHttp = null;
    try {
        xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");
    } catch(e) {
        try {
            xmlHttp = new XMLHttpRequest();
        } catch(e) {
            try {
                xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
            } catch(e) {
                xmlHttp  = null;
            }
        }
    }
  if (xmlHttp) {
        xmlHttp.open('GET', 'http://xxx.xxx.xxx.xxx:8080/test/testservice?rpc=' + myJSONObject.toJSONString(), true);
        xmlHttp.onreadystatechange = function () {
            if (xmlHttp.readyState == 4) {
                alert('Result is ' + xmlHttp.responseText);
                var jsp3 = json_parse(xmlHttp.responseText);
                document.getElementById("resarea").innerHTML = jsp3.result;
            }
        };
        xmlHttp.send(null);
    }

all I get is an empty response and State == 0 ((ce n'est pas sur l'objet JSON, car côté serveur, je peux voir fonctionner correctement).) If I remember correctly, I think that it always worked less 0.9.3.

Has anyone else encountered this problem? Or does anyone have an idea how to solve this ?

OK, after that I spent all morning trying to solve this problem, I just went to get some coffee, came back, and now it works.

I don't know what to say to this :/

Tags: BlackBerry Developers

Similar Questions

  • Problem with IMovie and Quick time

    Hey everybody,

    I am faced with an unexpected problem with Quicktime and I Movie, and I was wondering if someone had already known that:

    I want to create a film based on shots from my personal camera. I started to work with IMovie to create a sequence of opening and added his musical band. I exported the scenes in Quick Time format without any problem. However, when I merge the exported sequence of I film with shots of my video camera, the soundtrack is completely eliminated.

    I checked on the Internet and saw that there might be a problem of "Codecs". To avoid this, I exported the sequence IMovie with Codecs of same as one of my video camera files.

    Now, if I compare the files exported from I Movie and those of my video camera, they have identical characteristics. However, the soundtrack will always disappear when I merge them.

    Could someone please help me solve this problem?

    Thank you very much in advance.

    Concerning

    Could someone please help me solve this problem?

    Not only based on what you already said.

    I want to create a film based on shots from my personal camera. I started to work with IMovie to create a sequence of opening and added his musical band. I exported the scenes in Quick Time format without any problem. However, when I merge the exported sequence of I film with shots of my video camera, the soundtrack is completely eliminated.

    How would you"merge" files? (I.e. a "QuickTime" format is any form of data compatible with the platform of supply and the specific structure of QT incorporated into real employment that is stored in a container of MOV file on any of up to 99 tracks possible). Also, what app do you use for reading the file 'merged '? (For example, some media players ignore secondary audio tracks as a result of some methods of 'fusion' of files so it is important to know how the files are "merged," whether or not the audio data are "scattered" several tracks, and/or if the Media Player supports playback of multiple, sequential audio popular.)

    I checked on the Internet and saw that there might be a problem of "Codecs". To avoid this, I exported the sequence IMovie with Codecs of same as one of my video camera files.

    The specific codecs and settings using the specific version of iMovie? (The current Mac OS X operating systems have two X QT and 'classic' Qt integrated structure so it is important to know what structure is used here and how).

    Now, if I compare the files exported from I Movie and those of my video camera, they have identical characteristics. However, the soundtrack will always disappear when I merge them.

    As a general rule, you should review the file "merged" to determine why it does not play back correctly rather than comparing the characteristics of the source being merged files. The main problem here seems to be in your project workflow. That is, you seem to be when you perform an operation in two steps rather than edit several iMove multimedia files and then export the combined results in a video the video and audio tracks have been flattened and exported in standard compression formats with unified settings, features and the.

  • problem with Safari and the opening of sites

    problem with Safari and the opening of sites

    Please describe the problem in more detail?

    Try to reset the settings of Safari:

    1. open Safari

    2. click on the Safari menu at the top (to the right of the Apple logo)

    3. Select the Preferences/Privacy tab

    4. click on remove all data from the Web site

    5. close Safari.

    Remove cache Safari files:

    1. click on finder

    2. look for the menu GO to top

    3. click on GO and hold down the option key. This will show a user library folder.

    4. click library and find the Caches folder

    5. in the folder caches com.apple.Safari Ouvrezledossier

    6. move the Cache.db file Trash.

    This should solve the problem. If it does not help, try to disable the Safari extensions

    1. open Safari

    2. click on the Safari menu at the top (to the right of the Apple logo)

    3. Select Preferences

    4. find the Extensions tab

    5 disable all extensions of

    6. relaunch Safari

  • Is anyone able to run Adobe CS5 with El Capitan now? I've read about problems with Illustrator and photoshop, but these seem to be in 2015 Octobe5. She improved at all? I need to upgrade that I am running an old OS v but I need to run CS5.

    I've read about problems with Illustrator and photoshop on EL Capitan, but these seem to be in October 2015. She improved at all? I need to upgrade that I am running an old OS v but I need to run CS5. Can not afford to go to CC. I have a Macbook Pro.

    CS5 and 10.11 are not supported and will never be supported by Adobe or Apple.

    However it works for some, more actually, but not all. There are sporadic problems with Illustrator, Photoshop seems to be the best. Do not expect an improvement and keep in mind that anyone from Adobe, Apple or anywhere else will fix it.

    Do a clean install

    Make sure you have the Apple Java

    h ttps://support.Apple.com/kb/DL1572?locale=en_US

    Make sure you have your serial number and if you are having problems with the serial number or the serialization however adobe of web server will not support your problem.

    update the application via photoshop.

  • problem with java and pogo games

    I use mozilla, and now with the problems with java and hackers cannot play my pogo, what can I do? I disabled my java I tried java 6 does not work or is not safe, what is a safe way to play games on pogo using java?

    Pogo.com is determined as a website SAFE to use Java with Mozilla Firefox?

  • I'm having a lot of problems with firefox and cannot figure out how to get help. It all started when I updated to 13. I get all kinds of advertising popups, I can't play a

    I'm having a lot of problems with firefox and cannot figure out how to get help. It all started when I updated to 13. I get all kinds of advertising popups, I can't play a game on FaceBook called Farm Town at all, and I get a popup of AVG on the cookies that I can't get rid of. These issues are causing me to use Chrome quite often, although I like Fox better. I've searched and searched how to get help and find nothing. How can I get personalized technical help? These problems will not occur in Chrome at all. Thank you.

    Do a check with some malware malware, analysis of programs on the Windows computer.

    You need to scan with all programs, because each program detects a different malicious program.

    Make sure that you update each program to get the latest version of their databases before scanning.

    Alternatively, you can write a check for an infection rootkit TDSSKiller.

    See also:

  • Problem with youtube and other video sites

    I have a problem with youtube and other video sites:

    Everything is up-to-date (flash, FF, my plug ins.) but I get crashes when loading the video. I can hear the sound but I see only the first frame of the video.

    I've reinstalled flash/firefox or tried updating them again for about 4 times now and my cookies/cache has also been errased which i usually don't do. If i enter FF's safe mode it also freezes.
    

    I hope someone can help, I looked for answers on google before and I tried everything I saw, but it did not help.

    GRTS,
    agrash

    I had the same problem, I uninstalled the plugin Flash player (Adobe Flash Player 11.0.1 152) and the problem is solved. I installed the plug-in again and the problem came back. So right now I have no flas Player liked-in, but I don't have too much problem. I hope that I will not find another problem, but it seems that everything is OK.

  • Pavilion Notebook PC 15-079er: problems with sleep and shutdown 15-n079er HP Pavilion Notebook PC.

    Hello world

    I have a huge problem with my Pavilion. I used Windows 8.1 earlier, and I decided to upgrade to Windows 10. I did not like something (can't remember what) and decided to return to Windows 8.1. Almost a year passed, I am again on Windows 10. But if I SLEEP my computer:

    • Screen goes black, everything seems normal.
    • No matter how long wait, fan keeps spinning and power LED, LED Wi - Fi on.
    • Keyboard input does not help. Does not meet what it is.
    • The only thing left to do - stop hard.

    And if I shut down the operating system:

    • Windows normally stops, close all applications, screen goes black.
    • Fan on, led on.

    I did not notice these problems with restarting and the hibernation.

    Two things I've done in this gap of the year:

    • Replacement screen. An old broke. Thanks to my cat...
    • Formatted the drive. I don't think it would do anything diffirent.

    So, any help would be appreciated.

    Thanks in advance,

    Kebab

    Hello

    On some machines, the pilot for 11 series IMEI has been known to cause that kind of question of the judgment, so it may be worth trying an earlier version.

    You can use the following method to install an earlier version of the driver IMEI.

    Download driver IMEI on the link below and save it in your downloads folder.

    http://ftp.HP.com/pub/SoftPaq/sp66001-66500/sp66228.exe

    Disable your wireless card (should be f12 ).

    Open your download folder and run the installer - it warns you that it is an earlier version, but simply continue.

    When finished, restart the laptop.

    If the computer shuts down correctly, turn on your wireless adapter and use the utility on the following link to prevent Windows 10 to update automatically the driver IMEI again.

    https://support.Microsoft.com/en-GB/KB/3073930

    Kind regards

    DP - K

  • Compatibility problem with Vista and iTunes

    I downloaded iTunes 9 on my Tobisha laptop Satellite last night and put about 2.5 GB of music on it. I didn't upload the music from the internet. I used MP3s, I had for a few years.

    When I went to boot up the laptop this morning the loading process took some time, but it never loaded to the login screen. I just see the bottom of MicroSoft. Is there a compatibility problem with Vista and iTunes? Maybe I put too much music on my laptop?

    Boot in safe mode and delete iTunes and all the music I downloaded would solve the problem? Or it is less simple than that?

    Don't know where to direct this question if any help you could provide would be greatly appreciated.

    Thank you.

    Hello

    iTunes is compatible with Vista and there should not be any problem.
    Yesterday, I installed iTunes 9 on my U400 and everything happened correctly.
    If your laptop can not boot Vista correctly, then you should try the repair feature.

    Turn on the computer and press F8. Now you will see the advanced boot menu.
    Now, you have many choices.

    As a first step, you should try the option called: last good known Configuration (Advanced)

    If this will not help and the Vista will not start then try the option called repair your computer. This option displays a list of system recovery tools, you can use to repair startup problems, run diagnostics, or restore your system.

    If that does not help, then you will need to retrieve the unit using the Toshiba recovery disc or HARD drive recovery.

  • Pavilion 15 laptop: problems with stop and "standby" mode.

    I upgraded from windows 8.1 for windows 64 bit home 10. I had problems with stop and goes into sleep mode and cannot be resolved, then I reinstalled windows 10. Everything worked fine for a few moments, and then the same problem reappeared. I can't stop or put my PC into sleep mode, unless I have first of all to make a restart. After a reboot, I am able to stop or go to sleep mode without problem. If I try to do either without a restart, the screen goes black and the indicator light remains lit. The only way I can get it to start then press on and hold the power button and force a shutdown down, then press the power button to restart the upward. I have another PC, a wafer think that Lenovox has been upgraded to windows Windows 7 10. This PC work fine with windows 10, no problem at all. It's just the HP Pavilion 15 who has these questions. It makes me crazy.

    Look through the tool of troubleshooting possible solutions here:

    http://support.HP.com/us-en/document/c03383935

  • Printing problems with XP and Lexmark-documents are just stuck in the print queue

    Original title: printing problems with XP and Lexmark

    Until yesterday, I was able to print OK using Windows XP and a Lexmark Printer series 3500-4500 with wireless capabilities.  Reported network test wireless (on printer) and report indicates that there are no reported problem, also did the diagnostic test and which shows no problem either.  I can't print and documents are just stuck in the print queue - please can someone help, it drives me crazy because it's probably a very simple solution.

    I guess you do not have all of the error messages.

    It is possible that comes to mind that your printer has received a new IP address of your router (this could easily happen if you have several computers and other devices that connect to your wireless network).

    Find the IP address of the printer of his network diagnostic page.
    Click Start > printers and faxes, right-click the printer and select Properties
    Select the Ports tab, then click on the button "Configure Port" (be careful NOT to click anywhere in the list of ports)
    Make sure that the IP address in 'Port settings' is identical to that shown on the diagnosis of your network printer page.

    To avoid this problem in the future, you must configure the printer to have a static IP address.  See your printer User Guide for instructions.

    Choose an appropriate subnet address (i.e., has the first 3 groups of numbers the same as the other addresses in your network) but who is not in the range of addresses assigned by the DHCP server on your router.  See the User Guide of your router for more details.

  • Problems with word and PDF after computer crash. Error "user has access privileges."

    Problems with word and PDF after crash

    My computer crashed and I had to run the recovery disk, the repair option, so he could run again. It does not format my computer but I had to re - install several programs. I reinstalled my copy of office for example.  I have an external hard drive where I put most of my files but since installing the recovery disc, it does not open some Word documents and gives a message error "user has not access privilege." It's the same thing with some pdf files. What can I do?  Please help because I can't open some of my documents from the University.

    Hello world
    I would like to just say thank you for your help and the problem is now solved.  In the end I paid someone to sort it out.  He explained that it was something like permissions for some of my files were owned by my old operating system and after that my computer crashed and I had to put through the recovery disc these permissions have been lost.  He told me that he had a program that looked for the old existing and re-installed.
    Thank you.

  • problems with Vista and msn

    my laptop had vista business on it originally, it crashed a year ago and the store put windows 7 Home Edition premium on it, last week I had to have my hard drive changed due to problems with it and computer scientist put my vista business back on it, I thought I was brilliant as always I like vista , the problem is now I can not MSN up on it it keeps saying IE he blocked, IE 9 will not download, I play Facebook games and many of them won't load properly, tried to install service pack 2 for vista and it goes on to say that I have to install service pack 1 in the first place , its already there and updated pack 2 but still will not download. Someone at - it answers or useful tips or advice they can give me to have an entirely new work laptop

    Yes 100% positive sp 1 is installed and updated, already tried all the links you have kindly posted, was trying to do it for 12 hrs before I posted this question, I have 64 bit but that he already knew who didn't need the computor to tell me, I finally returned to the it guy and he discovered that the lap top returned to the original IE 7 when the hard drive has changed it dosent msn so therefore all the problems, he finally put IE 9 for me and the two vista service packs and support now msn works finally done my f/b, so Happy Days

  • problems with vista and microsoft set 32-bit or 64-bit.

    try to solve the problems with vista and microsoft fix it.  This error code 0 x 800400154 came up saying that they finish their using 32 bit and I have a 64 bit what they say.

    What version of the operating system Windows am I running?

    Windows 32-bit or 64-bit

    What Microsoft FixIt you try to run?  (There are MANY of them - they are simply the written scripts that do the manual steps in the KB article for you).

  • I restored my laptop Toshiba because I had some problems with it and now my Windows Vista computer is indicating that it is 'invaild.

    RESTORED FOR LAPTOP, WINDOWS VISTA INVAILD

    Hi I'm new to these fornums

    I restored my laptop Toshiba because I had some problems with it and now my Windows Vista computer is indicating that it is 'invaild...

    I have the product key on a sticker on the bottom of the laptop, but whenever I entered the code, I also get this:

    The product key you entered will not work with this edition of Vista

    I know that most people are trying to say to activate by phone, but this option is not available

    Help, please

    Now that you have found the key and the certificate of authenticity, you must change to the key on the COA sticker - ONLY then it will activate.

Maybe you are looking for

  • Adobe Flash erroe messages

    I updated Adobe Flash just now, it's good, it appears in the add-ins, but I keep getting messages on different pages, saying: you need to update Flash. It's just the latter since the last update of FF.

  • Why should we wait 3 min. start?

    Exployer 9 The screen remains black for three minutes now, then starts. How can I fix it?

  • It seems to me removing my volume control, how I reinstsall

    I have nothing in entertainment

  • APPCRASH caused my windows live messenger to stop working. __

    My windows Live Messenger has stopped working and the details of the problem. Is anyone know how can I fix? Help, please. Problem event name: APPCRASH Application name: msnmsgr.exe Application version: 14.0.8117.416 Application timestamp: 4bc935af Fa

  • My driver is up to date?

    I just bought and installed the software for a 7520 Photosmart e-all-in-one.  My Device Manager tells me the driver 26.0.0.0 July 19, 2011 is installed.  A web seearch at HP said that the latest driver for this device is 28.8, 78.38 M of October 22,