Questions tagged [javascript]
JavaScript (not to be confused with Java) is a dynamic, weakly-typed language used for client-side as well as server-side scripting. Use this tag for questions regarding ECMAScript and its various dialects/implementations (excluding ActionScript and Google-Apps-Script). Unless another tag for a framework/library is also included, a pure JavaScript answer is expected.
192
questions
2
votes
2
answers
2k
views
After loading a certain number of javascript/css files, the files are taking too long to load
I have a problem where on page load (after a certain number of .js or .css files) the files are taking way too long to load. At first I thought that the issue must be inside the .js files, but later I ...
0
votes
0
answers
373
views
HTML5 media loading sometimes suspends or aborts: misconfigured Apache?
Recently, some code that has been working fine for months started to run unexpectedly. That code is just a media files loading JavaScript function, that uses jQuery. It's pretty long, but in essence ...
0
votes
1
answer
896
views
Overriding a JS file from server from proxy
I have an Apache reverse-proxy server set up between a client machine and a server. What I want to achieve is to override a javascript file sent from the server with the one from the proxy before ...
0
votes
0
answers
491
views
How to approach SSL encryption with file uploads
I added SSL to a site I'm putting together, and it caused a huge error that I have no idea how to approach. The user logs into the site, which allows them to upload files to the server into a ...
0
votes
1
answer
712
views
Apache [negotiation:error] while opening javascript file
I have javascript file with name circle.terminals.cmd.var.js and apache return 500 error with:
[Sun Jun 15 15:00:55.194900 2014] [negotiation:error] [pid 20095] [client 127.0.0.1:50879] AH00681: ...
1
vote
0
answers
825
views
How to start pm2 without autosave logs
I start my nodejs app with pm2, all works, but it save expensive logs.
I don't know how to start without save logs, i want to save only error logs.
Thanks!
2
votes
1
answer
4k
views
Wildcard Domain with Google Analytics
Each user on our website has their own subdomain (e.g. bob.example.com, elephant.example.com) and they get paid for the traffic that they send to this subdomain. How can I wire up Google Analytics so ...
-1
votes
1
answer
169
views
Apache returning stale content of differing sizes when file changes
I'm seeing some strange cacheing behavior with (I suspect) Apache. Whenever I change this JavaScript file, what I get in the browser is simply an old version of the file truncated or expanded to match ...
-3
votes
1
answer
143
views
Replace of cron job/cron tabs-- Windows Scheduler [closed]
I want to know that there is any way to create an script on windows machine in PHP that should run after an interval, let's say every after 15 minutes.
Currently I'm doing it using javaScript, but ...
0
votes
0
answers
703
views
Internaly hosted alternative to cloudbased nobackend solution like Firebase
In an environment where I can't use a cloud based service like Firebase, I'm looking for recommendation for an internally hosted nobackend solution. I could use node or meteor but really am just ...
1
vote
1
answer
5k
views
New Relic JavaScript
I have a problem, I was logged in at New Relic, but didn't install anything. After that, my Chrome suddenly adds a weird JavaScript snippet to my localhost only, on AMPPS.
How to get rid of this, as ...
0
votes
1
answer
924
views
deploying meteor on my own domain (ubuntu)
I want to deploy my meteor app on my Ubuntu server,
I used meteor.sh and everything went successfully, But i simply can't launch my app from the browser
I'm putting my ip address and getting a 404
...
1
vote
2
answers
6k
views
Javascript 404 not found, but PHP and CSS loading
I've got a Ubuntu 10.04.4 LTS cloud server running the default LAMP stack.
My website is serving my PHP pages, the images and CSS to go with them, and most of my JS is loading, but there is a ...
0
votes
1
answer
171
views
Rogue iframe injection in my javascript
I ran my website through Sucuri
http://sitecheck.sucuri.net/results/www.fort-aspenwood.com
They came up with these rogue iframes in my minified javascript
<style>.vpqfm { position:absolute; ...
0
votes
1
answer
121
views
nginx not starting with multiple nodejs apps
i have this config in sites-enabled/default
upstream domainone.com.ar {
server 127.0.0.1:9000;
}
server {
listen 80;
server_name www.domainone.com.ar;
rewrite ^/(.*) http://domainone.com.ar/$1 ...
1
vote
2
answers
692
views
Deploying N amount of meteor apps on a single server
I'm trying to (sort of) mimic the server setup of the official Meteor deploy infrastructure (the *.meteor.com subdomain deployments).
If it's only a handful of known meteor apps, I can just run the ...
-3
votes
2
answers
4k
views
Check a list of passwords strength [closed]
Is there any way to check a list of passwords whether they strong or not?
I have a list of passwords, around 2000, and want to check them against this policy
Password must contain a minimum of ...
-1
votes
1
answer
179
views
Loading Javascript files after the page is rendered and response time [closed]
So normally javascript files are loaded using the tag.
But how can you bind the loading of scripts files(For some secondary features like searching) to the document ready event?
And is it ...
0
votes
2
answers
2k
views
Force .js files saved in ANSI encoding to show in UTF-8 on IIS 7.5
I'm migrating a web system that now works on windows server 2003 IIS 6, to IIS 7.5 on windows 2008 server This system generates javascript files with accented characters in ANSI (Portuguese - Brazil). ...
3
votes
1
answer
280
views
How to push changes from Test server to Live server? [closed]
As a beginner I have come to the stage where I realize the problem with taking down my production server to make changes as often as I have, now that I have a couple of users on it.
I created an EC2 ...
0
votes
2
answers
44
views
Downloading ASP Created Website Data
I am currently dealing with an old website where there are political issues preventing the migration of the database or re-designing the site.
Since I can't get access to the database I basically I ...
0
votes
1
answer
2k
views
Finding malicious code injected into MySQL [duplicate]
Possible Duplicate:
My server's been hacked EMERGENCY
I've got a new client whose site looks like it has been hacked. It's running Drupal and I have run Hacked on it to verify that the file ...
0
votes
1
answer
78
views
What is the standard way of providing a servery busy lockout page when server is overloaded?
We have the need to lockout users from our service when its under load to avoid degraded user experience. We have implemented a very rough and ready version of this by detecting errors or timeouts on ...
1
vote
2
answers
3k
views
Got a malware on my hosting provider which infect JavaScript files .. how do I find the entry point?
This morning some sites which are hosted on the server as me started triggering malware alerts and started to redirect traffic to external sites.
I've found out that a line of packed javascript was ...
2
votes
0
answers
643
views
Logon script does not run for all users
We have a standalone common-use workstation running Windows XP Pro SP3 and have created a script using Javascript (scriptname.js) that is to be run for each user. The file was added as a user logon ...
1
vote
1
answer
171
views
Weird entries in access logs
2-5 times per day my web server gets the same number of requests, and the same requests, but appears to have no impact on.. anything.
The requests are here http://pastebin.com/3J6FUNr9
It looks ...
2
votes
2
answers
5k
views
Cannot log in to Deluge Web UI?
I've set up deluge using this short guide: http://dev.deluge-torrent.org/wiki/UserGuide/ThinClient#WebUI
The deluge service IS running because I can navigate to my local server and see the log in box....
1
vote
3
answers
3k
views
Javascript works everywhere else, except new server
Server A: Windows Server 2008 R2, IIS 7, admin - me
Server B: Windows Server 2008 R2, IIS 7, admin - company server admin group
I have a Javascript file that works well on my local machine. The JS ...
0
votes
1
answer
850
views
Looking for a JavaScript library for displaying calendar data
I'm looking for a JavaScript calendar which can be used for displaying data in a nice calendar view. I would need to provide the calendar with a list of established events which have dates and other ...
10
votes
3
answers
17k
views
Is there any javascript ssh client?
I mean pure javascript client that uses HTML5 sockets and doesn't need to be installed, just open single js file in browser. Is it possible to write such client at all?
2
votes
1
answer
1k
views
IIS 7.5 Not Compressing Javascript: NO_MATCHING_CONTENT_TYPE
I have IIS 7.5 set to compress all static files (the default), yet it does not compress .js (javascript) files. When I turn on failed request tracing for compression, the error I get for the ...
1
vote
1
answer
4k
views
How can I build Node.js using static libssl and crypto libraries?
[Update] A solution has been found: https://github.com/robhawkes/node-extension/issues/1
I'm embedding Node within a browser extension and don't want the user to manually install openssl or even know ...
1
vote
3
answers
6k
views
Jquery/Javascript not working when accessing webpage through system IP instead of localhost
I don't face this problem while working on localhost only when I access the page using the IP address of my system this happens and it only happens with IE (works on all other browsers).
By the way I'...
21
votes
4
answers
40k
views
How do I configure Nginx proxy_pass Node.js HTTP server via UNIX socket?
I am trying to configure a Nginx server to connect to a Node.js HTTP server via a UNIX domain socket.
The Nginx configuration file:
server {
listen 80;
location / {
proxy_pass http://unix:/...
3
votes
2
answers
715
views
The Java/1.4.1_04 user agent clashes (404) with some jQuery / Javascript
Since I put up a new javascript file on my server a few days ago I've been getting strange 404's logs. It seems that some Java user-agent clashes with some part of the jQuery (1.6.2). I send an ...
1
vote
1
answer
205
views
Can a scraping bot have JavaScript enabled?
I've got a few thousand request that seem to be coming from a client with JavaScript enabled and I'm wondering if that client could be a bot.
0
votes
2
answers
147
views
Why doesn't my server render my website properly? [closed]
I want to know what could be wrong with my server?
I have uploaded the exact same website files to both a public and private server and it doesn't display the same way on both of them.
The files have ...
0
votes
1
answer
1k
views
Is there any way to insert own items in history in Javascript? [closed]
I want to add some items in history using javascript? Is there any way to do it?
Thanks in Advance !
Uday
6
votes
3
answers
7k
views
Is Node.js mature for enterprise security?
Our development team has been considering using Node.js for a new enterprise application that requires high-level security. The users include federal police, so there's a high chance that we'll ...
0
votes
1
answer
322
views
Report to Multiple Google Analytics Property IDs?
Is it possible to have Google Analytics report traffic to a given page to more than one Profile ID? If so, are there any special considerations or recommendations for doing such? I can't seem to find ...
0
votes
1
answer
364
views
Troublesome two lines of Java script in a SharePoint link?
I'm getting an IE error with these lines of code:
<a href="javascript: return false;" onmouseover="window.status='{@EncodedAbsUrl}';
return true" onmouseout="window.status=''; return true"
...
3
votes
1
answer
3k
views
CNAME to get around same-origin policy?
I'm embedding an application via iframe into a someones site and need to be able to call a few of their javascript functions. Clearly running a top.cart.add() gets blocked by the same-origin policy. ...
0
votes
1
answer
118
views
Grab js+flv video without embed option
I'm running a website for a political organization and was asked to post this article to the blog along with the embedded video: http://weareaustin.com/fulltext/?nxd_id=135746
I couldn't figure out ...
-2
votes
3
answers
851
views
Server hacked with javascript
eOHello.
I just got hacked! The hacker injected code into my website files on my server.
Server: Debian Lenny, Apache 2.2, PHP 5.2, MySQL 5
EDIT:
Apparently my question wasn't deemed good enhough ...
0
votes
3
answers
3k
views
proxy.pac file performance optimization
I reroute certain websites through a proxy with a proxy.pac file.
It basically looks like this:
if (shExpMatch(host, "www.youtube.com"))
{ return "PROXY proxy.domain.tld:8080; DIRECT" }
if (...
3
votes
3
answers
4k
views
Set MIME type of PHP generated JavaScript file
I have a dynamically created .js file by PHP. For this to work I added the following to an Apache .htaccess file:
AddHandler application/x-httpd-php .js
AddType application/javascript .js
But the ....
0
votes
3
answers
1k
views
How to pre gzip static JS
my site is running IPB 3.1.4 and I want to pre-compress my .js files. I have ssh root access and need the command to gzip the js directory and the code for htaccess.
My htaccess:
Options -Indexes
&...
0
votes
1
answer
8k
views
How to set JS source directory in apache2?
I am trying to run a very basic webserver for development/debugging. The static HTML seems to be delivered correctly, but it seems that the JavaScript libraries are not being delivered to the browser. ...
0
votes
3
answers
259
views
Using IIS7 Logs to determine how many users have JavaScript disabled?
I know that I can get OS and\or browser settings types from the IIS logs, but is there a way to also see if a user has JavaScript disabled? I am looking for a to determine how many of our users are ...
0
votes
2
answers
242
views
Any load balancers using Chrome's JavaScript engine? [closed]
F5 has TCL which is horrific to program. A10 copied.
Are there any programmable load balancers out there that are looking forward? Node.js seems to have blazed the trail and proven it works and ...