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

learn more… | top users | synonyms

0
votes
1answer
15 views

Regex for cron pattern not working

Tried to create a (simplified) regex for cron patterns for myself and came up with the following one: ^(((\d+(,\d+)*)|(\d+-\d+)|(\*(\/\d+)?))(\s+(\d+(,\d+)*)|(\d+-\d+)|(\*(\/\d+)?)){4})$ This is ...
0
votes
1answer
59 views

How to find matched parenthesis

Suppose I use Visual Studio 2010 to write jquery code, there are a lot of parenthesises. I may miss one or more parenthesises. What i sthe quick way to find or check matchness of parenthesis?
0
votes
0answers
23 views

confirm box in jQuery [migrated]

I want to create one customized confirm box in jQuery with two buttons(OK , Save) If user press OK, two javascript functions in order should be called and executed, if user press Save just one js ...
0
votes
0answers
6 views

enhancing Aptana to provide better hints about PHP errors

I use Aptana for web developement and writing PHP, Javascript, HTML, CSS and SQL codes and programs. One missing feature they really bothers my is that when you write a line of code that has a syntax ...
-1
votes
0answers
27 views

Keeping two decimal places when exporting to CSV using Javascript [on hold]

I have this function in javascript to display a number with thousand separator and two decimal places format when exported to CSV file: function toCurrencyString(num, decimals ...
2
votes
4answers
2k views

Prevent users from being able to change JavaScript variables

Is it possible somehow to prevent users from being able to change JavaScript variables, trough the address bar or with programs like FireBug?
11
votes
5answers
10k views

Command line browser with js support

Does anybody know good command line browser with js support? Ideally I need following ability: some-browser http://example.com > ~/page.html It means that cli browser download html, execute js ...
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 ...
1
vote
0answers
28 views

Chrome Debugger skip wrapper functions, until they call the real function

I am debugging in Chrome, there are some functions that are just wrappers, and I want to quickly skip them, something like this: function breakpointHere() { step1(); callWrappedFunc(); } ...
0
votes
0answers
44 views

Only the first row is accessed on the foreach loop

What I want to do is to pass using javascript the following values (refer to the value of the radio button) whenever I click on the radio button. I have this code on a blade template using laravel. ...
1
vote
1answer
2k views

Various issues with common websites and Internet Explorer

Windows 7 Home Premium SP1 64-bit | Dell Core i5 laptop, 4GB RAM Internet Explorer 10 (upgraded to 11 - problem persists) TROUBLESHOOTING: IE 10 - Advanced/Reset/Delete Personal Settings - problem ...
1
vote
1answer
18 views

Super User requires external JavaScript from another domain, which is blocked or failed to load

In one occasion I tried to refresh my super user tab, I got this following error: Super User requires external JavaScript from another domain, which is blocked or failed to load. Can somebody ...
1
vote
1answer
2k 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 ...
0
votes
0answers
223 views

What is Best-Deals-Products and is it malware?

I have found something that I suspects to be malware/addware. Script is added in every website I visit, even once I made myself. This is added in the : http://puu.sh/dgIF0/0c452eb390.png and iFrames ...
0
votes
1answer
4k 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 ...
0
votes
1answer
42 views

Preventing javascript from grabbing arrow keys

It's becoming more and more popular for websites to grab the arrow keys via JavaScript and use them for site navigation in ways that breaks scrolling with the arrow keys. Short of NoScript, is there ...
5
votes
3answers
550 views

Advertisement suddenly appearing on top of almost every page

Since this morning strange advertisement is appearing on top of many pages I open in webbrowser (see screenshot at the end). It's happening in any browser (tested FF, IE and Chrome), on any of three ...
0
votes
0answers
31 views

FireFox's NoScript equivalent for Opera Next

It's good that Opera Next has the built-in ability to disable JavaScripts for websites by default. But it's tedious to open the corresponding settings page and add an exclusion if we want to enable ...
0
votes
1answer
6k views

JavaScript injection script, how to remove?

today I started to notice a very strange behavior. At some intervals my web pages in Chrome browser changes its web address to some javascript code javascript:try{if(document.body.innerHTML){var ...
0
votes
1answer
18 views

Javascript alert box unblock on Mozilla

I have blocked Javascript alert messages on my Mozilla browser and now I want to turn them back on, but I can't figure out how. Does anyone else have this problem?
0
votes
0answers
40 views

hundred-tab friendly Mozilla w/ no continuous javascript

I often have hundreds of tabs open in many windows in Mozilla, and, after a while, it starts consuming significant amount of CPU for these dormant pages, and each new window and page takes a very long ...
0
votes
0answers
12 views

JavaScript script for searching Kindle Unlimited

I have a list of about 150 books that I want to check whether or not are on Kindle Unlimited. Ideally, I'd like to write a script to automate this for me. Is this possible using AWS (preferably the ...
-1
votes
1answer
1k views

Modifying website source code to bypass survey

Whenever you open websites like downloadsafe.org there is a pop-up that you have to fill a survey. Till the time you don't fill that survey out it keeps sending request back to a server that gives a ...
1
vote
0answers
26 views

Is there a way to 'clean out' physical memory (RAM) that is tied up on my Centos/Apache webserver?

I am developing something that requires Server-side javascript, and as such am using PhatomJS to run the JS. It uses up about a 1GB of physical memory when all is well, but if I screw up some ...
0
votes
1answer
20 views

JavaScript to detect user activity?

My question is very short. Is it somehow possible to monitor/ detect the user's activity? This does not include any direct mouse input on the website itself. I've never come across something similar ...
0
votes
0answers
20 views

Recovering corrupted java script file

I had a flashdrive that went corrupted on me and i had to resort to data recovery software to get all of my work back. All went well except this file that i NEED. recreating this file would be a ...
0
votes
0answers
96 views

Adobe Reader 11 and a JavaScript error in IE11

I get a javascript "Script Error" popup window every time when it tries to auto open this page. The page contains adobe pdf files, and the script opens the pdf automatically inside the webpage/window. ...
2
votes
3answers
5k views

How to get a simple Javascript console and output [duplicate]

Possible Duplicate: Is it possible to run JavaScript in Textmate? I'm learning javascript at Codecademy They have a website with a js console and an editor. But I can't find anything that ...
1
vote
1answer
34 views

3D visualisation and simulation in a browser? [closed]

I'm looking for framework to develop a simple 3D simulation and visualisation JavaScript app. Basically I need to set up a few parameters, and then hit start and see the particle flying in 3D. I ...
2
votes
1answer
75 views

How can I block ad.doubleclick.net javascript (which seems to be slowing my browser down)

My browser is quite slow accessing a number of sites today and they are all slowing "waiting for ad.doubleckick.net" My goal is to stop the javascript call to prevent the slowdown. (I assume most ad ...
1
vote
1answer
74 views

How to save a web app to static HTML?

I have a webapp that I want to save the HTML of to create a static version of a page I can send to someone. Obviously 'save as' won't work. Is there a way to save the currently displayed DOM as HTML, ...
1
vote
2answers
83 views

Is it possible to enable javascript for a specific URL?

There are many users who have JavaScript disabled and deny to enable it even for some business applications. Is there any way to allow a user to enable a JavaScript for a specific URL in order to use ...
5
votes
2answers
12k 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 ...
0
votes
2answers
43 views

Should I be worry after opening suspicious Email attachment?

Yesterday, I have received this following suspicious email Normally, I would not click on any of the email attachments if I am not sure about the origin of it. But yesterday, I accidentally opened ...
1
vote
1answer
194 views

What's the option to view changes in the DOM inspector in Chrome?

I think I saw that Chrome has done this before or maybe I set the settings off. In Firefox with Firebug installed, the DOM inspector will make me see what the changes happened in scripts manipulating ...
0
votes
2answers
49 views

Can JavaScript embedded in a web page access the URL parameters of the page request?

Can JavaScript embedded in a served HTML page access the page-request URL, including its parameters?
0
votes
2answers
31 views

Determine what JS files are being served up by a website

I would like to externally audit what JavaScript files / libraries are being used by a website. This is part of a compliance audit to make sure nothing is being served up / used based on what we have ...
0
votes
0answers
9 views

Error message can't find class org/net beans/Main

I've loaded net beans for Windows's but still I'm recovering this error message when I try and open a new installed program? Any one know the fix? Can't find class org/net beans/main
0
votes
0answers
17 views

How can I add a simple unordered list in Adobe Edge Animate?

Maybe I'm missing something obvious, but it appears that there's no way to add a simple <ul> element to the stage in Adobe Edge Animate. If I create a text area, the list of HTML elements that ...
11
votes
3answers
1k views

How do I prevent “Read more: www.site.com” from being injected with non-Tynt JavaScript into copy-paste actions?

There are many sites that insert something like "Read more: www.site.com" into your clipboard when you copy text in your browser. I find this abominable. A google search reveals some methods to stop ...
-1
votes
1answer
54 views

Is it possible to slow down system clock? [duplicate]

I'm playing a game that is using JavaScript to get system time, and I need the best time in the game I can get, I tried Cheat Engine but, as I said game uses JavaScript, so it is of no help to me. I ...
10
votes
3answers
1k views

How to see exception message in Google Chrome while paused?

I'm using Google Chrome for debugging JavaScript. I opened up the JavaScript Console and the "Pause on Exception" feature is enabled. Now whenever I run JavaScript that has an exception in it, it ...
14
votes
10answers
5k views

Blocking hover ads

Okay, I am done with hover ads. I am so done with it, I am starting to avoid website which implement them even though I (used to) like those websites. Obviously, it is considerably harder to block ...
0
votes
0answers
12 views

How to evaluate expressions in Eclipse EE while debugging

In chrome, when you have some javascript code, like this one: if(1 === 50) { return false; } else if(1 === 1) { return true; } You are able to highlight the expressions in the if ...
9
votes
4answers
4k views

How to hide Browser Plugin Details in firefox for more privacy?

I'm trying to trick the results in this page to have more privacy/anonymity: https://panopticlick.eff.org/index.php?action=log&js=yes So far the best I could do is change the user agent, with the ...
0
votes
0answers
28 views

Wordpress Visual Composer Plugin Needed

Wordpress Visual Composer Plugin only allows me to add to this elements to the blog posts grid: “Thumbnail”, “Title”, “Text” and “Read more link”. Is there any add-on that will allow me to add the ...
0
votes
0answers
19 views

Give Vimperator key combinations (e.g. <C-i>) priority over all site specific ones

When in an input field the key combination <C-I> opens an instance of your editor where you can then write and save so the output is sent to the input field. However, when I use this key ...
12
votes
5answers
77k views

How to download the entire webpage with css/javascript?

For learning purposes, I'd like to download the html/css/javascript of sites. Using Firefox now only seems to download the html page, images/css/js are not downloaded. Is there a plugin to do this ...
17
votes
5answers
14k views

How do I set Google Chrome to not allow javascript to hijack my right click menu

I despise web sites that hijack my right mouse button via javascript. Other browsers ( like firefox) allow me to block sites from doing this. Does chrome have such an option, or does it leave me at ...
0
votes
0answers
34 views

Disabling default browser shortcuts

I am trying to disable browser shortcuts ctrl+n, ctrl+p It works in Firefox but did doesn't work in chrome. Here is my code. // prevent default system shortcuts ctrl+n , ctrl+p ...