Cant connect to Azure Mobile Service via Chrome Plugin


hi, i'm making plugin google chrome browser , have problem connection azure mobile service.

i that:

try{
    var client = new windowsazure.mobileserviceclient('appurl', 'appkey'),
    accounts = client.gettable('accounts');
} catch (err) {
    alert(err.message);
}

and have error message: "windowsazure not defined".

i added scripts html file , still not working

  <script language='javascript' src='popup.js'></script>
<script type="text/javascript" src='http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.1.min.js'></script>
<script src='http://ajax.aspnetcdn.com/ajax/mobileservices/mobileservices.web-1.1.2.min.js'></script>
    <script type="text/javascript" src='https://myappurl/client/mobileservices.web-1.0.0.min.js'></script>

can me pls?)

thanks. problem solved. add mobileserviceweb.js script background scripts in manifest.json. , it's worked me

"background": {
        "scripts": [
          "lib/mobileservices.web-1.0.0.min.js",
            "lib/jquery-1.9.1.min.js",
            "lib/controller.js"
        ]
    },

note: must add script files in order, cause controller.js (or "yourjsfile.js") depends on mobileservices.web , jquery



Microsoft Azure  >  Azure Mobile Apps



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'