If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

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
Regular Contributor
liammccann
Posts: 68
Registered: ‎06-12-2012
My Device: Blackberry Bold 9780
My Carrier: Vodafone
Accepted Solution

bbUI - Problems with Push/Pop

[ Edited ]

Basicly when i load up the home page and click incident report

which push screens to incidentreport.html

 
If i use the back key and push back (which takes me back the the menu.html)

And then i click incident report it loads it below the current page and not a new page (which happened the first time)

 

Source coude is avaible here : https://www.dropbox.com/s/g8gqa3prg4zn1g5/bbUiPolice.rar

 

Am i doing something wrong? Do i need to pop current screen before loading a new one(dont think i should have to)

 

Strange issue...

 

The issue screenshot: https://www.dropbox.com/s/9growblkcdgqg66/load%20issue.GIF

The way it should load: https://www.dropbox.com/s/cz3mhvdmpheip72/shouldlooklife.GIF

 

Thanks for support!

 


index.html

<html>

<head>

<title>UI Test: Main Menu</title>

<meta name="x-blackberry-defaultHoverEffect" content="true" />
<meta name="viewport" content="initial-scale=1.0,width=device-width,user-scalable=no,target-densitydpi=device-dpi" />
<meta http-equiv="x-rim-auto-match" content="none">
<link rel="stylesheet" href="bbui-0.9.3.css"/>
<script type="text/javascript" src="bbui-0.9.3.js"></script>
<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="general.js"></script>

<script type="text/javascript">
bb.init();
</script>
</head>
<body onload="bb.pushScreen('menu.htm', 'WelcomePage');">
</body>
</html>

 


 

menu.html

<div data-bb-type="screen" data-bb-title="User Interface Examples" data-bb-effect="off">
<div id="welcomePage">
<div data-bb-type="title" data-bb-caption="Main Menu" ></div>

<div data-bb-type="round-panel">
<div data-bb-type="panel-header">Reports</div>
<div data-bb-type="label-control-container">
<div data-bb-type="row">
<div data-bb-type="label">Incident Report</div>
<div data-bb-type="button" onclick="bb.pushScreen('incidentreport.html', 'IncidentReport');">IncidentReport</div>
</div>

<div data-bb-type="row">
<div data-bb-type="label">Crime Report</div>
<div data-bb-type="button" onclick="alert('crime report');">CrimeReport</div>
</div>
</div>
</div>

</div>
</div>

 

 


 

incidentreport.html

<div data-bb-type="screen" data-bb-title="IncidentReport" data-bb-effect="off">
<div id="welcomePage" data-bb-type="round-panel">
<p>test test test test test test test test test test test test test test test </p>
</div>
</div>


Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: bbUI - Problems with Push/Pop

The trail of updates for this issue can be found here:

 

https://github.com/blackberry/bbUI.js/issues/196

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Regular Contributor
liammccann
Posts: 68
Registered: ‎06-12-2012
My Device: Blackberry Bold 9780
My Carrier: Vodafone

Re: bbUI - Problems with Push/Pop

Case now resolved and is in the next branch in github
Please use plain text.