Questions tagged [universalxpconnect]

6 questions
5
votes
1 answer

The only option is to include that block of code into each of my functions?

Several of my functions require the UniversalXPConnect privilege to be enabled. netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); So, my functions look like this: function oneOfMyFunctions() { …
3
votes
1 answer

UniversalXPConnect permission error in firefox 17

I have a small web JS, that copy and inserts some form data to and from the iframe. But it doesn't work in Firefox 17. I'm using this code: "netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");" What could be wrong? Is there…
Droidik
  • 177
  • 4
  • 18
2
votes
1 answer

How to read a local file by chunks in JavaScript?

I learned how to read a local file by chunks with the help of JavaScript in Firefox ( How to read a local file by chunks in JavaScript? ). But I wonder what if I want to read a certain range of bytes, not first several, but, say, 100-200? Is it…
1
vote
1 answer

How to read a local file by chunks in JavaScript?

Say, I have a file that is 500 bytes in size on my local hard drive and I want to read first 100 bytes from it without loading the whole file into memory. How to accomplish that in JavaScript with the help of UniversalXPConnect? In Firefox only, of…
0
votes
1 answer

Opening Outlook by JavaScript in Firefox

I want to open Outlook from Javascript, it's for an internal application, nothing that will ever hit the web. The customer is using IE and Firefox and Outlook will be installed, security is not an issue. "mailto:" just isn't sufficient in this…
xor_eq
  • 3,933
  • 1
  • 29
  • 33
0
votes
1 answer

XPConnect (Firefox) - how to get value out of object

I'm trying to create a read from clipboard javascript function, and it's generally working, but I can't seem to extract the actual string from the object I create with the out parameter (Components.interfaces.nsITransferable). In case you're…
M3Mania
  • 153
  • 1
  • 7