Skip to main content
Participant
July 26, 2012
Question

Jquery & JSONP not working

  • July 26, 2012
  • 1 reply
  • 584 views

I am making a web app with the flex html element. I'm trying load a couple of scripts into the index.html file to recive data, but there is one problem. I'm not getting the data.

I'm using Flash Builder 4.6 & SDK 4.6.0 to create the desktop application.

Here is the script I'm trying to run. It works when running it in the browser (google chrome, safari, firefox) but its not working in Adobe Air Desktop App.  HELP!!


          <script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>

</head> 

<script type="text/javascript">

          function updatedata() {

                    if(getdata == 'test'){

                              $.getJSON('https://api.twitch.tv/kraken/channels/bmacbook?callback=?', function beta(data) {

                                                  document.getElementById("title").innerHTML= data.status;

                              });

                    }

                    }

</script>

This topic has been closed for replies.