Hi all, in this example I will show you how to use PhoneGap with jQuery Mobile Architecture.
Well to use jQuery Mobile Architecture you need to embed following css file and js file. And remember one thing you have maintain the order.
Now create a file called index.html and paste the following code inside that file. Hare I have used the concept of jQuery Mobile Architecture, a single html page with multiple div element.
Now add the following script in side your index.html file. Well in this script I have used a google api i.e. "https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=1000&callback=?&q= " this api is used to convert the xml output to JSON output. ';
});
$('#newsdata').empty();
$("#newsdata").html(htmlData);
$('#newsdata').listview('refresh');
}
}
Now create an android project as I explained in my previous post and put this index.html file over there and run your project and after that you will get the output like following.
Now create a file called index.html and paste the following code inside that file. Hare I have used the concept of jQuery Mobile Architecture, a single html page with multiple div element.
Now add the following script in side your index.html file. Well in this script I have used a google api i.e. "https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=1000&callback=?&q= " this api is used to convert the xml output to JSON output.
' + title + '
' + contentSnippet + '
And you final code will be like following.
Now create an android project as I explained in my previous post and put this index.html file over there and run your project and after that you will get the output like following.
No comments:
Post a Comment