Monday, 30 September 2013

Problems with jquery mobile and DateBox

Problems with jquery mobile and DateBox

I have a problem with my datepicker. I use
http://dev.jtsage.com/jQM-DateBox2/ for the picker.
As you see in my fiddle: http://jsfiddle.net/SrHNe/ It does not change
page, even thoug it is trigging the alert
$('#datepicker').on('change', function(e,p) {
var date = $(this).val();
var location = "index.php?date=" + date;
alert(location);
window.location.href(location);
});
I have tried with window.location.assign(location) also, but here it will
only work on the today button "gå til i dag" in the buttom of the
daypicker. ? how can that be? I can not use mobile.changePage( to [,
options ] ) because I need the changing without ajax.

No comments:

Post a Comment