Monitoring the progress of the web page does not work...!

Hello!

I'm putting the text of the label during the loading of the webview... But the code example in the documentation does not work...! The code example is given below.

Container {
                Label {
                    id: statusLabel
                    leftMargin: 10
                    text: "No webpage yet."
                }
                WebView {
                    id: myWebView
                    url: "http://developer.blackberry.com"
                    onLoadingChanged: {
                       console.debug("onLoadingChanged is called..........................");//printed in console
                       //below statements are not changing the text of the label.
                        if (loadRequest.status == WebView.LoadStartedStatus) {
                            statusLabel.setText("Load started.")
                        } else if (loadRequest.status == WebView.LoadSucceededStatus) {
                            statusLabel.setText("Load finished.")
                        } else if (loadRequest.status == WebView.LoadFailedStatus) {
                            statusLabel.setText("Load failed.")
                        }
                    }
                }
            }

I tried with statusLabel.text, but this one also does not work...! If anyone knows please answer me... !

-Looks

Riadh

The documentation in the https://developer.blackberry.com/cascades/reference/bb__cascades__webview.html#loadingchanged suggest that you use one of the constants badly.  See if you use, for example, WebLoadStatus.Started not work better...

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • Fiddler 2 do not trust

    Yet once again the internal tabs of firefox start page, except troubleshhot go to untrusted message even. When you go to allow the exception and look issuer cert, his www.fiddler2.com and then further on he says root of Fiddlers. There is no sign of

  • HP 4520: hp 4520 do not print in draft mode on my mac os 10.9

    Using mac OS 10.9 Maverick, my draft mode printing does not work, all the prints are full on black background instead (which is a lot of ink used).   I followed all the posts on this subject so far and none has solved the problem.  I have the latest

  • I can't scan and my says hp solution cannot run because the device is not complete

    I use windows 7 64 it. My printer is HP Photosmart all-in-One Printer - C510a eStation. I use a laptop and a wireless network. Earlier my printer wasn't working, so I reinstalled the program using the cd, but now the hp solutions don't work and I can

  • Services DHCP starts not leading ip address of 0.

    I have a DELL with XP SP3 computer.  Recently had a tour with several virus - them cleaned with Microsoft Security Essentials.  But now I can't on the internet because the IP address is 0.  I checked the DHCP services and it cannot start because the

  • Upgrade to Cisco ASA 5520 8.2.5 to 9.1.7

    Hello I have an upgrade tonight for a customer to upgrade a StandAlone ASA 5520 in version 8.2.5 in 9.1.7. I have the same upgrade week next to the same client for a failover pair. I already have this kind of process of 8.2.x upgrade to 9.1.x so I kn