//Initialize function
var init = function () {
$('div[data-role="page"]:first .ui-btn-back').bind("click", function(event) {
var currentApp = tizen.application.getCurrentApplication();
currentApp.exit();
});
// TODO:: Do your initialization job
console.log("init() called");
};
var allc = function (){
$('#all').show();
$.mobile.activePage.page('refresh');
}
$(document).bind('pageinit', init);
So, how to make dinamic (with height change) header, footer and content correctly?
Header/Footer dinamic content
I have simple list:
By clicking on button on the footer, i’m adding some elements on the header:
Obviously, after this height of main content is changed.
Then i get 2 situations.
1) if i do not refresh the page ,i get this:
2) If i refresh the page by adding $.mobile.activePage.page(‘refresh’) i get this:
index.html:
main.js:
So, how to make dinamic (with height change) header, footer and content correctly?
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio