I'm a bit confused with Javascript Typed Arrays.  What I have are several Float32Array s, that have no concat method. I don't know how many are them in advance, btw. I'd like to concatenate them all inside another Float32Array, but:   as...
I'm trying to figure out how to reproduce the behavior of the "border-radius" css property into an HTML canvas.   So i've already done something in Javascript in order to compute the correct borders of a given shape, using a specific...
If I have:  var test = {toString: function(){alert("evil code"); return "test";}};   how can I convert test to a string? without calling test.toString() and without using a typeof x == "string" check since I want to allow non...
I've been looking over the docs at developer.mozilla.org and the Apple dev docs but I'm not able to find documentation that explains whether or not you can programatically determine if a specific HTML tag supports a given eventListener.  Like...
I'd like to to know which interface can be used to get the visit count of each link in firefox's bookmarks and history for developing an extension  I've tried using nav-history-service to get the links for bookmarks and history but can...
I  am able to highlight the text on the HTML page(rendered through gtkmozembed), which is selected, like below.      var range, sel;     if (window.getSelection) {         sel = window.getSelection();         if (sel.getRangeAt) {           range = s...
Using a plain JS script from David Flanagan to make my bookmarklet draggable.  I have noticed that I can move the pointer off the drag bar during key-down and the pop-up may or may not follow the pointer around or suddenly snap to the pointer.  The t...
I'm currently creating a Firefox extension application to capture HTTP response and compare its response body (HTML, etc) with data. I am using observer service to capture all HTTP request and response, and implement function observe, register/un...
I haven't found any info on that. I basically need to know from a Firefox extension if the browser has javascript enabled. Is that possible?    I am totally new to programming FF extensions -- actually this is my first one and among the requireme...
I have a string such as  <html><body><div id="message">Hello World!</div></body></html>  and I would like to get the content of the #message element without parsing the HTML myself.  I thought maybe I could...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.