I've been working on a proof of concept app that leverages two-way communication between Objective C (iOS 7) and JavaScript using the WebKit JavaScriptCore framework. I was finally able to get it working as expected, but have run into a situation...
I am using JavaScriptCore library inside iOS application and I am trying to implement setTimeout function.  setTimeout(func, period)   After application is launched, the JSC engine with global context is created and two functions are added to that co...
I need to stop the execution of Javascript in a JSContext object? I found the following method which exactly what I need  @function @abstract Sets the script execution time limit. @param group The JavaScript context group that this time limit applies...
I have a UIWebView that utilizes JavaScriptCore.  I'm trying to call an ObjC function from an web page.  However, the function needs to be call asynchronously, so I'm passing in a callback function that is called when the async ObjC function...
We are developing a Cocoa app for Mac OSX (10.8) which needs to use a JavaScript library (long story why we must use JavaScript).  In a demo application everything seemed to be just fine, but while incorporating the code in our project, we can call t...
I'm developing an iOS 7 app that has scripting capabilities using JavascriptCore.  I'd like to have a way to pause or completely stop the code currently running on the JSContext. JavascriptCore isn't really well documented so I couldn'...
It's possible to use by default V8 instead of JavascriptCore when the app is not in debug mode?  I found some issues in JavascriptCore and not in V8 and is annoying switching ????   Thanks....
Given an Node.js module that does not rely on any Node.js functionality except modules (export/require) how do I access its functions from Objective-C or Swift using JS core?   Example "module":  var compute = function compute(number) {   ret...
I'm running into issues while trying to use JSManagedValue. From my understanding based on Session 615 at WWDC 2013, when you want to have a reference from Objective-C to Javascript and vice-versa, you'll need to use JSManagedValue instead of...
I execute the following javascript code in iOS using JavaScriptCore framework. The javascript code is browserified.   var myCallback = undefined;  *browserify logic* {  1: [function(require, module, exports) {       var q = require('./user');...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.