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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Developer
MirkoAgrati
Posts: 21
Registered: ‎10-30-2012
My Carrier: H3G Italy

Click on HTML SELECT sends my app on error

Hi guys :smileyhappy:

I've a question about the WebWorks development, precisely about the use of HTML SELECT.

 

I'm doing the porting of the app "MA4Producteev" from smartphone to playbook platform.

My configuration is BlackBerry WebWorks SDK for TabletOS 2.2.0.5 and my playbook's OS is 2.1.0.1088.


I have a HTML form, within it there're some static SELECT and other input field (text, datetime).

An example of a SELECT is (copied from the source):

<div class="value" id="deadlineInfoStars">
  <select id="selTskStars">
    <option value="0">none</option>
    <option value="1">1 Star </option>
    <option value="2">2 Stars</option>
    <option value="3">3 Stars</option>
    <option value="4">4 Stars</option>
    <option value="5">5 Stars</option>
  </select>
</div>

 

You can see that there's no javascript binding on its events, but sometimes when clicking on a SELECT (not always on the same SELECT) the app freezes.

 

No panel with the options appears and the app doesn't answer to any events, I can only close it.

 

My sensation is that the app is waiting that user choose a options, but these are not visibile.
May be that the options's panel is at the bottom of the DIV's stack?

 

However, after restarting the app (not the playbook) and after clicking on the same SELECT it works. Rarely it goes on error twice.

 

Any further idea o work-around?

 

Tnx,
MA

 

 

 

Please use plain text.
BlackBerry Development Advisor
oros
Posts: 839
Registered: ‎04-12-2010
My Carrier: Bell

Re: Click on HTML SELECT sends my app on error

Hi Mirko,

 

I created a jsbin for this:

http://jsbin.com/arokuv/1/

 

I've been testing on my own PlayBook (2.1.0.1088) but no matter how much I click, I'm not seeing the issue. I tested both in the browser and in a WebWorks application.

 

I realize you mentioned it was in a WebWorks app, but I just want to confirm as well whether you're seeing it in the browser directly.

Please note that I will be unavailable between May 19th and June 4th. Sincere apologies for any delays during this time. I will do my best to follow-up as soon as I am able.

Erik Oros
BlackBerry Development Advisor
@WaterlooErik
Please use plain text.
Developer
MirkoAgrati
Posts: 21
Registered: ‎10-30-2012
My Carrier: H3G Italy

Re: Click on HTML SELECT sends my app on error

Hi Oros,

Tnx for the answer!

 

When I run the app in the chrome ripple extension it works fine. Never experienced the bug.

 

It happens randomly and only when I test the app on my playbook.

 

This is the main reason why I can't understand what's happened…

 

Your jsbin is working fine: I'm testing it with the playbook browser.

 

 

If you want I'll send you the .bar asap. For me no problem.

 

Tnx.

Please use plain text.
BlackBerry Development Advisor
oros
Posts: 839
Registered: ‎04-12-2010
My Carrier: Bell

Re: Click on HTML SELECT sends my app on error

Sure thing, fire it along.

Please note that I will be unavailable between May 19th and June 4th. Sincere apologies for any delays during this time. I will do my best to follow-up as soon as I am able.

Erik Oros
BlackBerry Development Advisor
@WaterlooErik
Please use plain text.
Developer
MirkoAgrati
Posts: 21
Registered: ‎10-30-2012
My Carrier: H3G Italy

Re: Click on HTML SELECT sends my app on error

Hi Oros,

good news :smileyhappy:

 

I found the solution, it was documented in the forum ..... 

 

The problem was inside file config.xml.
By removing the attribute onFirstLaunch="true" from the rim:loadingScreen then everything works fine :smileyvery-happy:

 

Here the link to documentation:

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Playbook-popup-are-coming-behind...

 

 

Excuse me if I didn't found it before and I made you waste time.

 

Tnx.

 

MA 

 

 

Please use plain text.
BlackBerry Development Advisor
oros
Posts: 839
Registered: ‎04-12-2010
My Carrier: Bell

Re: Click on HTML SELECT sends my app on error

Questions are what we're here for. I'm glad you managed to figure it out. I actually hadn't seen that issue before so didn't know the answer myself. Now we're both smarter for the future :smileyhappy:

 

In my sample, I hadn't included a loading screen (just used a basic config.xml) which makes sense of why I didn't get the issue then. Good to know!

Please note that I will be unavailable between May 19th and June 4th. Sincere apologies for any delays during this time. I will do my best to follow-up as soon as I am able.

Erik Oros
BlackBerry Development Advisor
@WaterlooErik
Please use plain text.