caching Issue in android using jquery mobile?
Sorry I Delete my previous post .In This I give more information with my
try.I am using jquery mobile in my project.I have one div(having some
contend) in which I set font size .But when I goes back and come again it
shows same font size(in div contends).I think it is using caching .How to
remove caching in android using jquerry mobile?
here is my fiddle. http://jsfiddle.net/naveennsit/vfJSQ/
Do the following steps 1) Click the cancel button .It show next page.
2)Click the first button on header it show slider .then slide the slider
it zoom the contend. 3)Then click the second button it close the screen .
4) Click again cancel button it show same state (zoom state) 5) How to
remove that state.?
$(document).on('click', '.CancelSettingButton_h', function(event) {
// event.stopPropagation();
$.mobile.changePage($("#realTimeScreen"));
});
$(document).on('click', '.stop_h', function() {
$.mobile.changePage($("#Home"),{transition:'none'});
});
$(document).on('click', '.follow_h', function() {
$(".sliderContend_h").toggle("slow");
});
$(document).on('slidestop', '#slider-2', function() {
var style;
var font = $(this).val();
if ($('head').find('style.font').length === 0) {
style = $('<style class="font">.font { font-size: ' + font + 'px
!important; }</style>');
$('head').append(style);
$('#realTimeContents').addClass('font');
} else {
$('body *').removeClass('font');
$('style.font').empty();
style = '.font { font-size: ' + font + 'px !important; }';
$('style.font').append(style);
$('#realTimeContents').addClass('font');
}
});
No comments:
Post a Comment