Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Input Fields Slow/Delayed #191

Closed
liammccann opened this Issue · 10 comments

2 participants

@liammccann

Device: Blackberry Bold 9780
Version: 6.0

When using the following HTML code for user input, there is many unexpected delays.
-Usually delay in allowing the user to enter text
-A delay in moving between fields sometimes jumping
-If the user goes to a field and enters text to quick it stops them entering it atoll

The most president problem is the delay in allowing the user to type text which 9/10 times occurs.

The code we are using for the form is (home.html):

<div data-bb-type="round-panel"> 
    <div data-bb-type="panel-header">Personal Details</div>

    <div data-bb-type="label-control-container">

        <div data-bb-type="row">
           <div data-bb-type="label">First Name</div>
           <input type="text" />
       </div>

        <div data-bb-type="row">
           <div data-bb-type="label">Middle Name</div>
           <input type="text" />
       </div>


        <div data-bb-type="row">
           <div data-bb-type="label">Last Name</div>
           <input type="text" />
       </div>

        <div data-bb-type="row">
           <div data-bb-type="label">Notes</div>
           <textarea rows="5"></textarea>
        </div>

    </div>
</div>

The main page which loads it head file looks like

    <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" />
    <link  rel="stylesheet" type="text/css" href="bbui-0.9.2.css"><link />
    <script type="text/javascript" src="bbui-0.9.2.js"></script>

And the body just simply

Which calls the javascript function that has the followling lines of code:

bb.init(); bb.pushScreen('home.html', 'FormPersonal');}

When removing the delay doesn't happen. but we require focus to make the UI more user friendly.
We have tried many different ways and still cant seem to solve this delay.

@tneil
Owner

If you don't have bbUI on the content (i.e. just a screen in webworks with the input fields), is the trackpad scrolling between fields any faster?

@liammccann

No, This seems to be the issue, if we include your navmode.js scroll and editing feilds is perfect. If we use the default one in the webworks\js\navmode.js theres delays and it stops letting you input sometimes many differnt bugs.

So if we replace webworks\js\namode.js with yours it works fine.

Also our form inclueds no javascript or styling. Just simply 5 text feilds. Do you have an email address we good forward our issue write up including files to?

Thanks again

@liammccann

I have also realised your latest navmode.js is

  • Making entering and editing text almost perfect
  • But not allowing the user to click buttons we have defining buttons like or the

But works if we use the standard one provide with webworks sdk,

Seems to be a catch 22, your solution provides good text fields functionality but not clicking buttons and web works standard provides buttons perfect but not text field functionality.

@tneil
Owner

I've been able to make it quicker on BB7... It looks like it has to do with rounded borders on the input controls.. A quick fix for making BB7 faster is to remove the rounded border from the .bb-bb7-input class in the bbui-0.9.x.css file

Still testing on BB6

@tneil
Owner

I can't seem to make it run any faster on the 9780 with BB6. That device barely has enough horsepower to run BB6 and I believe it is seeing these types of speed delays when using trackpad navigation in a webworks app

I'll check in my BB7 speed increases for input fields with my next check-in to the "next" branch

@tneil
Owner

I'm going to close this issue for now since I've posted a speed fix for BB7 and I don't think there is much I can do to make it faster on BB6.

We can always re-open this issue if there's more found

@tneil tneil closed this
@liammccann

Tested on Os6(9780) and os7(9790,9900,9360) devices, still the same issue and that's using you next files.
Using this touch screen it works perfect if you touch an item and starting typing
but if you use the track pad to scroll up/down then starting typing still delays.

Also tried it on OS7 device without touch-screen and same issues were there... From what i understand it seems to be the file navmode.js in web-works that's causing the issues and one of your navmode files partly solved the problem but created other bugs to.

It can't be a code issue as we are using your sample code provide. Also to add it cant be unqiue to bbUI either as we are having the same issues if its just a basic html page without stlying or javascript.

thanks again

@tneil
Owner

I've added in some comments on the webworks issue you opened. The changes in bbUI help with the speed of navigating from input to input on BB7, but the inability to type is a webworks navigation mode bug

@liammccann

Thanks again for all your help, if i could direct you to read this: http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/bbUI-push-screen-weirdness/td-p/1774585

Ive found a bug in bbui-0.9.3.js and bbui-0.9.3.css

That forum posts explains most of it, but to cut it short its basicly when popping and pushing screens theres unexpected behaviour but when reverting back to 0.9.2 it works fine. Source code and screen shots are included in the forum post.

Once again thanks,

@tneil
Owner

Created a new issue to track your push/pop issue #196

I'll add comments there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.