Cross domain AJAX calls work on browser, but not on ripple/Simulator

The question I faced is I call of cross-domain ajax using jQuery for the facebook site using an access token. This call works on Chrome and Firefox, but fails on the Simulator and ripple. I have setup my file config.xml with the proper access flags.

My related code is below (cut).

var fbData = { access_token: _fbToken };
var fbUrl = "https://graph.facebook.com/me";

$.getJSON(fbUrl,fbData, function(data){
   // Some code here
});

I also tried using the extended method of $. ajax() and JSONP specifying the data type, but it is the same problem.

I looked in the Inspector on the drive and I see that no host header is set, but Chrome or Firefox will automatically fill "Host: graph.facebook.com" in the request header. I wonder if this is the problem?

Demand is just stuck as 'pending' in the network tab.

JSONP requests in jQuery, you cannot alter the headers (so not in available beforeSend setHeader).

I don't have the chance to test it on the device but wonder if other people have faced this problem.

Well, for those who falls on this issue, the problem does not occur on the device (AFAIK). I ran on a device OS6 and things were good to go.

Tags: BlackBerry Developers

Similar Questions

  • Skype click to call works in Chrome, but not Firefox

    Skype 7.7.103, C2C, v 7.4.9058, FF v v40
    This question was asked enough now for a response to available. Time to dump FF and go to Chrome?

    What problems are you having with the Skype extension?

    Just to go through the usual:

    (1) does show on the addons page and can it be activated? You can open it only by using either:

    • CTRL + SHIFT + a
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click Extensions. Then check the list on the right. Extensions disabled down cluster.

    Note: It is normal in 40 of Firefox to display a message that the extension is not checked.

    (2) must its button be added to the toolbar? You can use the Customize tab to detect if it is not in the expected location. See: Customize Firefox commands, buttons, and toolbars.

    Are there other issues? I do not use this extension myself.

  • using modules in json (or enabling cross domain ajax) files

    I need to display a list of web applications on a different domain. (Both are catalyst for activity sites).

    I seem to have two options:

    JSONP

    I jsonp working on a json file coded hardcoded, but as soon as I tried to put the {module_webapps} in, I realized that BC does not have labels outside of the html files.

    This is the json file, I want to get:

    () houseLandCallback

    {"packages": []}

    {module_webapps, 7307, c, 48029}

    ]}

    );

    CROSS DOMAIN AJAX

    Is it possible to allow both sites to BC to share data?

    I know that the whole point of British Colombia is it have a solid server that you cannot change.

    Not at the moment no. You can run out of FEED.

    Liquid and BC. Is then on the horizon that has more support JSON, etc., while JSOP is not at launch, if all goes well, it can be added down the line.

  • Train with webutil works with the browser, but not with webstart JNLP 12 c

    Hello

    I set up forms and reports suite 12 c according to the instructions and I'm testing my forms updated since version 10 g.

    In some forms, I use webutil.

    I can run forms without webutil with the browser or java web start (everything works fine).

    I have problems with the forms use webutil tha, they work very well with the browser, but not with java web start.

    When I run forms with webutil and webstart I see all white and the "crash" application: I must leave because other forms without webutil also do not work.

    Here is my config in formsweb.cfg:

    [Appws] <-start java web

    form = nomeform

    Archive = frmall.jar, frmicons.jar

    WebUtilArchive = jacob.jar, frmwebutil.jar

    WebUtilTrustInternal = true

    WebUtilLogging = off

    WebUtilLoggingDetail = normal

    WebUtilErrorMode = alert

    WebUtilDispatchMonitorInterval = 5

    WebUtilTrustInternal = true

    WebUtilMaxTransferSize = 16384

    baseHTML = webutilbase.htm

    baseHTMLjpi = webutiljpi.htm

    basejnlp = webutil.jnlp

    WebStart = on

    [appnows] <-no java web start

    shape = mercurio

    separateFrame = true

    Archive = frmall.jar, frmicons.jar

    WebUtilArchive = jacob.jar, frmwebutil.jar

    WebUtilTrustInternal = true

    WebUtilLogging = off

    WebUtilLoggingDetail = normal

    WebUtilErrorMode = alert

    WebUtilDispatchMonitorInterval = 5

    WebUtilTrustInternal = true

    WebUtilMaxTransferSize = 16384

    baseHTML = webutilbase.htm

    baseHTMLjpi = webutiljpi.htm

    basejnlp = webutil.jnlp

    What could be the problem?

    Gianpaolo

    Remove Appws:

    Archive = frmall.jar, frmicons.jar

    WebUtilArchive = jacob.jar, frmwebutil.jar

    baseHTML = webutilbase.htm

    baseHTMLjpi = webutiljpi.htm

    Add frmicons.jar and jacob.jar to $ORACLE_HOME/forms/java/extensions.jnlp.

    and try again.

    Concerning

  • The site that is integrated within a Web site, works for Firefox but not in IE

    I want to display another site within my site (in my head),

    "Code is: < object data ="http://WEBSITE ADDRESS"width ="1000"height ="600"" > < embed src = "ADDRESS http://www.WEBSITE" width = "1000" height = "600" > < / embed > error: embedded data could not be displayed. < / object >

    I can see this good in Firefox but not in IE. Also in Dreamweaver, I get a report of validation of the name of the tag: "embed" not found in the currently active versions. [XHTML Transitional 1.0]

    I don't know why it works in a browser, but not another, and IE is the one that we really need to work.

    Note that uppercase letters in the code have been changed since the address of actual website for forum purposes. Any help much appreciated.

    Use an inline frame or

  • FlvPlayer works with FireFox but not with IE

    Hello

    I created an FLV Player to play remote. FLV movie. It works with Firefox but not with Internet Explorer 6 or 7. In fact, when I test locally on my desktop with local (on my desktop). File FLV movie player works in Internet Explorer. The problem seems to be my Web site, when reading remotely. FLV file, it only works with Firefox.

    Try my Web site with Firefox and IE 6-7 and you will see only works with Firefox. Movie player (right section) to this remote file access: http://www.wikiguitarist.com/wikiguitarist/images/9/9a/CanonFuntwo.flv .

    Since it is a Wikimedia site HTML code is generated from a PHP file. Here is the code that generates the HTML code.

    Of Internet Explorer browser only interpret the tag: < embed >?
    Why IE has problem to play remotely. File FLV and not Firefox?

    Any idea, suggest code, suggest HTLML, action script...?

    Thank you
    Alain



    Hi guys,.

    Thank you very much, Jeckyl, you were right, it seems that only FLASVARS is allowed. Nevertheless, I will try to test if I can pass more than one variable/value less a statement of FLASVARS. For the moment, leaving only a statement of FLASVARS the video works fine with IE and Firefox. I'll do a little cleanup, it is true that my generated HTML code is a bit messy.

    Thanks to WindShadow75 for your answer, now you see it works because I removed the additional declaration of FLASVARS.

    Several guys from tanks, it is appreciated!

    WikiGuitarist

  • I have install the module "adblock more ' on my android furefox browser, but not block, he adds. What can I do?

    I have install the module "adblock more ' on my android furefox browser, but not block, he adds. What can I do? Please help me quickly.

    You should contact the https://adblockplus.org/forum/ extension

  • Just got 2 of SE. Weather app works on one but not the other.

    Just got 2 of SE. Weather app works on one but not the other. Ideas?

    Drosea,

    Define/describe does not.

    What's the weather App?

  • reCAPTCHA works in IE8, but not in Firefox - missing graphics

    reCAPTCHA works in IE8, but not in Firefox

    All the graphics, the challenge, radio buttons and logo do not appear.

    Make sure that you are not blocking JavaScript.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the Add-ons is the cause of the problem (switch to the DEFAULT theme: Tools > Modules > themes).

    • Makes no changes on the start safe mode window.

    See:

    See also:

  • Satellite L40-15B - WiFi works at home but not at school

    My daughter has satellite worked at home and at school: wifi OK, internet OK. The satellite crashed: hard disk failure. Bought a new hard drive.

    I reset the Satellite via the recovery CD. It is now a new clean system with * Windows Vista home premium *. * Wifi works immediately at home. Internet too, but at school with my daughter, the wifi is NOT working anymore.*
    Laptops from other children at school always work with wifi.

    A college of my work told me his sister had exactly the same problem!

    Help!

    Hello

    If the WIFI connection works at home but not at school it has nothing to do with Toshiba. I think that your daughter should ask the administrator of the school what is the problem. Maybe the WLAN requires a certain configuration of TCP/IP or else I n t he know and I think that no one here can answer this question.

    Is that wireless network card is properly installed and works, because you can access the Internet at home.

    Sorry, but everything that s what I can say.

  • Why did the counter works in MAX, but not of Labview?

    Please help, I've been away from Labview for more than 3 months and I'm pretty rusty...

    Last year, I configured successfully NI9401 to measure the period (in seconds) by counting the rising edges of my sensor signal.  Since then, I bought a new PC and loaded all my software inside, including the Labview VI that has worked successfully on the old computer.

    I can see the digital signal using MAX and test for the NI9401 Panel, then, I know that my son and my TTL signal is OK, but nothing except the below error when I try to run the attached VI, happens...  How can I say this VI to search for the signal on channel 14 and MOD3/CTR0?

    Thank you. I'm sure it's a small adjustment... it worked well a few months ago... do not know what the problem is now.

    Thank you

    Dave

    OK, now.  Solved the problem. The vi is fine, but some fragile son have been identified... worked in MAX but not in vi.  Now that the connections have been tightened, it works for both.  Sorry for the inconvenience.

    Dave

  • OCR has worked with xp but not windows 7

    With the help of HP C3180 all-in-One printer and Windows 7, 64-bit.

    OCR has worked with XP but not with 7.  Am I missing something?

    Hello belcanguy

    If scanning with I.R.I.S. only shows the scan to image that says Solution Center? Try I scan a document using the Solution Center and see if you can choose an OCR pdf or RTF document.

  • Why my website slider works in Chrome, but not in Internet Explorer

    Why my website slider works in Chrome, but not in Internet Explorer

    On this page it says IE version 10 uses "animation".

    & then if you look at the examples on this page it shows:

    div {}

    -webkit-animation: myfirst 5 s; / * Chrome, Safari, opera * /.

    Animation: myfirst 5 s;

    }

    So, you will need to do.

    Also, check the CSS3 menu on the left, there "transform 2D" then you should find how to join also CSS3 2D transforms

    I have never used myself these animation properties, but these pages will have the info you need.

  • Spry ToolTip works in IE but not Firefox

    Hello

    I do not understand or cannot know what I did wrong. I created a ToolTip for the manufacture of the last product (diameter of 4 inches (special order) brass water revitalizer) on page: http://www.alivewater.net/order.htm

    It works in IE but not Firefox... I can't understand why... can you help me and see what I did wrong?

    Eternally grateful,

    Starry

    The biggest problem I see with the page is that there is no defined document type.  This means browsers have to guess what validation to use to guess what effects should arrive.  If you click on edit->-> category title/encoding Page Properties, you must define the Document Type (DTD).  I.e. once set DW will define the type of document for you.  You can then save and re-upload your document and we can see if the same problem persists.

  • database simple html5 works in the browser but not emulator

    I have a database of simple html5. It works on browser (chrome/safari) but not in the emulator. If after having included the html5_init.js file does not work on an os device five? I also simulated a sd card, so this isn't a problem, why it does not work. Here is the code:

    html PAG

    !DOCTYPE html PUBLIC-//W3C//DTD HTML 4.01 Transitional//Ehttp://www.w3.org/TR/html4/loose.dthtmheameta nameviewpor idMeta contentinitial-scale=1.0,user-scalable=n meta namex-blackberry-defaultHoverEffec contentfals link  relstyleshee typetext/cs hrefcss/common.cslink  link  relstyleshee typetext/cs hrefcss/start.cslink link  relstyleshee typetext/cs hrefcss/tabs.cslink
    titlAdd Birthda/titlscript typetext/javascrip srcjs/common.j/scripscript typetext/javascrip srcjs/html5_init.j idhtml5_ini/scripscript typetext/javascrip srcjs/birthdayapp.j/scrip
    /heabody onLoadinit()
           div classmy_heade
               p aligncenteAdd Birthda/
           /di
    
               div classmain-pane
                   div classpanel-top-lef/di
                   div classpanel-top-righ/di
                   div classpanel-insid
                    div classpanel-noga
                       div classro
                           div classlaeFirst Name/di
                           input typetex idfirstnam
                       /di
                       div classlistSeparato/di
                       div classro
                           div classlabeLast Name/di
                           input typetex idlastnam
                       /di
                       div classlistSeparato/di
                       div classro
                           div classlabeEmail/di
                           input typetex idemai
                       /di
    
                        div classlistSeparato/di
                       div classro
                           div classlabePhone Number/di
                           input typetex idphonenumbe
                       /di
                       div classlistSeparato/di
                        div classro
                           div classlabeImage/di
                           input typetex idimag
                       /di
                       div classlistSeparato/di
                        div classro
                           div classlabeBirthday/di
                           input typetex idbirthda
                       /di
                        div classlistSeparato/di
                        div classro
                           div classlabeBaught Gift/di
                           input typetex idbaughtgif
                       /di
                           div classlistSeparato/di
                        div classro
                           div classlabeReminder Day/di
                           input typetex idreminderda
                       /di
    
                    /di
                   /di
                   div classpanel-bottom-lef/di
                   div classpanel-bottom-righ/di
               /di
               input typebutto stylefloat: right; padding: 6px; margin-right: 8px idsav valueSav onClickmakeReminder()
    
            ul idreminder 
    
           /u 
    
            /bod/htm
    

    Now for the javascript database thread

    //Pre-requisites
    var birthdayapp = {};
    
    //Step 1. Opening the database
    birthdayapp.db = null;
    
    birthdayapp.open = function() {
      var dbSize = 5 * 1024 * 1024; // 5MB
      birthdayapp.db = openDatabase('bdreminder', '1.0', 'Birthday Reminder', dbSize);
    }
    
    birthdayapp.onError = function(tx, e) {
      alert('Something unexpected happened: ' + e.message );
    }
    
    birthdayapp.onSuccess = function(tx, r) {
      // re-render all the data
      // loadReminders is defined in Step 4a
      birthdayapp.getAllReminders(loadReminders);
      alert("an action was performed successfully!");
    }
    
    //Step 2. Creating the table
    birthdayapp.createTable = function() {
      birthdayapp.db.transaction(function(tx) {
        tx.executeSql('CREATE TABLE IF NOT EXISTS bdreminders(reminder_id INTEGER PRIMARY KEY ASC,'+
                                                            'firstname   varchar(50), '+
                                                            'lastname    varchar(50), '+
                                                            'email       varchar(50), '+
                                                            'phonenumber varchar(50), '+
                                                            'image       varchar(50), '+
                                                            'birthday    varchar(30), '+
                                                            'baughtgift  char(3),     '+
                                                            'reminderday varchar(50),'+
                                                            'createdon   date)', []);
      });
    }
    
    //Step 3. Adding data to the table
    birthdayapp.addReminder = function(firstname,lastname,email,phonenumber,image,birthday,baughtgift,reminderday) {
      birthdayapp.db.transaction(function(tx){
        var createdon = new Date();
        tx.executeSql('INSERT INTO bdreminders(firstname, lastname, email, phonenumber, image, birthday, baughtgift, reminderday, createdon) '+
                      'VALUES (?,?,?,?,?,?,?,?,?)', [firstname, lastname, email, phonenumber, image, birthday, baughtgift, reminderday, createdon],
            birthdayapp.onSuccess,
            birthdayapp.onError);
        });
    }
    
    //Step 4. Selecting data from the table
    birthdayapp.getAllReminders = function(renderFunc) {
      birthdayapp.db.transaction(function(tx) {
        tx.executeSql('SELECT * FROM bdreminders', [], renderFunc,
            birthdayapp.onError);
      });
    }
    
    //Step 4a. Rendering data from the table
    function loadReminders(tx, rs) {
      var rowOutput = "";
      for (var i=0; i < rs.rows.length; i++) {
        rowOutput += renderReminders(rs.rows.item(i));
      }
    
      var reminders = document.getElementById('reminders');
      reminders.innerHTML = rowOutput;
    }
    
    function renderReminders(row) {
      return '
  • ' + row.reminder_id + '[X]
  • '; } //Step 5. Deleting data from the table birthdayapp.deleteReminder = function(id) { birthdayapp.db.transaction(function(tx) { tx.executeSql('DELETE FROM bdreminders WHERE reminder_id=?', [id], birthdayapp.onSuccess, birthdayapp.onError); }); } //Step 6. update the table birthdayapp.updateReminder = function(reminder_id,firstname,lastname,email,phonenumber,image,birthday,baughtgift,reminderday) { birthdayapp.db.transaction(function(tx) { tx.executeSql('UPDATE bdreminders set firstname = ?, lastname = ?, email = ?,phonenumber = ?,image = ?,birthday = ?, baughtgift = ?, reminderday = ? WHERE reminder_id = "reminder_id" ', [firstname, lastname, email, phonenumber, image, birthday, baughtgift, reminderday], birthdayapp.onSuccess, birthdayapp.onError); }); } //Step 7. select a specific from table birthdayapp.getOneReminder = function(reminder_id) { birthdayapp.db.transaction(function(tx) { tx.executeSql('SELECT * FROM bdreminders WHERE reminder_id = ? ', [reminder_id], birthdayapp.onSuccess, birthdayapp.onError); }); } //select specific record function makeReminder(){ alert("add reminder called"); var fn = document.getElementById('firstname').value; var ln = document.getElementById('lastname').value; var em = document.getElementById('email').value; var ph = document.getElementById('phonenumber').value; var im = document.getElementById('image').value; var bd = document.getElementById('birthday').value; var bg = document.getElementById('baughtgift').value; var rd = document.getElementById('reminderday').value; birthdayapp.addReminder(fn,ln,em,ph,im,bd,bg,rd); } //init function function init() { birthdayapp.open(); birthdayapp.createTable(); birthdayapp.getAllReminders(loadReminders); }

Maybe you are looking for