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

Native Development

Reply
New Contributor
jayhuang75
Posts: 5
Registered: ‎07-07-2013
My Device: developer
My Carrier: developer
Accepted Solution

Onload function

Hello Guys,

 

I just want to know if cascades have any function like Javascript windows.onload. I don't means that onCreationCompleted.

Because the  onCreationCompleted function just trigger once! 

 

ok let me show you a example.

 

I create a NavPane. I need some function every time pop() back and the function will be trigged. For me the  onCreationCompleted is not working like that way.

 

Any suggestion? need some help!

Please use plain text.
Developer
ekke
Posts: 1,439
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: Onload function

take a look at

 

onPopTransitionEnded()

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
New Contributor
jayhuang75
Posts: 5
Registered: ‎07-07-2013
My Device: developer
My Carrier: developer

Re: Onload function

Thank you so much for the quick replay! :smileyhappy:
Please use plain text.
Developer
sorout2009
Posts: 104
Registered: ‎08-23-2012
My Device: Blackberry Z10
My Carrier: TATA DOCOMO

Re: Onload function

You can override the default functionality of back button

 

paneProperties: NavigationPaneProperties {
backButton: ActionItem {
onTriggered: {
yourNavPaneID.pop();
}
}
}

Dharmender Singh
Please use plain text.
Developer
sorout2009
Posts: 104
Registered: ‎08-23-2012
My Device: Blackberry Z10
My Carrier: TATA DOCOMO

Re: Onload function

Great to hear from you that it solved your problem.
Feel free to press like if this solve your problem.
Dharmender Singh
Please use plain text.