Languages

Menu
Sites
Language
how to use jquery get methode?

Hi

i am using api in my app here is my code   $.get("website", function (response) {}

it worked for me in web simulator but for device it is not worked 

what i am missing?

 

Responses

9 Replies
Marco Buettner

Did u include jquery locale or remote?

If u use remote, setup your config.xml to access network urls.

karthik s

 i added these line  <access origin="*" subdomains="true"/>
    <access origin="http://ipinfo.io/" subdomains="true"/> IN config.xml 

 

kindly share what i want add in config 

Seoghyun Kang

Dear karthik s,

 

How did you include the jQuery library?

Please write your head code at index.html.

 

Did you upload the jQuery library to http:///"ipinfo.io"?

And what is your device?

 

Please share your status.

 

Thanks

 

karthik s

1.I used offline jquery lib

2. 3.

3.No i want get ip address from ipinfo.io 

4.Samsung Z3

karthik s

<head>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=360, user-scalable=no" />

 

    <script src="lib/jquery.min.js"></script>

    <link rel="stylesheet" type="text/css" href="css/style.css" />
    <!--<script src="js/app.systemIO.js"></script>-->
    <script src="js/main.js"></script>

</head>

Marco Buettner

did u get an error?

karthik s

No 

Marco Buettner

are u sure? please post your log ;)

karthik s

Download from here http://www.screencast.com/t/HFjegkz6T