app calls html/javascript kernel written in c / c ++

Wonder if I can use html/javascript to call core application written in c / c++.

I hope to put some entensive of calculation for the module written in c / c ++

Is this possible?

Welcome to any comment

Hello. WebWorks for BB10 extensions are on the road ahead, and for now, there is an example of how to write a native extension with a JS source that will be used to the WebWorks app. See the discussion on the extension BB10 WebWorks, I've referenced the example in there.

Tags: BlackBerry Developers

Similar Questions

  • Flash cannot call the javascript function in the local html file

    Hello!

    Us is to develop our first application on Playbook. It is an html file including a flash file and javascript code. Everything is packed in. in the file bar, a config.xml file and has been correctly loaded into the Playbook. Everything works locally (no web access)

    Everything works well except when we use an ExternalInterface.call("saveglobalscore",score) in flash that calls a javascript function in the .html file.

    In the actionscript3, we selected the "authorized local file access" and put the 'Security.allowDomain("*) '.

    Any ideas? Thank you!

    External interface tries to access the files packaged locally is currently a known issue.  I have not really of a calendar when or if this can be resolved.  It may be in the code base of flash.

  • What lines of javascript are used to disable/enable html to be written for .mucows

    What is said a little while but some widget developers use javascript to disable the html to be written. I wonder how it's done

    You can have different sections based on the value of an option. You may have a vacuum and the other is not.

    Download all the samples from the documentation page:

    MuCow Documentation

    There is a sample named "Fox.mucow" that uses different HTML depending on the value of an option.

  • Convert HTML/javascript AIR app AIR flex application?

    Hi all

    I have already built an AIR with HTML/javascript application I want to monetize.

    I would use the O2app e-Commerce Framework, which supports only this time created Flex AIR apps.

    My question: is there a simple way to "convert" an AIR of HTML/javascript app in Flex 3? I don't want to rebuild from scratch in Flex 3 application if I have to. :)

    Thank you

    Al

    Thank you very much for this information.

    Initially, I asked the question because, at the time, I thought that AIR Flex applications could be protected against copying, but it seems that they too can not be protected against copying (the exe file is created AFTER the installation).

    Thanks again,
    Al

  • Error when you try to call the Javascript function in the ActiveX Web browser

    I have a requirement to call a Javascript function in a web page that is displayed in the browser's ActiveX control.  I have the control on the front panel, and I use the Navigate method to call to the top of the appropriate page.  Based on an example, I found, I'm trying to get a reference to the HTML Document so that I can then get a reference to the Fenetreparent.  There is a method of the HTML Window object called execScript who I'm calling.  See the attached image of the code (reference close calls do not appear, but when I run it, they are there).

    I can't the node property that returns the parentWindow reference.  The error I get is the following.

    Error-2147467262 LabVIEW: (Hex 0 x 80004002) No. taken such interface supported.

    Any ideas on where to go from here?

    Hello

    I have reproduced the issue and the error you are seen and tried to understand what is the solution.

    It seems that the problem is with getting the pointer to the parentWindow.  From what I read on MSDN, it's maybe a limitation in the use of an ActiveX control in LabVIEW. It seems like Internet Explorer creates the object of the window, and so opening in one ActiveX control you free access to this top-level object.

    Here could be workaround for javascript execution in your program:

    I would like to know if it works for you and if it will work in your program.

  • WebWorks is made from a non index.html / javascript

    Hello

    I tried to create a webworks app that relies mainly on the coast server. This means that my

    points to

    Now, if I run a script on a local html javascript, I get the entire webworks library to work properly.

    If I try with my application on the side server, cordova.js works but all the blackberry.xx (blackberry.io.shared in my case) api not working and going out as undefined. Is it possible to load webwoks from a remote script?

    My access is:

    I also have permissions defined rim

    access_shared

    Thank you

    Al

    Ok.. I spent a lot of time to test the various features...

    Now, as of March 23, 2015 with Blackberry 10.3.1 it is possible to start a Download / Upload in a Web view using stunts in designing an application using Momentic.

    The design is staright before examples available on GitHub https://github.com/blackberry/BES10-Cascades/tree/master/WebView

    Most of my code is located on the side Server and the Blackberry application becomes a simple interface to access.

  • app crashing using javascript SDK 6.0 browserfield2

    Hi all!

    I have my app allmost crashed every time I call the javascript in browserfield to scroll the text in there. Sometimes this only works when javascript is called the first time.

    SDK 6.0

    device also has 6.0 sdk

    class MyBrowserFieldView extends screen implements {RenderingApplication}

    RenderingSession renderingSession;

    BrowserField browserField;

    VerticalFieldManager verticalFieldManager;

    public MyBrowserFieldView() {}

    ToolBarMenuButton.AddMenuItem (New MenuItem ("show", 100, 1)})
    public void run() {}
    browserField.executeScript ("document.body.scrollTop ='" + position + ""; "");
    }
    });

    renderingSession = RenderingSession.getNewInstance ();

    renderingSession.getRenderingOptions () .setProperty (RenderingOptions.CORE_OPTIONS_GUID,
    (RenderingOptions.JAVASCRIPT_ENABLED, true);
    renderingSession.getRenderingOptions () .setProperty (RenderingOptions.CORE_OPTIONS_GUID,
    RenderingOptions.CSS_MEDIA_TYPE, "screen");
    renderingSession.getRenderingOptions () .setProperty (RenderingOptions.CORE_OPTIONS_GUID,
    (RenderingOptions.ENABLE_CSS, true);

    browserField = new BrowserField();

    verticalFieldManager = new MyManager();

    try {}
    browserField.requestContent (HtmlFileName);
    verticalFieldManager.add (browserField);
    Add (verticalFieldManager);
    } catch (Exception ex) {}
    ex.printStackTrace ();
    }

    }

    }

    So, what can be wrong?

    Thanks for any help!

    Yes, using another thread has helped. Thanks again!

  • Call a Javascript function in a Captivate 7 Web page

    Hello

    I try to call a javascript function in a web page to Captivate 7. The call is an output of blade event. When I saw the (F4) project, I have a prompt that displays a javascript function is called and told me to display in a web page. Of course, which is perfectly logical. However, when I go to the same project in the hml with the necessary Javascript function in page, I get nothing. The script is a simple that displays an alert.

    I made sure the SWF in question is defined in the global security settings. I know that the javascript function is correctly formatted.

    Can someone please give me an example of how to "execute Javascript" call of Captivate to a function residing in the html page please.

    Any help is appreciated.

    Don't just add the SWF file to the Flash security locations overall of confidence.  Add the entire folder containing all the files published, or better still, a level that contains all your published Captivate projects so that you never have to worry about Flash security issues again.

    Also, if it still does not work, I would try the same running JavaScript with a different event than the event output slide.  It can be a little bit reliable.

  • Call a javascript function in the Value attribute of param

    Hello

    I want to put a TLF text field in the SWF file in an HTML page. So I used flashvar, by calling a javascript function to it attribute "value" as follows.

    < param name = FlashVars value = "" + SetFlashMovieParam() + "" id = "message" / > "

    SetFlashMovieParam() is a javascript like the following function.

    function SetFlashMovieParam() {}

    document.getElementById("message").setAttribute ("value", "msgText = Start");

    }

    Even if this does not work, when I put the text value directly to the 'value' attribute, it worked.

    < param name = FlashVars value = "msgText = here % 20is % 20The % 20text" id = "message" / > "

    I think it's because calling a javascript function syntax error in the param tag. Can anyone help to call this function properly...

    Thank you.

    Normally when you have an executable code embedded in the html code you should check that article accordingly.  In the case of javascript surround you with

  • setpoint before call to javascript

    Hi all

    I do not know how to implement this - any help will be great :)

    I have a report based on an sql query.
    within this report, I have a dynamic LOV.

    When the user chooses the lov 'Cancel' and push the button submit, I want a popup to appear.
    so in my process (after submit)
    I have the following code:
         elsif vRow = 'Cancel Job'
         then
              APEX_UTIL.SET_SESSION_STATE('P5_CANCELJOB', 'Y'); 
    I have my html the following header:
    <script language="JavaScript" type="text/javascript">
      function callMyPopup ()  {
        var url;
      url = 'f?p=&APP_ID.:9:&SESSION.::&DEBUG.::';
      if ($v('P5_CANCELJOB') == 'Y' ){
      w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
      if (w.opener == null)
      w.opener = self;
      w.focus();
      }
      $v('P5_CANCELJOB').value='N';
      }
    </script>
    and on my button, I have the following:
    javascript:callMyPopup();doSubmit('RELEASESTEP');
    My problem is I choose cancel job, then untap step button and this java script call then first run the process
    However, the process defines the P5_CANCELJOB element which where the popup

    don't know how to get around this problem

    any advice would help

    concerning

    Fizlar

    You got me ;-)

    I've never actually tried it myself, but possible 2 solutions:

    (1) creates a branch to the Page or URL and use ' javascript:openPopupProcedureHere();

    (2) creates a branch to the same Page and use a conditional HTML area listening on your REQUEST and a few HTML-JavaScript-code in there:

    
    

    hope that helps a little,

    Peter

  • I have an app called 'bin' it won't go away. Whenever I have 'close '. The app 'bin' should be 'force quit '.

    I have an app called 'bin' it won't go away. Whenever I have 'close '. The app 'bin' should be 'force quit '.

    I'm not aware of can't find something on an application called bin. Are you sure it's an app and not a .bin file? Search for .bin or bin and see where he is.

  • BB10 - how to launch the App World of Javascript?

    Someone has launched App World as javascript.  I tried this on alpha dev and it does not work:

    function openWebLinkInBrowser(URL) {
        // open web link in browser
        blackberry.invoke.invoke({
            target: "sys.browser",
            uri:URL
        }, onInvokeSuccess, onInvokeError);
    }
    
    function appWorld(appId)
    {
       try
       {
    
        var url = "http://appworld.blackberry.com/webstore/content/" + appId;
        openWebLinkInBrowser (url) ; 
    
       }
       catch (e) {
        showCustomToast("There was a problem launching App World", "OK");
       }
    }
    

    Here's a Cascades documentation which describes the targets invoke... https://developer.BlackBerry.com/Cascades/documentation/device_platform/invocation/blackberry_world...

    You can do it by issueing what follows is one unbound. As you can see from the documentation, you can also add in the target if you want, but the uri Protocol is the important part.

    blackberry.invoke.invoke({
        "uri": "appworld://content/12603",
        "action": "bb.action.OPEN",
        "action_type": "ALL"
    })
    

    Please replace the 12603 with the content you want to display.

  • How to get IMEI number with phonegap app by using Javascript?

    Hello

    I suffer on this the last 2 days to get the IMEI number in phonegap app by using javascript.

    I found all things related to Phonegap with Android, but I want to get the IMEI number with phonegap app by using javascript/JQuery according to requirement.

    Could you please give me the process step by step to get the IMEI number with phonegap app with javascript/JQuery?

    Thanks in advance.

    Thank you

    Jayaram

    You can use the cordova-plugin-device plugin for a UUID of the device (this api is the same on iOS, Android,...)

    This isn't exactly the same as the IMEI, but it is unique enough to identify the device, while protecting the privacy of the owner of the phone.

    If you need to get the IMEI, then google is your friend. This [1] was the first result when searching for "imei cordova.

    There's a good stack overflow article here [2] which has the disadvantage of using this value and encourage you to consider other ways to identify users, because users cannot trust your application if you ask for this info. Read the accepted answer.

    [1] GitHub - aquto/cordova-plugin-imei

    [2] http://stackoverflow.com/questions/1972381/how-to-get-the-devices-imei-esn-programmaticall y-android

  • Why make a 'met while loading HTML javascript error' when I insert a google map into indesign?

    In the past I have integrated a google map in my DPS projects very well. Now, I get this error "error while loading HTML javascript" how to solve this?

    Here's a thread on the InDesign forum where the issue has been resolved: Indesign HTML does not

  • Mix ADF Faces with HTML, JavaScript, CSS, JSTL question

    Dear all,

    The project is now starting to deploy to the production server. When we try to deploy to the production server who made a lot of mistake. As this used widely used project mix ADF faces with
    HTML/JavaScript/CSS/JSTL. I would like to know what are the most error when we have mixed to use each one and how can we overcome them there?
    There is in the project

    1 mix of tags html with ADF Faces components
    2. the use of JavaScript/CSS inline
    3. mix the JSF/ADF Faces and JSTL tags

    Help me how to address this issues as well as links to useful blog.

    JDeveloper IDE version: 11.1.1.5.0 with Webcenter
    WebLogic version: 10.3



    Best regards
    KT

    Published by: KT on May 16, 2013 21:23

    Hello

    In addition to this project widely used mixture ADF faces with HTML, JavaScript, CSS, JSTL.

    JavaScript, CSS, and JSTL is not a problem, whereas - according to the JSF version - HTML is. JSF 2 is the first version of the JSF, which allows you to mix HTML with less side effects, if you use Facelets as view declaration language.

    I would like to know what are the most error when we have mixed to use each one and how can we overcome them there?

    There is in the project

    + 1. mixture of html with ADF Faces components tags +.

    This could ruin your pages, lead to update issues and - in case of frequent use in the trees - even destroy the functionality

    + 2. online use of JavaScript / CSS +.

    Poor performance because of heavy weight pages. If you were using ADF Faces and your JS addresses the DOM instead of the architecture of client cJavaScript ADF Faces then chances are JS will fail for the components that have changed their HTML output (which has an impact on the DOM structure) or changes are not submitted to the server.

    For CSS, CSS inlineStyle not applay to the DOM element that is external, which means for example af:input the background text color will color the lavel

    + 3. mix JSTL and JSF/ADF Faces tags +.

    Dependa on how you do. JSF has postponed EL syntax, which means that EL resolves at run time, whereas JSTL resolves at compile time. So the race conditions could become a problem

    Overall, it is difficult to say if things were coded wrong in the project (although for the use of HTML you can be sure) without seeing the code. It seems that the team that built the application however did not dare to the suite of recommended practices

    Frank

Maybe you are looking for