Questions tagged [javascript]
JavaScript is a prototype-based scripting language
157
questions
1
vote
1
answer
132
views
Unable to upload .amr files in Ubuntu?
I'm trying to upload media files to a website I'm maintaining. The latest one to be added is .amr (test file from here) and it's causing problems, but only with Ubuntu. It works fine on Mac OS (High ...
1
vote
0
answers
143
views
I am getting an error when I am checking npm version
I am getting an error when I hit npm -v. Actually this happent after I tried a command to update my npm version from 3.5.2 to version 4 or higher. The command I used:
sudo ln -sf ~/.nvm/versions/node/...
0
votes
1
answer
4k
views
Node.js "UserLogged" function returning "undefined". Why? [closed]
When I get to the end of the code below, it always returns "undefined" and I don't know why!
function UserLogged (session) {
if (session === null) {
var err = new Error('Not logged in');
...
13
votes
1
answer
6k
views
Why do I receive an error message while trying to access some of my GNOME shell extension settings?
Some of my GNOME shell extensions don't let me configure their features because I receive an error message when I try to open them. The following image is what I see when I try to open the ...
1
vote
2
answers
841
views
pdf viewer withour javascript enabled
I'm searching for a good, simple PDF viewer without javascript support. This link says that Evince does not have javascript support but may in future.
I want a PDF viewer that has no javascript ...
0
votes
1
answer
2k
views
ng serving problem on Ubuntu 16.04
I've already installed AngularCLI with npm and then I tried serving ng serve --open in the terminal. But the terminal showed an empty screen and then nothing happened.
What can I do to serve my ...
4
votes
4
answers
11k
views
Messenger - JavaScript error in the main process
I have installed the Messenger for Desktop app on my 16.04. Everytime I launch the application I get this javascript error seing on screenshot below
However when I click OK the the app launches ...
3
votes
0
answers
2k
views
Minimal X web browser with JavaScript support
I need to use a browser via ssh -X (that is, X rendering is allowed via ssh), but the browser should be as lightweight as possible, since the connection is not very fast then I need to minimize the ...
4
votes
1
answer
7k
views
How can I get yarn to use the right version of Node?
I am new to Node, JavaScript etc. and want to try messing with the code of Signal. For this I need a specific version of Node. I did this (on Ubuntu 16.04) using the following procedure:
wget https://...
0
votes
0
answers
171
views
Temporary way to mitigate Meltdown before official fix? [duplicate]
As I understand it this vulnerability is about browser behavior, would turning off javascript be a temporary mitigation
against attack?
2
votes
1
answer
1k
views
How to compare V8 Javascript Engine version between Chrome and NodeJS in terminal?
Every time that a feature of ECMAscript specification is implemented (see link below) in V8 Javascript Engine from Google Chrome browser we are never know when will be available on NodeJS Server. I ...
1
vote
0
answers
200
views
Error: Command 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format
When I try fetch v8 or gclient sync I get this error:
Error: Command 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format -s v8/buildtools/linux64/...
0
votes
1
answer
2k
views
A JavaScript error occured in the main process while trying to run GeoGebra 6 Portable
I recently downloaded this version of GeoGebra and, after I extract the components of the zip file, everytime I try to launch it through terminal using ./GeoGebra it gives me the following error:
A ...
0
votes
1
answer
642
views
Get linux 'screen' to recognize xterm mouse-click cols > 95
I have a Web-based terminal using xterm.js and ssh2 from node.js. When I click, xterm.js sends mouse-click coords via xterm escape sequences. This works fine. When using the 'screen' cli utility, ...
0
votes
0
answers
136
views
Website inaccessible from Ubuntu command prompt but is accessible from browser
When I visit a website from the browser it exists, but when I check with the Ubuntu command line it pings but nothing else works. Nmap does nothing. Curl does nothing. The only vaguely interesting ...
5
votes
1
answer
4k
views
How to load Greasemonkey scripts directly from a Github gist or repo?
Instead having 3 versions of my browser's userscripts:
local-draft
local-Greasemonkey
Github
I want to have only 1 script instance in Github.
I need a way to import the content of the script, which ...
0
votes
2
answers
878
views
Certain websites fail to load in Chrome
I'm using Ubuntu 14.04. I'm not able to post questions on Ask Ubuntu in Chrome, apparently because of a dependency on JavaScript from another domain.
I know this isn't an issue with the website. It ...
2
votes
3
answers
30k
views
How to install AngularJS on Ubuntu
Can someone help me with a step by step guide to install AngularJS on Ubuntu.
0
votes
1
answer
2k
views
Install older version of firefox for SlimerJS
I need some help with installation of firefox older version. Also I have to make it work with SlimerJS npm module. As it says on SlimerJS website it works with versions of firefox from 38.0 to 52.0.
...
4
votes
4
answers
50k
views
How do I install ReactJS?
I'm trying to install React JS on Ubuntu, but the instructions in the tutorial are only for Windows. How can I continue?
I've checked some other tutorials on the internet and I find that no two ...
0
votes
1
answer
96
views
at nautilus, javascript file opens with "windows based script host", what is that?
what that "windows" thing is doing here?
how safe is it?
when I double click on the js file (expecting gedit), it starts some process that I cannot find with ps... so,
what executable is that thing?...
5
votes
1
answer
8k
views
How to install and configure Mozilla SpiderMonkey js engine in Ubuntu Server 16.04
How to install and configure Mozilla SpiderMonkey js engine in Ubuntu Server 16.04? I want to use SpiderMonkey to run JavaScript code in my web app.
2
votes
0
answers
109
views
Is there a way to access filesystem from a HTML5 App in Ubuntu Touch?
I'm trying to adapt a html5 app written originnally for Firefox OS to Ubuntu Touch. There are various issues, like file system access, contacts access, notifications and others. I want to know if ...
2
votes
1
answer
2k
views
How to beautify JavaScript files recursively?
I have lots of *.js files in subfolders and subsubfolders of my Node.js project which I have written recklessly, and now I'm looking for a tool that can iterate over all the files and beautify them.
...
1
vote
2
answers
1k
views
Firefox no longer recognizes that Javascript is enabled?
OS— Ubuntu 16.04 (64 bit).
Browser— Firefox 50.0.2.
When I go to this URL, all I see is an error message that says, "Your web browser must have JavaScript enabled in order for this site to display ...
1
vote
0
answers
298
views
Importing non-utf8 calendar file in Thunderbird Lightning
An online calendar file (.ics) that I am trying to import happens to be in the latin1 encoding rather than UTF-8. I added the calendar to Thunderbird's Lightning extension, but none of the events ...
-2
votes
1
answer
2k
views
Is Ubuntu good for Java development? [closed]
I am going to develop an eCommerce site using Spring, JDK, Maven, jQuery, JavaScript, servlets, JSP and HTML.
Is Ubuntu good for developing a project like this? If I face any issue related to this ...
1
vote
0
answers
636
views
Unique popup window using window.open in an iframe
I have an iFrame with a window open(url,uniqueID,windowparams).
The iFrame is located on a single page app and hosted in another server.
Everytime I refresh or change the page then return to the ...
0
votes
1
answer
2k
views
Failed to build app with Apache Cordova on ubuntu 16.04
I have a problem with Apache Cordova to build my application . I'm using Ubuntu 16.04 LTS 32-bit able to investigate the matter fy he found that there are similar issues in this release of Ubuntu , ...
1
vote
2
answers
2k
views
Does Gedit accept JavaScript?
I have a question about Gedit. I am trying to learn JavaScript.
I went to http://www.w3schools.com/js/ and tried the Date and Time example.
Date and Time example code:
Source: http://www.w3schools....
0
votes
1
answer
2k
views
install grunt in Ubuntu 16.04
I am trying to install Grunt v1.0.0 in Ubuntu using this command
sudo npm -g install grunt
or
sudo npm -g install [email protected]
in both cases, I am getting
/usr/local/bin/grunt ->/usr/local/lib/...
1
vote
2
answers
191
views
Solved: Ubuntu phone: what is the difference between a web app and a native one?
Question: Is an application written in JavaScript (A language that Ubuntu recommends) a native or a web one?
Answer: According to Ubuntu SDK, Javascript/HTML/CSS apps are considered to be Native ...
3
votes
2
answers
2k
views
Can't install node-inspector in Ubuntu 16.04
When trying to install node-inspector with:
sudo npm install -g node-inspector
I had the following problem:
node-pre-gyp ERR! Tried to download: https://node-inspector.s3.amazonaws.com/debug/v0.7.3/...
0
votes
1
answer
396
views
How do I set Netbeans as the default for .js files
I have Netbeans 8.1 installed on my computer and works well as the default for php and css files but can't set it as the default editor for javascript files.
Any ideas?
1
vote
0
answers
40
views
Skype does not sign me in on Ubuntu 14.04
When I try to sign in to Skype, I get a message about a JavaScript problem. Here is a screenshot.
I already tried re-installing Skype and deleting all lock files as well as shared.xml but the problem ...
0
votes
1
answer
129
views
Error during setup of unity-js-scopes-tool
I am going to create a Scope for Ubuntu Touch with the Ubuntu SDK.
I used this JS-Tutorial.
So I did the installation process within a fresh installation of Ubuntu 15.10 in VirtualBox with the ...
0
votes
1
answer
1k
views
Warning of "unresponsive script" in Firefox
I am getting warning in Firefox about Unresponsive Script for the last few days and all commands lock-up.
The script is said to be:
https://apis.google.com/_/scs/.colq-IFOizNwoQA/cb=gapi./loaded_0:`...
1
vote
1
answer
82
views
How to pass phone number to phone application from scope
I'd like to be able to pass a phone number to the phone application from within a preview of a scope.
Is that possible?
Is it done with action widgets?
Is there an example
of this somewhere in ...
0
votes
1
answer
189
views
Problem with Java and JavaScript
So tomorrow I'll be doing some labs for MySQL certification, and since in my country I can't get class training I had to choose Training On Demand (TOD) which is a good way to learn (You have recorded ...
1
vote
1
answer
595
views
Problem with AngularJS and jQuery libraries in Ubuntu SDK - HTML 5 App
I'm trying to explore the "Ubuntu SDK" and just to test I made a "HTML 5 App".
The app need to use angular library (such as: angular.min.js), jQuery library, and angular module for routing (angular-...
0
votes
1
answer
126
views
change thunderbird's icon while running
I'm searching a way to temporarily change the icon of an application (thunderbird in my case) while it's running. I tried a dozen of addons, but none if them did the job. Is there a way to code this?
...
1
vote
1
answer
271
views
Error executing javascrit file through nashorn jjs
I can execute jjs on bash
$ jjs
jjs>
but I can not execute script
$ ./executable.js
/usr/bin/env: jjs -scripting: No such file or directory
executable.js
#!/usr/bin/env jjs -scripting
print(
...
1
vote
0
answers
2k
views
Google Chrome "--allow-access-from-files" mode does not work
I need to run a javascript code which accesses the file system (with file:// protocol) from google chrome. I have seen it can be allowed with the so-called --allow-access-from-files option as ...
0
votes
1
answer
258
views
Java Plug-in Crashed in Firefox 28.0 on Ubuntu 14.04 LTS
I just installed Oracle Java 1.8.0_51 .And set as it as by default.I also linked libnpjp2.so file in Mozilla folder in /usr/lib/mozilla/plug-in. But when I am going to verify java its show no java ...
2
votes
2
answers
30k
views
How to find Java log file
I have installed open jdk 7 in ubuntu & I have enable java logg option in java console. But I cant find the java log file as I tried my best.I have no idea what is the actual name of this log file ...
0
votes
1
answer
200
views
Cannot detect if a MouseArea is over a GridView item
This question is not specific for the Ubuntu platform, but as I am developing an Ubuntu Touch app, I'd like to ask first here.
I have a list of UbuntuShapes arranged in a GridView - generated from a ...
1
vote
0
answers
699
views
Bad installation of Uglify (Node-based JavaScript minifier)
I want to install Uglify in order to minify JavaScript files on the command line. Some sources say to install npm and then use npm install uglify-js -g. Some sources say you can just apt-get install ...
0
votes
1
answer
78
views
Is it possible in Ubuntu app, start C++ function from javascript?
I have application using QML and C++ and want to start C++ function from javascript . Is it possible ?
0
votes
2
answers
913
views
how to remove best-deals-products.com from firefox
When i try to load any web oage (askubuntu.com for example), noscript addon blocks some scripts from a domain called best-deals-products.com
I've searched about this topic on duckduckgo and google and ...
0
votes
1
answer
732
views
What's the proper way of connecting a signal to a JavaScript method?
In an Ubuntu phone application, I need to perform some logic when an event occurs.
Since I don't want to pollute the QML with too many lines of JavaScript, I made a class in an external file and I ...