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
Trusted Contributor
Posts: 152
Registered: ‎02-12-2011
My Device: Not Specified
Accepted Solution

How do you use the background start page rim:allowInvokeParams

Hello,

 

How do you use the rim:background element? what is it used for? 

 

  1. To run javascript? openBISPushListener?
  2. Can you pass parameters between it and the content page?
  3. How do you pass parameters between it and the content page?
Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: How do you use the background start page rim:allowInvokeParams

It defines a page that will be loaded in the background when your application is started.  The purpose of this page is to run any startup logic (e.g. starting listeners - Push is a great example) that your app may need to depend on, without requiring any UI.

 

This background page has NO ui.  Any attempt to interact with the UI (e.g. changing the DOM, calling alert() statements, etc) will result in no action.  Neither will making calls to redirect, as the background page cannot interact with the foregroud page(s) - so no query string.

 

To answer your question - "how do you pass parameters between it and the content page".  I would suggest using an offline storage technique such as localStorage, WebDB or even File.

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.