Problems with Knockoutjs & webworks?

I have a piece I've been debugging for the whole weekend and I just can't understand what is wrong with it. As far as I can see everything is as it should be. The HTML code I have is

div class = 'networkItem' x-blackberry-Focus='true'=onmouseover "this.style.backgroundColor ='#444444 '; '=onmouseout" this.style.backgroundColor =' #010101 ";

x onUp-blackberry-=' netNavUp ($index ()) ' x-blackberry-onDown=' netNavDown ($index ()).

bind data = ' click: changeNetwork.bind ($data, no()), attr: {'id': 'nIf' + $index ()} ">".

It is part of a foreach knockoutjs model. $index () is the index number 0 -? list

the attr section creates an ID of this item to the nli0 format, nli1, nli2 etc. depends on County look.

I can inspect the HTML code that it creates in the debugger chome and IDS are set correctly. And I suppose, at this stage, which is irrelevant in any case, as I have commented little bits in the code that woud use anyway. It seems that the call to netNavUP and netNavDown are causeing the exception.

My js code is as follows:-

function netNavDown ()tmp( )

{

goID var ="";

blackberry.ui.dialog.standardAskAsync ("to:" + goID, blackberry.ui.dialog.D_OK, tmp);

tmp ++;

    if (tmp is appViewArray.network.length)

{

goID = "nliEnd";

}

on the other

{

goID = "NIF" + tmp.toString ()";

}

blackberry.focus.setFocus (goID);

}

As you can see the standardAskAync should give me some information, but never gets fired. No, I know it's asynchronous if she fell into the code. That's why I removed the call to set the focus. So indeed it would fulfil this function and return control to the html code.

The error I get in the Simulator is - App error 104 - Eception RuntimeException

I tried to lose the $index () and replace it with a number directly I can see if that was the problem, but no, I still get exactly the same error. Then there is a problem with X-blackberry-onDown? and onUp than also causes the crash. Note that I use navigation everywhere else without too much problem, but it's the only place where I "force" of a specific focal point, setting the focus is also not a problem I put emphasis in the code when it starts first, and that works. The fixed focus is commented, so it hangs a little on the call of the function as the first line of the function is an alert (of sorts)

I solved this by sending not anything to the function, but rather when I get to the function to get the item currently developed. not the best solution, but it works.

var id = blackberry.focus.getFocus ();

Tags: BlackBerry Developers

Similar Questions

  • Problem with SDK WebWorks 2.0.0.4, get a compile error...

    Well, at a time given, I had a fully functional software development kit, but it seems that he fell in some way and I hope that someone here has seen it, so I don't have to track it down.

    This started after I installed my signature on this system keys, don't know if it of related or not, but it's the only thing that has changed.

    Here's what I mean:

    C:\Program Search SDK WebWorks Motion\BlackBerry to Tablet 2.0.0.4
    \bbwp>bbwp 'c:\Projects\tbs\Hello World\HelloWorld.zip '.
    [INFO]                  Parsing of the command line options
    [INFO]                  Bbwp.properties analysis
    [INFO]                  Validation of archive WebWorks
    [INFO]                  The analysis of config.xml
    [WARNING]               Cannot find an element of
    [WARNING]               Can't find the item of
    [INFO]                  The application of filling source
    [INFO]                  Compiling applications WebWorks
    C:\Users\User\AppData\Local\Temp\widgetGen.12789641381305276725670.tmp\
    webworks\loadingScreen\Transitions.as(70): col: error 13: access undefined
    property Tweener.

    Tweener.removeTweens (loadingScreen);
    ^

    I then quite a few mistakes more is to say everywhere where Tweener Vienna of is not included...

    Tried to uninstall and ensuring that all records have disappeared, twice, without success.

    Someone at - it a good idea to place to look?

    Found my problem!  When I installed it I was pointed at the 4.5 for the AIR SDK folder, I reinstalled it with the weapon at the level of the blackberry-tablets-sdk folder - 1.0.1 and live now!

    Now, I come to cross the failure 500, unsigned bar file error during the deployment with a token of debugging...

  • BBUI.js problems with WebWorks 2.0

    Is anyone else having problems with BBUI.js & WebWorks 2.0?

    Like for example the menu tags do not seem to work. There is no evidence that when you drag to the bottom of a simulator.

    Just to doublecheck, what is the master key of the master branch or the branch WebWorks - 2.0 ?

    https://github.com/BlackBerry/BB10-WebWorks-samples/tree/WebWorks-2.0

    In addition to deviceready, have replaced webworks.js with cordova.jsloading?

    The next steps would be to connect Web Inspector and allow the application to load, and then press CTRL + r in the Web Inspector to reload the application and monitor the console to see if there are problems there.

    I take just a few assumptions here because I have not been able to produce this on my machine... my steps were:

    And I can see the interface successfully user and the application to launch.

  • Problems with the creation of chips of debugging SDK WebWorks of Blackberry10 2.0.0.71

    I had a problem with the creation of debugging tokens using the blackberry-debugtokenrequest command. It gives me an error saying that "java" is not a batch file or a program. The blackberry-debugtokenrequest batch file has the following text:

    @java - Djava.awt.headless = true-Xmx512M - cp ' % ~dp0\... \lib\EccpressoJDK15ECC.jar;%~dp0\... \lib\EccpressoAll.jar;%~dp0\... \lib\TrustpointAll.jar;%~dp0\... \lib\TrustpointJDK15.jar;%~dp0\... \lib\TrustpointProviders.jar;%~dp0\... \lib\BarPackager.jar;%~dp0\... \lib\BarSigner.jar;%~dp0\... \lib\KeyTool.jar;%~dp0\... \lib\DebugTokenRequest.jar ' net.rim.device.codesigning.debugtoken.DebugTokenRequest % *.

    I think that the culprit is the symbol @ before java, does anyone else have this problem? Is there a solution?

    What happens if at the command prompt just type "java-version" of your command prompt?

    If it does not, you must do one of two things.

    1. install Java v1.6 (32-bit only)

    2 Java is not in your PATH. (http://www.java.com/en/download/help/path.xml)

  • Problem with the signature of the CPR and RRT files

    Hello ppl! I am new to SDK WebWorks and signing tool so I need help with signing. I designed a HTML and CSS + Javascript Web site and I want to convert in application of BB via BlackBerry WebWorks packer. Applications well Gryson is fine but I have the problem with signature keys. I filled out the form for the keys, all is made well and RIM me has sent back the RBB, CPR, csi RRT files. Now, I typed in the command prompt: java-jar \client-RBB-***.csi SignatureTool [path] and he asked me to give a password for Key.I private did and then I registered it. Everything that does well also. The problem now is when I'm trying to do the same for the CPR and he wonder pine and Private Key Password.I entered them correctly and he said that I supplied a bad password. Where is the problem? I did something wrong?

    * P.S. Private Key Password is the one I typed when it was asked to create and confirm the password when I tried to register the right of csi RBB

    Thanks in advance

    Konstantino

    Hello rmasroor,

    Thanks for your reply and your interest.

    I'm fine and hope you are too. Problem no longer exists. Sorry that I didn't write to the topic, but now is fixed. The problem is that I probably forgot my password private, so I asked RIM to send me other keys. Now, I've been more careful with the procedure, and all were very good.

    Please update this topic as fixed or solved.

    Sincerely,

    Konstantinos

  • Some problems with the construction of project in Eclipse

    I use js + css3, html5 in my project for smartphone.

    And I have problem (error) with a construction project.

    ---------

    [INFO] Parsing of the command line options
    [INFO] Bbwp.properties analysis
    [INFO] Validation of archive application
    [INFO] The analysis of config.xml
    [INFO] The application of filling source
    [ERROR] Feature is not found in any extension (blackberry.bbm.platform)
    BUILD CAME OUT WITH 1 ERROR

    ---------

    What should I do to fix this error?

    Thank you!

    Thank you!

    I accidentally duplicated the subject, and the problem was solved in http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Some-problem-with-building-proje...

  • Problem with the number of files?

    Hello guys,.

    I have a problem with the compilation of some projects...

    I realize that when my project 201 records in total (including the file config.xml, Active Directory and directory ext) they do not compile.

    If I delete all the files (if the project has 200 files in total), the success of occours compilation.

    See:

    E:\BlackBerry WebWorks Plug - in Eclipse\plugins\net.rim.browser.tools.wcpc_1.5.1.201010291444-22\wcpc>bbwp.exe "C:\Documents and Settings\Softwell\Desktop\blackberryhtml5.zip".

    [INFO]                  Parsing of the command line options

    [INFO]                  Bbwp.properties analysis

    [INFO]                  Validation of archive application

    [INFO]                  The analysis of config.xml

    [INFO]                  The application of filling source

    [INFO]                  Compilation of application BlackBerry WebWorks

    java.io.IOException: cannot run program ""E:\BlackBerry"(in the"C:\DOCUME~1\Softwell\CONFIG~1\Temp\widgetGen.4723774651307629071871.tmp"directory): error = 87, Parometro incorreto CreateProcess.

    [ERROR]                 CAP exception has occurred

    Can someone help

    Hello tneil,

    Well, I found the problem and a solution.

    The thing is: my project was not limited by the size, this is the number of files (200).
    I realized that BB has released an SDK 2.0 (I used 1.5) and I tryied to compile with the 2.0 and everthing works fine!
    The problem is how bbwp.exe communicate with rapc.exe, maybe he tryies to send files by command line and it has a limit. With the new sdk, it uses a file temp with all orders. This is why it works.

    The maximum size of 7MB, I can't say anything, because my apps are about 3-4 MB. But good to know, if I can put in my documentation.

    That's all.
    CYA

  • Problem with the shortcut menu custom BB10

    Hi all

    I am currently trying to implement a context menu that is customized with my webworks app. So far I'm not creating a normal webworks / bbUI app, but I'm trying to add some features of bbUI. So to speak, I have a few different elements in my application, each of them triggers the context menu, as expected. So far so good. But now I have some problems to detect which element / div has triggered the call from context menu. How can I get this information?

    I add the context menu like this:

    var contexts = [blackberry.ui.contextmenu.CONTEXT_ALL];
    var itemRead = {
        actionId: 'actionRead',
        label: 'Read Article',
        icon:'../assets/images/new/add.png'
    };
    
    blackberry.ui.contextmenu.addItem(contexts, itemShare, function(arg1) {
        console.log("itemShare: " + arg1);
    });
    

    But as I have already described arg1 is null, and I have no idea on how to detect the appellant.

    Can someone help me, please?

    I thank very you much in advance!

    See you soon,.

    Sven

    You need the feature called custom context. This will give you that you the information on that DIV has been pressed. When you set your DIV, add a tag called:data-webworks-context

    Thus your div would look something like this:

    1
    2
    3
    blackberry.ui.contextmenu.addItem(contexts, itemShare, function(id) {
        console.log("itemShare: " + id);
    });
    

    You are passing a JSON for the CCM object and asking him to come back to you, the ID of the item that called the context menu, so you can do a job. Let me know if that helps

  • problems with, phone, 6, Bluetooth kit, Nissan, after update, for, Rios, 1.0.2

    After the update to ios 10.0.2 - trying to use bluetooth to call my vehicle, it says: "this article is not in your phone book." How can I solve this problem?

    Greetings, joybelino1!

    Thank you for joining the communities Support from Apple! I can't wait to see that you are having problems with your Bluetooth in your car! The good news is that Apple has a great article that will help you with measures to try to resolve the problem. Read this article to gethelp to connect your iPhone, iPad, or iPod touch with your car radio. Even though he talks about problems with the connection, it also has the steps for other questions you may have once connected.

    If you use Bluetooth

    1. Consult the user manual of your car stereo to get the procedure to a Bluetooth device.
    2. On your iOS device, drag up to open Control Center, then press ontwice to turn on Bluetooth and turn it back on.
    3. Restart your iOS device.
    4. On your iOS device, Cancel the twinning of your car radio. On the screen of your car désapparier your iOS device and any other device. Restart your car and your iOS device, then pair and connect again.
    5. Update your iOS device.
    6. Install the updates to the firmware of your car radio.
    7. If you still not connect, contact Apple technical support.

    Have a great day!

  • Anyone having problems with WiFi connectivity after upgrade to Sierra?

    I was wondering if anyone else knows issues with WiFi connectivity since the upgrade to Sierra 10.12? I have not had any problems with connectivity WiFi previously on El Capitan. Now I have regular randomly loose connectivity. My internet is cable and when it is connected I have a 100% connection. My details of iMac and I have used only 10% of my storage.

    No problem with my iphone 6.

    Hello AspDesigns,

    I understand that, since the upgrade to Mac OS Sierra, your Mac seems to have trouble staying connected to Wi - Fi. Fortunately the diagnosis built-in wireless can help identify the source of so much trouble.

    Search for Wi - Fi using your Mac problems

    See you soon!

  • Problems with mail after switching to macOS Sierra

    Hey all

    After having recently upgraded to macOS Sierra, I am unable to read my mail.

    I get the following error every time I check on "Get Mail".

    There may be a problem with the mail server or the network. Check the account settings "*" or try again.

    The server returned the error: Mail could not connect to the server 'pop1.tribcsp.com' using SSL on the default ports. Verify that this server supports SSL and that your account settings are correct.

    What does this error message mean and how can I solve this problem.

    Thank you

    Hi Michael,

    I see your message that you get an error in the mail indicating that there is a problem with the mail server or the network.  To help get this problem resolved, I suggest that you follow the steps below:

    If mail refers to a problem with the mail server, or the network

    Mail will say that it is impossible to connect due to a problem with the mail server or the network. For example, the message may refer to a connection that has expired, or too many simultaneous connections:

    If you are connected to the Internet, but the connection has expired, your email provider might be affected by a discontinuance of service. Contact them or see their status Web page to ensure that their e-mail service is online. Examples of status pages:

    If the message indicates the number of simultaneous connections, too many of your devices is check your e-mail account at the same time. Quit Mail on one or more of your other devices.

    If you are still unable to send or receive e-mails

    1. Make sure that you have installed latest version of the Mac software updates, especially if the problem occurred immediately after the installation of a previous update.
    2. In OS X El Capitan or later version, you can see a status icon and the short error message in the upper right of the Mail window, under the search box. The message may indicate 'Network offline' or 'Connection failed', for example. Click the message to see more details on the issue.
    3. Check your connection to the Mail connection doctor. It might be able to say more on the issue.

    If you cannot send or receive e-mail on your Mac.

    Take care.

  • iMac 27 "mid-2011 - Intermittent problem with CPU fan running at full speed and sleep mode.

    Hello!

    My iMac 27 "has an intermittent problem with the CPU fan runs at full speed. Sometimes it happens at the time when I start it, sometimes only in my session, and sometimes only after a certain time. So does seem to be a problem of "heating".

    Second issue is with the mode 'sleep'. It may occur also at any time, at the start of the iMac, session, or after a certain time. But once he starts to go in mode 'sleep', when I wake up, it goes right back in mode after a few seconds and that it will continue indefinitely until I restart the computer.

    What could be?

    Please help me!

    4ntoine

    Here is my model of iMac:

    iMac 27 "mid-2011 model 12.2

    Intel Core i7 3.4 GHz

    AMD Radeon HD 6970M 1024 MB

    OS X El Capitan 10.11.6
    SMC 1.72f2

    Boot ROM IM121.0047.B23

    reset the SMC

    Reset the management system (SCM) controller on your Mac - Apple Support

  • problem with playing the clash of clans

    I'm having some problems while playing the clash of clans on my 2 mini ipad screen does not seem to meet sometimes as if it was some sort of delay so I have to tap several times in order to use a filter or throw the troops on the battlefield.

    Hi Trinitygr,

    Thanks for posting in the Community Support from Apple! I understand that you are having problems with your iPad screen while playing a game. I like to play games on my iPad and I don't see how this could be a nuisance. I'm happy to offer assistance.

    Are you only had this problem when using the app clash of Clans, or does it happen in all applications? I recommend to start by following the steps described in this article:
    If an application you have installed unexpectedly closes, unresponsive, or does not open

    Take care!

  • I'm having problems with an outdated Apple ID

    I have problems with updating Apps etc in my Apple account because he always asked an obsolete in sign.  How can I change this?

    Hello

    Go down to itunes apple ID Delete page homepage all ID and then add it back back.

    See you soon

    Brian

  • Anyone having problems with the new iPhone LTE connection 7 on Verizon?

    I am now on my iPhone second 7 with Verizon. I had four phones for me and my family. I have now had issues where I have no signal in the same areas where my signal allows to be strong. I can't solve the problem with the activation/deactivation of the airplane and then mode again in normal mode. My phone will rest with no signal for 5 minutes, then going to LTE with three bars. I also had the problem where I had only 1 x signal, while my son standing right next to me has LTE. And he had the same questions, where I'm on LTE and it gets no signal. I use to have LTE where I live and work all the time, now it's spotty at best. Apple has replaced me and my sons iPhones but not luck. Still do. Any ideas or an any other suffering?

    (1) go to settings/cell phone/cellular data Options/enable LTE and select ONLY the DATA. This seems to solve the problem (as a temporary solution) for most of the people affected by this problem. The bad part is your request might not be as clear (since they cannot use the highest LTE signals) and you can make calls and data at the same time. But it does not solve the issue.

    (2) there are rumors (but you didn't hear that from me that we only are not supposed to discuss beta software program Apple in this forum) that the new version of Apple Beta for iOS (which also includes an update of the software carrier Verizon to 26.0) seems to solve this problem. So, there's a light at the end of the tunnel.

Maybe you are looking for

  • Since the upgrade to 10.11.4 won't open my app store.

    Since the upgrade to 10.11.4 will not load the app store my mac icon. It opens, but all I get is a spinning wheel.

  • Satellite L650D startup problem - only black screen

    Hello Experts, I have Toshiba Satellite L650D which is strange since the last few days.The problem is that it lights in general. Unlike other similar problems on the web, he won't go to the Toshiba start screen.Screen stays black! When I try first to

  • Can I change T510 customer Flexible with Smart zero OS to use thin Pro?

    Hello world I have a small batch of T510 Flexible with zero operating system Smart customers on them, I would like to know if it is possible to Flash the BONE thin Pro on these devices or not. We were given these devices by a partner organization, we

  • Wipe G4 for sale?

    I have a Power Mac G4 with two hard drives and a CD/RW - everything works fine. I'm especially a PC guy so a little confused by the modus operandum Mac... I WANT to do is erase completely safe system but leave OS X Tiger running. Y at - it a way of,

  • Scenarios

    Hi, please I need the same information because my order was cancelled by the HP store. Please when they return back my money?