Author Archives: coja

JQuery Mobile: Checkbox Issue

I have been trying to manipulate checkbox via JavaScript.
Long time spent to find out why the regular JQuery Code doesn’t work with JQuery Mobile.
Finally I resolved the issue.
Review the code below to understand the solution.


The code


must be added every time the checkbox value changed.

PS Note:
Same rule probably should be applied to select element in jQuery Mobile Framework


One more snippet regarding this matter


Javascript: function showTime()

function showTime(){

myDate = new Date();

// Get time parts

hours = myDate.getHours();

minutes = myDate.getMinutes();

seconds = myDate.getSeconds();

// Just to display the time in a nice format

if (hours < 10) hours = "0" + hours;

if (minutes < 10) minutes = "0" + minutes;

if (seconds < 10) seconds = "0" + seconds;

actualTime = hours+":"+minutes+":"+seconds;


php Code to analyze – ini_set usage

php Code to Analyze

ini_set usage with “include_path”

if ( function_to_test($var ) ) ini_set("include_path", "/var/www/vhosts/");
else ini_set("include_path", "/var/www/vhosts/");

require "modules/mpgClasses.php";
include "modules/mpiClasses.php";

JQuery Mobile Framework Connecting

JQuery Mobile Framework connecting
<link rel="stylesheet" href="mobile_css.min.css" />
<link rel="stylesheet" href="" />

<script type="text/javascript" src=""></script>

<script type="text/javascript" >
$(document).bind("mobileinit", function(){
$.mobile.ajaxEnabled = false;
<script type="text/javascript" src=""></script>