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 : …
JQuery
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 …
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” …
ChangePage jquery issue
You need to integrate jquery.mobile.flatui.css in your .html file. You just need to write below line of code your .html file <link rel=”stylesheet” type=”text/css” href=”css/jquery.mobile.flatui.css”/> jquery-mobile-flatui
Show progress for ongoing download phone-gap application
Here the example for showing progress of ongoing download file. You need below line in your .html file: <div id=”status”></div> You need to write below code in your javascript file: var fileTransfer = new FileTransfer(); fileTransfer.onprogress = function(progressEvent) { if (progressEvent.lengthComputable) { var perc = …
Download & Store files in documents directory iOS phone-gap application
Hello, Here is the code for download and store files in document directory ios phone-gap app. var fileTransfer = new FileTransfer(); fileTransfer.download( uri, filePath, function(entry) { alert(“download complete: ” + entry.toURL()); } }, function(error) { alert(“download error source ” + error.source); alert(“download error target ” …
Dynamic data binding in table phone-gap app
When you add data dynamically in table, You have to “refresh” table after data append otherwise it does not display data in table. Simple you need to write following line in your java-script file. $(“#your_table_id”).table(“refresh”);
Jquery – TreeGrid from HTML table.
For that I used below jquery plugin for using that follow below simple steps Step 1. Initialize plugin (Download JS and CSS file from given reference link and add into your project) <script type=”text/javascript” src=”js/jquery.js”></script> <script type=”text/javascript” src=”js/jquery.treegrid.js”></script> <link rel=”stylesheet” href=”css/jquery.treegrid.css”> <script type=”text/javascript”> $(‘.tree’).treegrid(); </script> …
Jquery – Custom dropdown with search functionality
That time you can create your custom drop-down with search functionality For that first add JS and CSS file into your project. you can find js & CSS file from here custom-dropsown. After Download that Code you can add that references in you page. and put …