Skip to Content
0
Former Member
Dec 02, 2011 at 05:03 PM

Hybrid Web Container: Overriding Generated Files

27 Views

Hey Experts.

I am working with SUP 2.1 Mobile Workflow or Hybrid Web Container applications. I was curious if anyone out there has been able to modify the template files for when a Mobile Worklfow is generated?

Specifically my use case is to display header and footer in Android and Blackberry. These by default are not shown. For example in the generated workflow_jQueryMobileLookAndFeel.html file string on line 1821 we have the following JavaScript:

$('div[data-role="header"]').css('display', 'none');

$('div[data-role="footer"]').css('display', 'none');

I of course can undo this in the customBeforeShowScreen method but prefer modifying the template for generation of the html file as it is arguably 'cleaner'.

There is an instance where an override wont work such as the above example. I also want to show my headers without the default back button. In the jquery.mobile-1.0a4.1.js file on line 1607 there is an option that enables the back button by default when there are no other buttons. Again I want to show the header on the login screen but dont want to show a back button - its not relevant:

$.widget( "mobile.page", $.mobile.widget, ,

keepNative: null

},

Any ideas? Thanks.