Moataz Abdellateef
Posts: 0
Joined: Sat Mar 02, 2013 12:12 am

Editing HTML files

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Editing HTML files

One option is to run JavaScript on page load.

Moataz Abdellateef
Posts: 0
Joined: Sat Mar 02, 2013 12:12 am

Editing HTML files

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';
}
});

Return to “Issues”