Page 1 of 1

Editing HTML files

Posted: Sat Mar 02, 2013 3:15 am
by Moataz Abdellateef

I am trying to fix an issue with the navigation bar to eliminate the "activated" feature after it is clicked. I was able to successfully do it with the exported code HTMS/JS/CS for my BlackBerry project. What I need is to have that line of code part of the tiggzi project instead of editing it every-time I export the code.
The second problem is I need to do the same with the Android version, and creating an .apk file with the set of files exported files every-time is a lengthy process.
So, my question, how can I add the line I need to the HTML file without the need to export and edit it externally.


Editing HTML files

Posted: Sat Mar 02, 2013 3:19 am
by maxkatz

One option is to run JavaScript on page load.


Editing HTML files

Posted: Sat Mar 02, 2013 3:26 am
by Moataz Abdellateef

Here's the line "$.mobile.activeBtnClass = 'unused';" inside the function below.

$(document).bind("mobileinit", function() {
$.mobile.activeBtnClass = 'unused';
if (navigator.userAgent.indexOf("Android") != -1)
{
$.mobile.defaultPageTransition = 'none';
$.mobile.defaultDialogTransition = 'none';
}
});