Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Contributor
Posts: 4
Registered: ‎09-09-2013
My Device: z10
My Carrier: na

Title Bar?

Hello, 

 

My webWorks app simply needs to display a web application to the user.  So in my config.xml the content tag looks like this:

 

<content src="http://mywebsite.com/index.html"/> 

 

The app loads my web app fine, but I have this annoying title Bar at the top, which displays the title of the page and a close button.  Is there any way to get rid of this titlebar?  It's completely useless for my app.  Thank you!

Developer
Posts: 366
Registered: ‎07-15-2013
My Device: blackberry Z10
My Carrier: Personal

Re: Title Bar?

but if you dont put any title bar , this can not display a title bar.

Or you want to display a title bar , but without the button?

If you find this information useful please click like --->
@mezeitune on twitter
New Contributor
Posts: 4
Registered: ‎09-09-2013
My Device: z10
My Carrier: na

Re: Title Bar?

The titlebar was added by the webworks webview overlay, which I can see if I use web inspector to view the source.

 

No, I don't want anything displayed that isn't in my web application.  No titlebar, no button.

 

I've seen other posts describing this problem, the solution being to remove the titlebar tag from the source manually.  But I'm not sure how to access that tag from my web application's css.

 

 

Developer
Posts: 366
Registered: ‎07-15-2013
My Device: blackberry Z10
My Carrier: Personal

Re: Title Bar?

but , I use bbui , and unless you put the property , the title bar donts show.

For example:

<div data-bb-type="panel-header">Hello</div>

If you find this information useful please click like --->
@mezeitune on twitter
New Contributor
Posts: 4
Registered: ‎09-09-2013
My Device: z10
My Carrier: na

Re: Title Bar?

I'm not actually using any bb libraries.  I already have a web application built using html/javascript.  I'm using webworks to simply display this website.  So in the config.xml, I'm setting the content tag to the url of my website. 

 

Which works, except for that pesky titlebar that's automatically inserted.

Developer
Posts: 366
Registered: ‎07-15-2013
My Device: blackberry Z10
My Carrier: Personal

Re: Title Bar?

https://developer.blackberry.com/html5/documentation/working_with_config_xml_file_1866970_11.html

 

maybe if you remove this   <name>Sample application</name>

not show the title bar

If you find this information useful please click like --->
@mezeitune on twitter
New Contributor
Posts: 4
Registered: ‎09-09-2013
My Device: z10
My Carrier: na

Re: Title Bar?

That tag is the name of the application.  It doesn't seem to have any effect over the titlebar

Developer
Posts: 366
Registered: ‎07-15-2013
My Device: blackberry Z10
My Carrier: Personal

Re: Title Bar?

I dont know if this can be useful for you

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/BBUI-disable-enable-titlebar-but...

 

else , you could start to use bbui or other framework 

If you find this information useful please click like --->
@mezeitune on twitter
Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: Title Bar?

A WebWorks application should not be injecting any sort of chrome / UI overlay...could you please share a full / sample conig.xml file and index.html that you are experiencing this with? I'd like to package it up here and give it a go.

Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.