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

learn more… | top users | synonyms

0
votes
1answer
5 views

JavaScript - AddEventListener to a function in a local scope?

I have a set of functions that need global variables, and in an effort to not pollute the global namespace, I've been trying to find a way to localize them. However, I also want to trigger them from ...
0
votes
0answers
11 views

Redirection to home page then i frame target

I am facing really technical problem for me! I am using some error variables and below iframe but when someone changes iframe the previous error keep showing on changed iframe to prevent this i have ...
0
votes
0answers
21 views

How to take Google search query and append modifers to the end of it in Greasemonkey discussion script

This is a greasemonkey question. What I'm trying to do is modify an old google discussions script. What were wanting to do is be able to take the google search query and add modifiers to the end of ...
0
votes
1answer
28 views

How do I scan Firefox on Ubuntu Linux for malicious JavaScripts?

I run Ubuntu Linux in a VirtualBox VM. I was browsing using Firefox, and I always use Adblock Plus with default configuration (EasyList) and NoScript. Then my VM lagged(mouse badly out of sync with ...
0
votes
0answers
13 views

How to run browser in background in Ubuntu

I am using Ubuntu 14.04, and PHP. I have 2 files: test.html - content java to test network update.php - the test file will post result to update database. I need to run and execute an URL address ...
0
votes
1answer
28 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
1answer
49 views

How to run Javascript code on any website?

How can I run Javascript code on a website to complete a set function or rule as per the website? For example, if I'm trying to download a file from some filehost that requires a survey... Now in ...
0
votes
0answers
2k 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 ...
1
vote
1answer
26 views

Browsing image gallery websites with two windows

Imagine an arbitrary image gallery website (i.e. deviantart.com). You get an overview of thumbnails and upon clicking these, you're usually redirected to a dedicated page showing the enlarged version ...
0
votes
1answer
25 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?
2
votes
0answers
16 views

NiceAlert (suppresses JavaScript alert) equivalent extension for Internet Explorer [closed]

I live in South Korea which is full of cheap web programmers who don't understand accessibilty or cross-platform, etc. Many major Korean web sites are built by those kind of programmers and managers. ...
0
votes
1answer
47 views

how to print a page from web browser without print window using javascript or php

I am developing an POS application for my own shop in web. Now for that in billing section have features like select the products and print bill, this process is only two steps. However when I click ...
0
votes
0answers
121 views

Hack for running multiple iMacros in random fashion

I have 20 iMacros (for browser) and they are specific to different URLs. I run these macros one after another, and then repeat or loop all of them 10 times. But within that loop, i need those 20 ...
0
votes
0answers
33 views

Is there a way to view the hierarchical structure of javascript files while debugging (F12) in Firefox?

I'm using Firefox 29, and when I open up the debugger (F12 for web console)->Debugger Tab, I get a list of sources at the bottom left of the web console, but they're not in any particular order, and ...
1
vote
0answers
75 views

Several website functions just no longer work in Firefox for me…but maybe there's a pattern?

This is really weird, because I don't recall making any large changes or messing around with about:config in Firefox. I was on FF 30 the whole time. The problems just emerged. Here's some example: ...
0
votes
0answers
38 views

CLI tools/ways for dynamically constructed DOM structure parsing HTML Javascript

I'm planning to make a tool which recognizes HTML using DOM structure in CLI. As many sites produce many DOM elements using JavaScript these days, it's becoming difficult to extract information from ...
0
votes
1answer
57 views

Error: Unterminated String Literal

First off, I am NOT a web developer; I'm not building websites; I just want to surf the internet in peace. However, today I've started receiving this error over and over again on every website I go ...
0
votes
0answers
23 views

How can I track links that are being redirected during browsing?

I'm using Chrome on Windows 7. When I'm going on to a site such as youtube.com, I'm being redirected to site that tells me YouTube is blocked. Now, I'd like to find out – during a regular browsing ...
0
votes
1answer
24 views

How to navigate PHP-based pagination with WGET?

I'm trying to come up with a list of possible names for our next baby boy and have been looking through the site IndiaParenting. Each name on the site has a detail page at a URL like this one ...
0
votes
1answer
29 views

Adobe Reader cParent parameter TypeError, “invalid argument type” but menu items display

I've written some custom scripts for Adobe Acrobat Pro (I work with a lot of PDFs for scientific research) and they run just fine on Mac and Windows. Linux only has Adobe Reader, but I still managed ...
1
vote
1answer
38 views

Save javascript image

My daughter's school is posting nice pictures of her but unfortunately it is not possible to save them as they are displayed using javascript (right click on image then "save as..." only saves the ...
1
vote
0answers
54 views

MSIE11 Developer Tools not showing requests made by EMBED element

UPDATE: I assume the cause behind this weird behavor is that some plugins (WMP, VLC, ...) in some DOCTYPEs talk to the remote server directly, therefore browser simply can not detect their requests. I ...
0
votes
0answers
24 views

Pocket extension for Chrome stopped working with JavaScript disabled per-site. Which side to blame?

I have Save to Pocket installed for Google Chrome on OS X. Recently it stopped working for sites which have JavaScript disabled (via Quick Javascript Switcher)--although it worked well before, with JS ...
-1
votes
3answers
45 views

Where do I get a JavaScript console?

I am trying to teach myself javascript, I am doing so by editing an existing programs files, but I would like to write a script, (Not HTML) and run it, and see the console results to see what's going ...
0
votes
1answer
17 views

Weird js file opens when OS starts. What is this?

There is a friend of mine who's running Windows XP. After she installed Dreamweaver CS6, everytime the OS starts, Dreamweaver opens automatically and shows this js file: http://jsfiddle.net/H6YXw Do ...
1
vote
2answers
63 views

Powershell ISE 3.0 Intellisense for other programming languages

I really love using Powershell ISE - something about it makes me want to work with it; everything just fits together well, and it is smooth. Also I love the way intelligent autocomplete is ...
0
votes
0answers
35 views

How to get larger map on ISS live stream

The Gateway to Astronaut Photography of Earth streams pictures from camera's on the International Space Station. On the right hand side there is a flash window that shows trajectory and underneath it ...
-2
votes
1answer
30 views

Typical cases where I might use exceptions in programming [closed]

Can someone please help me with something that seems simple but I've never really got my head round. Exceptions! I know how to write an exception but countless code samples with variables foo and bar ...
0
votes
0answers
14 views

What logging can I turn on / dump can I retrieve in order to report this bug in Chrome?

Once or twice a week, I run into a bug in Chrome where not only all my Chrome tabs, but even all my Chrome windows, appear frozen, due to an invisible Javascript confirmation dialog. I don't know what ...
0
votes
0answers
39 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
3answers
86 views

Inspect element in firefox like in safari?

Here is a screenshot from the d3.js tutorial webpage: This way of inspection in safari is quite cool, is there a way to do this in firefox? Let me make things clearer, I have a page with the ...
0
votes
0answers
60 views

disable tab focus from javascript in firefox

I dont want to disable the whole javascript on my browser. just tab focus detection. how can I prevent websites from detecting that if im focused in tab or just I have that tab open ?
-2
votes
1answer
4k views

pass a JavaScript variable to php via Ajax [closed]

I try to pass a JavaScript variable to php via Ajax so then I can make sql query. I call function votepick(id ) onchange event. However not working and get error Uncaught ReferenceError: $ is not ...
1
vote
1answer
535 views

How to rename the file name with timestamp of created date by JavaScript, Perl or shell on OSX?

Could you tell me how to get timestamp of created date of file and rename the file name with it by JavaScript, Perl or shell on OSX 10.9.2? Example: Existing: Untitled.txt timestamp is 2014/05/03 ...
2
votes
1answer
44 views

Why is Google Maps showing Google Search?

When we disable Javascript and visit maps.google.com, it shows the page for Google Search instead: I'm getting this behavior regardless of the browser used (Chrome/Firefox/Safari/Opera). What's ...
0
votes
1answer
34 views

login to phpmyadmin on suse 13.1 fails

' i try to login to PhpMyAdmin (on opensue 13.1 lamp) and get error: Login without a password is forbidden by configuration (see AllowNoPassword) What should i do for enter to phpMyAdmin without set ...
3
votes
1answer
53 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
70 views

Firefox shows weird code when all tabs are closed

When I close the last tab by clicking on X on Firefox, it displays a long and weird JavaScript from http://s.ytimg.com/yts/jsbin/html5player-tr_TR-vflTXVVD8.js. Is this a bug? What does that code ...
0
votes
0answers
34 views

S5 controls and formatting seem to be messed up in org-mode 8 exported presentations

The new org-mode exporter uses ox-s5.el, which still has no documentation up at the Emacs Wiki. On the other hand, there is HELP link that appears in exported org files: Unfortunately, none of ...
1
vote
1answer
37 views

Web browser | Disabling the download of arbitrary scripts

I use firefox. Is there an addon or setting to stop my browser from downloading all the scripts that are linked on a webpage? I would like to only follow links which are at domains in my whitelist. I ...
0
votes
2answers
37 views

Does Adobe Dreamweaver support Javascript?

Thinking of subscribing to Adobe Creative Cloud. Does Adobe Dreamweaver support Javascript? Any help is greatly appreciated! Thanks
2
votes
1answer
1k 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
234 views

Why is /usr/share/gnome-shell/js missing?

I'm trying to debug a gnome-shell extension, but I don't seem the have the folder /usr/share/gnome-shell/js. I'm on fedora 20 with gnome 3.12. I couldn't find it when I had gnome 3.10 either. Were the ...
0
votes
0answers
354 views

Is it possible to debug javascript on iOS Safari using the desktop Web Inspector?

First, let me say that I know all about the iOS simulator, and have no problems using the Safari Web Inspector to debug javascript using Safari and the simulator. That works fine. My issue is that ...
1
vote
1answer
73 views

Mirroring a web site having pages that uses simple JavaScript [duplicate]

There are simple and great web site download tools that allow to create a local mirror of simple sites having no JavaScript infrastructure behind. However, sometimes there cases when a site looks ...
0
votes
1answer
23 views

Remove Certain Debug Output in terminal window

I am using Putty to connect to a unix server that spits out lots of debug. What I want to do is replace the following debug for example Getting pQuality pPtrQuality=0x588b90, len *** ...
0
votes
0answers
19 views

Is it possible to view the source of a malicious pdf?

I am using osx mavericks. Avast alerted to a file that was in a hidden spotlight directory that had random-looking characters as a name with a .txt extension. It identified as a javascript trojan. I ...
0
votes
0answers
16 views

Chrome - block pages from getting info about you

I recently ran panopticlick in my Chrome and I really didn't like the result (my browser was unique between every 2 000 000 tested browsers). I saw that large part of unique bits (20.93) was made up ...
1
vote
1answer
2k 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 ...
0
votes
1answer
288 views

How to play video (mp4) fullscreen using html and javascript like youtube?

If you go to m.youtube.com from android using Chrome when you go to a video you see a preview (static image with play button overlay). As you click the image the video starts fullscreen. I wish to do ...