In a quest to have an interface capable of running arbitrary javascript code inside the browser, without having a security hole the size of a typical yo-mama joke, Esailija proposed using Web Workers. They run in a semi-sandboxed environment (no DO...
Can a WebWorker access the localStorage?  If not why not? Is it problematic from a security stand point?...
I am unable to to access jQuery inside an HTML5 web worker. Is there a way I can do that?...
Is there a way to determine the number of available CPU cores in JavaScript, so that you could adjust the number of web workers depending on that?...
How can I retrieve $_FILES in PHP when I upload through a Web Worker? When I tried to use FormData, I got the following error:     Error: FormData is not defined   This is my code:  function uploadFile(blobFile, fileName, filePart, totalChunks) {...
After reading this blog post: http://www.sitepoint.com/javascript-shared-web-workers-html5/  I don't get it. What's the difference between a Worker and a SharedWorker?...
I am using this Web worker which has a Global variable declared in it. Can I access the same (Global variable in worker 1) in the newly spawned web worker(worker 2)?   When I've tried using jQuery in web worker, I get error "window is not def...
Suppose I have a event handler which makes two AJAX calls to the server:  $("#foo").click(function(){      $.get("bar", function(){ alert("Hello"); });     $.get("baz", function(){ alert("World"); }); });   I r...
I'm trying to wrap my head around promises, and how JavaScript works with it's queue and event loop etc.  I thought that if I put a slow synchronous function inside a promise, that slow sync function would be delegated to the background and I...
I need to execute functions in "parallel" and I use parallel.js:  var p = new Parallel(items);  var fn1 = function (item) {     doSomething(item); };  p.map(fn1).then(function () {     otherFunction(); });   But IE shows the following error:...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.