Server Setup First, you need to update your system and install necessary packages to your system. To update the system and install the SSH server on the server machine, run the following command: sudo apt-get update sudo apt-get install open ssh-server Second, install Git on …
AJAX call issue
Hello, Please check your html file, and if you find below line of code then please remove it. <meta http-equiv=”Content-Security-Policy” content=”default-src ‘self’ data: gap: https://ssl.gstatic.com ‘unsafe-eval’; style-src ‘self’ ‘unsafe-inline’; media-src *; img-src ‘self’ data: content:;”> Your issue was due to “Content-Security-Policy”. Thanks.
Previous screen is not reachable via back button
Hello, The problem is in changepage jquery you have used for changepage. Make sure that if you want to save your history, then you have to write “changeHash : true” in your changepage jquery. so your jquery looks like below code: $.mobile.changePage(page, { transition : …
Validation Functions for cordova application
==================JavaScript function for validating userid================= function userid_validation(uid,mx,my) { var uid_len = uid.value.length; if (uid_len == 0 || uid_len >= my || uid_len < mx) { alert(“User Id should not be empty / length be between “+mx+” to “+my); uid.focus(); return false; } return true; } …
AJAX POST call returns internal server error 500
The 500 (internal server error) means something went wrong on the server’s side. It could be several things, but I would start by verifying that the URL and parameters are correct. Also, make sure that whatever handles the request is expecting the request as a …
Use UIView as UIButton…..
Give UIControl class to UIView then we can access that as UIButton.Add event like Touch Up Inside, touchDown… etc.
What is RecyclerView? And how to use it?
With the advent of Android Lollipop, the RecyclerView made its way officially. The RecyclerView is much more powerful, flexible and a major enhancement over ListView. below is detailed insight into it. 1) ViewHolder Pattern In a ListView, it was recommended to use the ViewHolder pattern but …
Endless listview
In some of cases, we need to repeat same data in listview for endless or we can say infinate listview. So, this code may be helpful in that case. You can use this adapter. public class CircularListAdapter extends BaseAdapter { // Debug static final boolean …
Access Shared preference data from one application to another application
Create Shared preferece data in first application set its mode to MODE_WORLD_READABLE. Here is a following snippet you can find how to create shared preference and store data into it. mSharedPrefs = getSharedPreferences(“Prefs_First”, MODE_WORLD_READABLE); SharedPreferences.Editor editor = mSharedPrefs.edit(); editor.putString(“name”, etName.getEditableText().toString()); editor.putString(“password”, etPassword.getEditableText().toString()); editor.commit(); In another …
jquery does not executed issue
I think you might have written jquery.min.js and jquery.mobile-1.4.5.min.js after your .js file. example: <script type=”text/javascript” src=”js/yourfile.js”></script> <script src=”js/jquery.mobile-1.4.5.min.js”></script> <script src=”js/jquery.min.js”></script> above code is worng code, you must write jquery.min.js and jquery.mobile-1.4.5.min.js before your .js file. correct code is: <script src=”js/jquery.mobile-1.4.5.min.js”></script> <script src=”js/jquery.min.js”></script> <script type=”text/javascript” …