JavaScript is a programming language. Programming questions are off topic here; ask on Stack Overflow instead.

learn more… | top users | synonyms

0
votes
0answers
12 views

Element custom properties not being kept after loop

I have some more complex code with a strange behaviour that I've managed to reproduce here: <!DOCTYPE html> <html> <body> <div>things</div> <div>stuff</div> ...
1
vote
0answers
8 views

XML DOM node count in Javascript for Firefox vs Internet Explorer [migrated]

First the code: <tabulatory> <tab>Muzyka <dzial>Gitary <el>electric</el> <el>akustyczne</el> ...
-3
votes
1answer
22 views

I can't manage to link a javascript to a button [on hold]

I'm trying to create a extension with a lot of data processing involved but somehow I can't seem to link a basic button to do something. Also If you know any resources that will be helpful for me in ...
1
vote
1answer
33 views

Chrome stops Javascript when console is opened

I'm not sure if this is a new update, or a browser setting I changed when I was drunk, but basically when I open the Chrome Developer Console, Javascript becomes blocked on that page (And the ...
-1
votes
0answers
12 views

This site's HTML preprocessing strips whitespace within tags. What causes this? Any clues in the source code?

One of my favorite sites, luminous-landscape.com, has an issue with some of their older articles, which is probably due to the fact that they've had a variety of editors working on the code since the ...
-2
votes
0answers
9 views

Text Input in javascript after form submittion [closed]

I have a form and I know I can use onSubmit to confirm submittion but I want the user to be able to type in a text box that will be passed back to my php script on submit. I've looked around and ...
1
vote
1answer
35 views

Pathogen - only some of vim plugins work

So recently I installed Pathogen along with a few plugins like NerdTree, and Solarized and they both work really well. Today I tried to install Ruby indentation plugin ...
2
votes
2answers
122 views

JavaScript error on embedded Internet Explorer

I have a wallboard setup to display statistics in the office, however the widget that uses embedded Internet Explorer keeps coming up with a JavaScript error. The error can be closed without ...
-1
votes
0answers
5 views

Cannot change form data using getElementsByName [migrated]

I am building an ecommerce site on Wordpress to be used by multiple agents. At present, the page uses a standard PayPal link which includes the line: <input type="hidden" name="business" ...
4
votes
1answer
171 views

Disable Javascript for certain page in Chrome

:D I have one question about Google Chrome. I know there is an option under Settings to disable javascript, even I can manage on which sites I don't want it. But my problem is here :) I'd like to ...
1
vote
0answers
22 views

md5 hash a large file incrementally? [migrated]

In the browser, I read in a file using the JS FileReader().readAsBinaryString(). Using the CryptoJS library I can MD5 hash the data. This works fine but I do not know how to handle large files. E.g. ...
2
votes
0answers
12 views

javascript 32bit integer multiply simulation

I just want multiply int like 32bit integer with overflow. some article that is easy to like that with bitwise operation function add32bit( a, b ) { return (a+b)|0; } and like that. function ...
-1
votes
0answers
16 views

How I do to delete/unremember that a file was downloaded from the internet? [duplicate]

I saved a webpage with a associated JavaScript to the harddrive. Now IE wont let me run that JavaScript. Tried to set my security settings in the bottom on all zones and also set the "other settings" ...
1
vote
1answer
3k views

Access-Control-Allow-Origin '*' not allowed/working with Apache2

I'm trying to connect to hood.ie via Javascript: hoodie = new Hoodie('http://xxx.com:6001'); But then get an error: A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when ...
-3
votes
1answer
60 views

What is Javascript? [closed]

Javascript - an object-oriented computer programming language commonly used to create interactive effects within web browsers. interactive - allowing a two-way flow of information between a computer ...
1
vote
1answer
49 views

Is there any way to block javascript pop-overs in Firefox or Chrome? [duplicate]

Like the kind pointed to in this image Many sites have these, and I find them highly annoying. Often you'll be reading an article and suddenly the pop-over blanks out the page and asks "WOULDN'T YOU ...
0
votes
1answer
5k views

How to correctly use javascript:alert(document.lastModified); to check a website last update?

I read many webpages. They said that I could use javascript:alert(document.lastModified); to find the last update of a site. I test at least 10 websites. Only the website that I made gives me the ...
1
vote
1answer
26 views

javascript not working in ie 10 (win7 - 64)

I have tried so many time to enable active scripting, but I cannot seem to get ie 10 (or 11 - i backed down to 10 as a wild stab at solution) to do anything with javascript. Firefox and Chrome both ...
3
votes
0answers
55 views

Detect whether Chrome is 32 bit or 64 bit, with javascript [closed]

I have some javascript which will have different behaviour in chrome 32 bit and chrome 64 bit. When you go to the About page in chrome it has the version number, and then has "(64 bit)" afterwards if ...
8
votes
2answers
2k views

How to open stubborn javascript links in a new tab or new window?

Some websites use "creative" (javascript?) hyperlinks which break browser functionality, such as the ability to ctrl+click or middle click links to open them in a new tab. A common example, taleo HR ...
1
vote
1answer
3k views

Why doesn't Javascript work in Internet Explorer?

I'm trying to use Internet Explorer to test a website, but scripts don't seem to be running. This seems like it's an issue on a lot of pages - for example, I tried going to the Acid3 page, and it said ...
2
votes
2answers
601 views

How can I add Delicious bookmarks in IE 10 desktop?

It is clear from the Delicious tools page that there is no add-on for internet explorer and it provides a bookmarklet. I managed to get this into the favourites list by editing an existing Favourite ...
0
votes
0answers
18 views

Why would a portion of a website work outside my LAN, and not inside it? [migrated]

So we have a website at work that no one inside the work LAN can use. Our customers can use it. I can use it if my phone is on LTE. I can't use it on WiFi, through an ethernet connection at work, or ...
0
votes
0answers
14 views

Chrome specific footer issues

Currently uploaded a site template at locustheband.com.au Upon tinkering I noticed that chrome does not display any footers, but mozilla, safari and internet explorer render it properly Any ideas on ...
1
vote
0answers
16 views

How to change syntax for a specific folder in Sublime Text 3

I write JS projects in ES5 and ES6. I installed Babel-Sublime for highlighting Babel supported code. Now, I open a .js file written in ES6, goto "View -> syntax -> Open all with current extension as : ...
2
votes
1answer
2k views

In Google Chrome, how can I get rid of the big gray box that displays “The server refused the connection.”?

I got sick of blocking sites such as facebook.com and facebook.net per browser, and decided to add them to my /etc/hosts file so the sites would be blocked entirely: 0.0.0.0 facebook.com facebook.net ...
0
votes
1answer
3k views

Disable “Prevent this page from creating additional dialogs” for certain websites as a user

Firefox has long had a feature to protect users from over-aggressive Javascript websites that would generate repeated pop-ups to trick or annoy visitors. Is there a way to disable this protection on ...
1
vote
3answers
2k views

How can I automatically lock the screen when idle in CentOS?

How can I automatically lock the screen when idle in CentOS? I would like it so that a user has to re-enter their password once the machine has been idle for a period of time. If there is no option ...
0
votes
1answer
49 views

How to run this javascript offline?

I'd like to have offline the functionality of this javascript: jspretty. I know that I can get the same online, but I want it offline. How can I run the js above?
0
votes
2answers
801 views

What are some ways to use my browser, Chrome, as a JavaScript interpreter?

I use an online interpreter. It's just right up there on my favorite's bar. Very convenient for me.... I'd like to see the error messages my browser will give me rather than the messages the ...
0
votes
1answer
24 views

How to alert if an unwanted Cookie was set on my own website?

My website needs 4 different cookies. From time to time an additional cookie appears (Update: for my domain!) that is not set through my PHP code. As I do not use external javascripts as long I'm ...
1
vote
1answer
31 views

What happens to a site that is NOT in trusted sites?

Anytime that I open a web app (uses javascript ESRI code) via window.showModalDialog I get the following error: Using window.open does not cause any issues. I have played around with privacy ...
0
votes
1answer
1k views

How to reload javascript modules for Firefox extension development?

Currently, when I develop a Firefox extension that uses JavaScript Modules (JSM), then I have to disable the extension -> restart Firefox -> enable the extension -> restart Firefox in order to execute ...
0
votes
0answers
24 views

Java Application Error while code signing for signing control in firefox

While code signing for Firefox crypto control, I was prompted with below error. Its a Java Script Application. psigntoolext_signArchiveFile(): xpsigntoolext_extractArchiveFile() failed - ex : ...
1
vote
3answers
51 views

Is python server side or client side? [closed]

I am debating on using python or work with JavaScript & PHP. Basically what I am trying to do is run an algorithm against some data pulled from my database. ( the algorithm can be very demanding ...
1
vote
0answers
17 views

web developing terminology (navigation) [closed]

Okay when programming a website you come across options like to use Ajax or not to use ajax. Ajax is the ability to load the result of a resource such as PHP without reloading the page. What is the ...
0
votes
0answers
32 views

Why is Chrome downloading javascript files?

I'm using Chrome 41.0.2272.101 with Ghostery and Adblock Plus. Often, when loading webpages, it downloads some files on its own. For example, in gmail.com it downloads a file named "hovercard", or in ...
0
votes
0answers
21 views

Do modern browsers automatically remove '..' from an URL?

I'm building a barebones server in Node. I have heard about 'Directory Traversal Attacks' where a user visiting the site can navigate to files stored on the server than aren't supposed to be served by ...
3
votes
1answer
40 views

How to prevent Fingerprinting via Font Enumeration

I don't mean using Noscript or just not installing fonts, I'm trying to find a way of outright denying Flash, Java, and JavaScript the ability to look at my fonts. I've checked the fonts folder and it ...
1
vote
2answers
24 views

Concatenation in JS functions [closed]

First question here. I am doing Codecademy's JS basics course and have run into a question concerning concatenation in functions. I have: var greeting = function(name){ console.log("Hello, "+"" ...
-1
votes
1answer
41 views

Possible to get a virus from just visiting a website? [duplicate]

This has been something that has been on my mind for quite some time now. I have some experience with Javascript and know that it has a function that can store files on a user's computer. My question ...
1
vote
1answer
83 views

How can I use bookmarklets in IE11 that involve cross-site scripting?

I'm trying to use some bookmarklets that involve loading javascript from a trusted website. In particular, OpenSpritz and Squirt I have Squirt working in Chrome, but I use IE11 for the most part. ...
0
votes
0answers
7 views

Serviio and a javascript player

I'm trying to get Jplayer and the Serviio streaming service to work together. I have files of the following format: mp4, avi, mov, mpg, mpeg, wmv and needs to be played on Chrome, FF, Mobile, ...
1
vote
2answers
112 views

How to open JavaScript link in new tab

I’m stuck using a crappy website that is very dynamic and uses a lot of JavaScript, basically it has a table with many rows, each containing a link. Initially the rows are in a very poor order and I ...
1
vote
3answers
45 views

Optimizing JavaScript Files

When a JavaScript file is sent over an HTTP connection, the entire file is sent, and then the preprocessor on the clientside will deal with the rest? Therefore, would removing comments and whitespace ...
7
votes
2answers
15k views

How can I disable javascript popups/alerts in Chrome?

Sorry if it's been asked. I've already found several solutions that aren't working. Not sure what I'm doing wrong. I don't want to disable all javascript, only Javascript alert boxes. The ones that ...
1
vote
1answer
74 views

How to totally mute Firefox on OS X?

I sometimes listen to music while working/browsing, and the music is mastered with relatively low average loudness (high dynamic range), so any sound from webpage is like explosion. And there are 2 ...
0
votes
1answer
23 views

Bookmarklet to take current url as a parameter to other URL

I want to make a bookmarklet that takes a string from current URL of the browser and passes it as parameter of my specific URL and reload this new URL in browser. The string required is after "=" sign ...
10
votes
6answers
4k views

Greasemonkey script (or Firefox extension) to stop sites from disabling copy-paste?

Is there a GreaseMonkey script to disable the JavaScript-disabling of copy-paste in Firefox (3.0)? Or should I just run NoScript or some other extension on any site that attempts this (other things ...
1
vote
0answers
66 views

how to change the file download location of firefox using javascript

i need to export some files on local machine . so i need to choose some location to save files. Instead of that i need to exported file in certain location in my local machine automatically. Is it ...