Writing Javascript vs C++ application logic functions

Hi guys, new on Cascades here

Example tl; Dr. waterfalls written app analysis functions of RSS in C++. The same functions can also be done in QML with Javascript itself.

My question is, how do these two functions in C++ and Javascript compare in terms of performance? It will be wiser to write the logic of the application in C++ for the best performance?

Thank you

Jonathan

Welcome on the support forums.

Code c ++ will always have the possibility of better performance.
personally, I had the experience that the logic of the qml/js implementation is possible, but more difficult to debug. It is sometimes easier to write well, so it's a business to another decision.
I usually make more sense of the application in c + c++ / Qt and the UI in QML

Tags: BlackBerry Developers

Similar Questions

  • How to prevent activation of the application switcher function the central button of the mouse

    I use a mouse third with a scroll wheel (button 3) as the central button of the mouse.  How can I prevent this activation of the application switcher function button?

    System Preferences > mouse allows you to assign actions to the buttons on the mouse. Some mice come with their own drivers/preferences.

  • JavaScript exception: error calling the function switch: TypeError: undefined is not an object (evaluation "jQuery.browser.msie") - HOW I ME get RID OF THIS

    Screen Shot 2015-12-12 at 16.54.47.pngScreen Shot 2015-12-12 at 17.01.45.png

    Hello

    I get these errors a lot lately on my sites of muse - it happens when I rename pages or change the navigation menu - I tried several times and this isn't to do with external plugins - this is a bug of muse - appears when my loading sites and also when you select a page in the navigation bar - in the past for a single page websites - I just copy the contents in memory - remove the rebonding and page - everything and it works again - of course, I don't want to do that with Web sites with multiple pages - in the past, anyone in the forum mentioned deleting a file of muse on the server to reset something - any who want to add to it or guide me to solve these problems, so I know what to do when they arrive

    Jay

    Don't know if it's the same thing, but share this discussion JavaScript exception: error calling the function of selection: [object error] after the last update of the software Adobe Muse.  I export the html files and load them on my server.  I replaced all the files.  Only happens in IE11 just in case it helps.

  • Logic function

    Hi guys,.

    I wrote a function like below:
    +----------------------
    / * Formatted on 2012/05/21 12:15 (trainer more v4.8.8) * /.
    (Busobj.pos_countrycode_lookup) CREATE or REPLACE FUNCTION
    record_locator pnr_hdr.record_locator%TYPE,
    pnr_creation_date pnr_hdr.pnr_creation_date_time%TYPE
    )
    RETURN VARCHAR2
    IS

    / Local Variable * statement * /.
    pnr_id pnr_hdr.pnr_id_pk%TYPE;
    pos_code VARCHAR2 (10 BYTE);
    record_loc pnr_hdr.record_locator%TYPE;
    org_booking_city pnr_hdr.original_booking_city%TYPE;
    org_booking_agent pnr_hdr.original_booking_agent%TYPE;
    org_booking_city_code pnr_hdr.original_booking_city_code%TYPE;
    rec_loc_iso_country_code pos_details.rec_loc_iso_country_code%TYPE;
    gds_loc_country_code pos_details.gds_location_country_iso%TYPE;
    iso_country_code pnr_hdr.iso_country_code%TYPE;
    pnr_date pnr_hdr.pnr_creation_date_time%TYPE;
    country_code pos_aaa_codes.country_code%TYPE;
    BEGIN
    record_loc: = record_locator;
    pnr_date: = pnr_creation_date;

    BEGIN
    / * Query to find the details of the NRP to what country code must find out * /.
    SELECT ph.pnr_id_pk, ph.original_booking_city,
    Ph.original_booking_agent, ph.original_booking_city_code,
    PD.rec_loc_iso_country_code, pd.gds_location_country_iso,
    Ph.iso_country_code
    IN pnr_id, org_booking_city,.
    org_booking_agent, org_booking_city_code,
    rec_loc_iso_country_code, gds_loc_country_code,
    iso_country_code
    Pnr_hdr PH, pos_details pd
    WHERE ph.record_locator = record_loc
    AND ph.pnr_creation_date_time = pnr_date
    AND ph.pnr_id_pk = pd.pnr_id_fk
    AND ph.delete_flag IS NULL
    AND ROWNUM = 1;
    END;

    Dbms_output.put_line ('step 0');

    BEGIN
    / * Query to find AAA code corrosponding to the city of Original booking * /.
    SELECT country_code
    IN country_code
    OF pos_aaa_codes
    WHERE aaa_code = org_booking_city;
    END;

    Dbms_output.put_line ('step 1");
    / * Default value set for Country Code * /.
    pos_code: = 'not found ';
    .
    .
    .
    ----------------------+

    When the query function to find AAA code returns a NULL function ends with NULL values and Step1 is not printed. When country_code is not NULL any logic function runs until step 15. I did not mention measures which are not relevant as country_code if not statements after step 1 itself are not executed and step 1 is not printed on my cmd prompt.

    Please can you guys advise the reason.

    See you soon,.
    Shaz

    Hello
    Does not include "when the query function to find AAA code returns a NULL function ends with NULL values»

    The query to find AAA may actually be causing No_data_found, and because you did not have this exception may be multiplication it to external BEGIN-END blocks. And if this produces your step 1 will run ever.

    Try something like

    BEGIN
    /*Query to find AAA code corrosponding to Original Booking City */
    SELECT country_code
    INTO country_code
    FROM pos_aaa_codes
    WHERE aaa_code = org_booking_city;
    EXCEPTION
      WHEN NO_DATA_FOUND THEN DBMS_OUTPUT.put_line ('AAA Not Found');
    END;
    

    To isolate the problem.

    Kind regards

  • Dashboard OBIEE - JavaScript - get the SQL logic

    Hi Experts,

    I have the dashboard with an OBIEE report and dashboard invites. So, whenever I change the values in the prompt lines in the report to amend accordingly. I hope that the sql logic changes also to the selection, I do on the dashboard page.

    I want to take this logical sql update. I knew that we can write the javaScript function in the municipality. JS file and then call this function in the dashboard. But I want to know how I can get the update sql logic.

    Any help or inputs would be appreciated.


    Thanks and greetings
    S

    Hi Siva,

    Sorry about that last post. I did not properly escape all my special characters and the Forum diverted.

    I have corrected the errors and again tested the code. Works fine on IE and Moilla.

    Give it another shot.

    -Joe

  • any debug console of javascript for web application debugging?

    Hi, expert,

    I asked the question before (link is: http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/any-javascript-debug-console-for...), here's the answer I got this time:

    From about 7.0, you can use the 5.0 and web Inspector, you can debug using our tools, but in 6.0, you're stuck with more traditional methods like chicoxml?' suggestion s to the try/catch statements or alert

    It is a follow-up on issues. For 5.0, it is said that I could use the tools of the RIM. Does anyone know what are the tools that they are? Somehow, I couldn't find any related link.

    I find a debugger of widget RIM, we I have to use it if my application is packaged as a widget? It seems that widget is outdated as well.

    Moreover, our web application is just a standard URL that works on all browsers and OS.

    Any help would be much appreciated. Thanks in advance.

    Hi fold.

    I believe that you must compress your site like a webworks app to use the 5.0 debugger. It would be very hard to do, but would be limited to 5.0

    I'm sure that Weinre supports debugging on a real device.

  • Scroll of blackBerry Smartphones open all applications and functions

    Strange. All of a sudden, when I scroll, applications open as if I were pressing the scroll ball. Calendar, emails, websites, applications open immediately. If it's an email, the response feature opens immediately.

    If I try to delete messages, I can't access delete fast enough as the Blackberry goes to function as soon as the screen functions.

    I did a soft reset, I took the battery and card, without change. Any advice? There seems to be related software, but I have never met such a problem in 9 years, I've used blackberries.

    want to maybe look at the sticky thread at the top while removing your trackball and clean. You might have a piece of land inthere by pressing the sensor under the ball whenever you ride

  • JavaScript exception: error calling the function switch: TypeError: one is not defined

    Hello

    I received the following message: exception of JavaScript: error component the function switch: TypeError: one is not defined in the works of Firefox (Firefox only) IE and Chrome.

    I test a lot of things to ignore the error, but nothing work...

    DS why does not work which:

    1. <script type=' text/javascript '>
    2. ( function blockError()( ) { }
    3. return true ;
    4. }
    5. window. OnError = blockError
    6. < /script >


    the problem is not a problem of accommodation or other things, the problem is with prallax effect iframes, I know. (I had no sensible design)


    and I don't know if I had this problem before upgrading "responive muse..."


    Question: Chrome and IE maybe a car "ignore the function" to find errors javascrpit?


    So how can I delete this failure message ;)?

    A better approach would be to look for invalid code on the page. What is the URL? Each browser is a little different about how he reacts to different cases of invalid HTML. The error that you touch is a common result of having the incorrect HTML code inserted into your page via thearticle in the Page Properties or object > insert HTML code (or in rare cases, a third party widget).

  • JavaScript and Extendedscript - newbie help functions

    I'm new to Photoshop scripting world and beginning by a basic script to collect the folder names and then remove the access path. When I use the code below ESTK throws an error that laboratories [i] .substring is not a function. I know this isn't... but this is valid javascript. Need an explanation please.

    Thank you

    #target photoshop

    Tab sizes

    Drop Lab

    var labSets = file ('~ / Desktop/model Hub /');

    var labSets = labSets.getFiles ();

    Create a table containing the names of file names lab

    laboratories of var = labSets;

    for (i = 0; i < labs.length; i ++) {}

    v var = labs[i].substring(labs[i].lastIndexOf("/")+1);

    }

    Labs [i] is an object file or folder. The strings have a substring method. You can convert the file/folder to a string, but I think it's best if you use a file/folder porperty. Something like that...

    #target photoshop
    
    //Sizes Tab
    
    //Lab Drop-down menu
    
    var labSets = Folder('~/Desktop/Template Hub/');
    
    var labSets = labSets.getFiles();// this get all file and folders
    
    //Create Array containing Lab names from folder names
    var labs = [];
    
    for (i=0; i		   
  • Launch the javascript from a plugin C++ function

    Hello

    I managed to run a javascript from my c code file ++ but I want to go directly to a specific function.

    I used IScriptUtils to get a result Oracle

    WideString scriptPath ("/ path/myscript.jsx ');

    ScriptFile (scriptPath) IdFichier ;

    InterfacePtr<IScriptRunner> scriptRunner (Utils<IScriptUtils> ()->QueryScriptRunner(scriptFile));

    if (scriptRunner)

    {

    ScriptRecordData arguments;

    ScriptID aID;

    ScriptData script (scriptFile);

    ScriptData resultData;

    PMString errorString;

    result = Utils<IScriptUtils> ()->DispatchScriptRunner(scriptRunner, script, arguments, errorString, resultDatakFalse);

    ...

    ScriptData:ScriptDataType aType = resultData. GetType();

    }

    I would like to know if someone has managed to launch a function javascript with arguments and a result.

    Kind regards

    David

    Simple solution: create another script that simply work calls for the second.

  • Writing bug when you use the function to import .txt (Acrobat Pro DC)

    I'm trying to redact large sections of a document using the function import .txt to select phrases or expressions. It works great, except if there is - or '. In this case, Acrobat bad reads the text file, per the screenshot below. If I copy the sentence from the PDF file and add it in the same manual, it seems in good condition. If I paste the Clipboard even in a txt and then import the text, he result is bad reading and so cannot find the phrase in the document.

    Screen Shot 2016-04-17 at 9.42.45 PM.jpg

    It seems that the TXT file was done in Word and saved in Unicode format. and used quotation marks. Quotes in general are a big problem as three different characters are used for them and corresponding can be difficult; and 4 hyphen/as of the characters.

  • Signed safe application cannot function of file://

    I recently started my secure code signing applets, and I am very satisfied with the way this is handled on hosted sites. However, it seems now that the applet is dead when included in a page which involves important use case file://.The is of people who go to conferences where there are no internet and applications that are specifically on the field and application may require internet access. All internet access (file://)-is blocked to signed applets of trust? Is this a bug? What is expected? Did I miss a memo?

    I solved my problem. Supreme with baftos - Re: InvocationTargetException executing signed applet locally with 7u45

  • Logic function triggered by entering the framework returned error #1009

    I have five boxes to click on a screen (buttons with an area of key but no picture).  If a user clicks on a box for the first time, a graphic tick appears and a variable is set to True.  If the user clicks on the box again once the tick disappears and the variable is set to false.

    When the user clicks the next button the next slide will vary according to which the variables are set to True.

    That's all works fine, but if I go forward and then back to my frame, the ticks disappear.  I tried to create a new function to run as soon as I returned to the image, check if the variables are set to True or False and show appropriate ticks.  It works and there is no error when I run at the beginning of the film.  But when I click on the next button to leave the framework (framework 5) I get a lot of messages like this:

    TypeError: Error #1009: cannot access a property or method of a null object reference.
    [file name]: [(MainTimeline/ticksInBoxes)
    [filename]. MainTimeline::frame5:20]

    Here is the corresponding code on picture 5:

    addEventListener (Event.ENTER_FRAME, ticksInBoxes);

    btnNextS1Start.addEventListener (MouseEvent.CLICK, S1NavForward);

    functionticksInBoxes(event:Event):void

    {

    If (newtopic == false) {}

    box1Tick.visible = false;
    the row above this point is part 5, line 20, mentioned by the output message

    } else {}

    box1Tick.Visible = true;

    }

    If (NCO == false) {}

    box2Tick.visible = false;

    } else {}

    box2Tick.Visible = true;

    }

    If (change == false) {}

    box3Tick.visible = false;

    } else {}

    box3Tick.Visible = true;

    }

    If (recycling == false) {}

    box4Tick.visible = false;

    } else {}

    box4Tick.Visible = true;

    }

    If (badprac == false) {}

    box5Tick.visible = false;

    } else {}

    box5Tick.Visible = true;

    }

    }

    functionTopNew(event:MouseEvent):void

    {

    If (newtopic == false) {}

    newtopic = true;

    box1Tick.Visible = true;

    } else {}

    box1Tick.visible = false;

    }

    }

    functionTopNC(event:MouseEvent):void

    {

    If (NCO == false) {}

    eyeing = true;

    box2Tick.Visible = true;

    } else {}

    eyeing = false;

    box2Tick.visible = false;

    }

    }

    functionTopCha(event:MouseEvent):void

    {

    If (change == false) {}

    changes = true;

    box3Tick.Visible = true;

    } else {}

    changes = false;

    box3Tick.visible = false;

    }

    }

    functionTopRef(event:MouseEvent):void

    {

    If (recycling == false) {}

    recycling = true;

    box4Tick.Visible = true;

    } else {}

    recycling = false;

    box4Tick.visible = false;

    }

    }

    functionTopBad(event:MouseEvent):void

    {

    If (badprac == false) {}

    badprac = true;

    box5Tick.Visible = true;

    } else {}

    badprac = false;

    box5Tick.visible = false;

    }

    }

    function S1NavForward(event:MouseEvent):void

    {

    If (newtopic == true) {}

    gotoAndStop (6);

    } ElseIf (NCO == true) {}

    gotoAndStop (7);

    } Else if (change == true) {}

    gotoAndStop (8);

    } ElseIf (recycling == true) {}

    gotoAndStop (9);

    } Else if (badprac == true) {}

    gotoAndStop (10);

    } else {}

    trace ("nothing is selected");

    }

    }

    And here is the code on picture 6:

    btnNextNew.addEventListener (MouseEvent.CLICK, S1NavFromNew);

    btnPrevNew.addEventListener (MouseEvent.CLICK, S1NavBackFromNew);

    function S1NavFromNew(event:MouseEvent):void

    {

    If (NCO == true) {}

    gotoAndStop (7);

    } Else if (change == true) {}

    gotoAndStop (8);

    } ElseIf (recycling == true) {}

    gotoAndStop (9);

    } Else if (badprac == true) {}

    gotoAndStop (10);

    } else {}

    gotoAndStop (11);

    }

    }

    function S1NavBackFromNew(event:MouseEvent):void

    {

    gotoAndStop (5);

    }

    I worked there.

    I looked at http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/Event.html #ENTER_FRAME , who said that "this event has a"capture phase"nor a"bubble phase", which means that event listeners must be added directly to all targets potential, if the target is on the display list or not.

    So what I did is to change the event listener to say "box1Tick.addEventListener (Event.ENTER_FRAME, ticksInBoxes);".  Add this reference to one of the boxes used in the service was enough to get rid of the error message, even if the way in which the function ran did not this specific box visible.

    Huzzah!

  • application of function

    Im hoping someone can help me with this button / function question.
    I am VERY new to actionscript 3 and on a crash course to pick up.
    Well, I've crashed, so I need some asstance.

    Description: I have 4 directional buttons. When you MOUSE_DOWN a button, it should pan the image in the specified direction. The error I get is "1067: Implicit coercion of a value of type void to a type unrelated to function." Im trying to pass a string to the function navigate to the onFrameMove function

    Final goal: a mouse a movieclip to the bottom of pan.

    Here is the code:

    panUp_mc.addEventListener (MouseEvent.MOUSE_DOWN, navigate);
    panDown_mc.addEventListener (MouseEvent.MOUSE_DOWN, navigate);
    panRight_mc.addEventListener (MouseEvent.MOUSE_DOWN, navigate);
    panLeft_mc.addEventListener (MouseEvent.MOUSE_DOWN, navigate);


    function navigate(event:MouseEvent):void {}
    If (event.target == panUp_mc) {}
    addEventListener (Event.ENTER_FRAME, onFrameMove("UP",2));
    } Else if (event.target == panDown_mc) {}
    addEventListener (Event.ENTER_FRAME, onFrameMove("DOWN",2));
    } Else if (event.target == panRight_mc) {}
    addEventListener (Event.ENTER_FRAME, onFrameMove("RIGHT",2));
    } else {}
    addEventListener (Event.ENTER_FRAME, onFrameMove("LEFT",2));
    }
    }


    function onFrameMove(d:String,s:Number):void {}
    If (d == 'UP') {}
    s = siteMap_mc.y;
    } Else if (d == 'DOWN') {}
    siteMap_mc.y += s;
    } Else if (d == 'LEFT') {}
    siteMap_mc.x += s;
    } Else if (d == 'RIGHT') {}
    s = siteMap_mc.x;
    }
    }



    Thanks for any consideration,

    Robert Good.
    Text

    You must specify the object you want to add your listeners inside naviage().

  • Javascript between process application

    Hi all

    I created a button by choosing "Create a button is displayed among the elements of this region" and called as 'Send Email'.
    I've created a submit to the process that links to this button. How can I first ask a confirmation the user javascript message and then run this process in accordance with the answer (Y or N). Can anyone help me in this matter.


    Kind regards
    Neha

    Neha:

    Rather than use the 'Elements of the region' type of button, you can set a button HTML to occur just after the element in the area where you currently have the APEX set button instead.
    Add the following code to the "Post Text element" of the item after which you want the button to show

     
    

    And to add the JS as suggested by brand.

    CITY

    Published by: city has 24 Sep, 2009 05:15

Maybe you are looking for

  • Why the icon of the app just bought don't appear in my dock? How to make that happen?

    I just buy an app from the Mac Store. Why the application icon does not appear on my Mac? I have to go back to the store, and then click open to open on my Mac.

  • Downgrade from Windows 8?

    I bought a Windows 7 disc and updated my XP computer. This computer is no longer usable. If I buy a computer of Windows 8, can I use my Windows 7 disc for the downgrade?

  • eror ox80070424

    Since the installation of msn essentials I can not star windows update or down load it "

  • Access to the LDAP VPN ASA group

    Hello, I have configured the access remote vpn on asa with ldap authentication. But I can't limit access vpn with specific ldap group. Here is my config: AAA-server AZPBTDC01 (DC_Internal) host 192.168.10.250LDAP-base-dn dc = company, dc = comLDAP-sc

  • I can't rip music cd in windows media player?

    Original title: I can't rip music CDs in windows media center? I've been ripping discs a few weeks when I had windows media player.  This seems to have disappeared, and the entire screen is different. I read articles watched youtube videos and can no