JavaScript is a dynamically-typed language commonly used for client-side scripting. Use this tag for questions regarding ECMAScript and its dialects/implementations (excluding ActionScript). Unless a tag for a framework/library is also included, a pure JavaScript answer is expected.

learn more… | top users | synonyms (5) | javascript jobs

0
votes
0answers
2 views

javascript showing up as text on my HTML page

Greetings all: Here is my simple code, Why is my javascript showing up as text on my page? any help would greatly appreciated, also any tips would be appreciated. thank you in advance <html> ...
0
votes
1answer
47 views

Javascript lastIndexOf not working

I am trying to remove fakepath from a URL using lastindexof function in pure javascript But no output is being shown the following is my JS code :- function myFunction() { var ...
0
votes
1answer
14 views

Using Multiple setIntervals?

I'm trying to use two (or more) setIntervals that bounces back and forth turning on/off the 2 functions. I also tried clearInterval() but I'm getting same or no results. Please help, I've been trying ...
-1
votes
0answers
14 views

Is it possible to obtain elapsed time of playing media when it's called from the other website using iframe?

When it's showing video with HTML5's video tag, it can obtain elapsed time. For that, I coded just like this. <video id="video" controls="controls" autoplay="autoplay" name="media"> ...
0
votes
0answers
22 views

Click on link , Show in iframe in new tab

I've created two pages. first contains some links and second contains an <iframe> tag. I'd like when i click on a link at first page ,second page opens and link content be shown at ...
0
votes
0answers
12 views

iPad javascript error

I have a small chunk of code that crashes my iPad. It works fine in every other browser I test it on (Chrome, Firefox, Internet Explorer 7+). But if fails on my iPad. var isiPad = ...
0
votes
0answers
26 views

Making histogram of frequency of words

So I have successfully created a histogram of frequencies of numbers. I'd like to do the same with words. bins = [1,1,1,2,3,4,4,4,4,5,5,6,6,6,2,2,3,3,1,23,54,6,6,7,6,5,4] @svg = d3 ...
0
votes
0answers
12 views

'load' and 'DOMContentLoaded' events don't fire in OPERA on simple pages

I wrote an extension for Opera which executes when pages are loaded on DOMContentLoaded event. It works fine, but not with the most simple pages. With the following page in Opera 11.50 neither ...
-1
votes
0answers
17 views

MongoDB security, what am I missing?

If you wanted to push something live with Node JS, Mongo DB & Express does this suffice as a secure way to connect to the Mongo DB? Can someone explain this code from a security perspective? ...
0
votes
0answers
7 views

Alternative to XMLHttpRequest() o DOMParser.parseFromString to make a DOMobject from an external website?

I am developing an extension which needs to take the HTML of an external website and looks for all the downloadable links. The code I have written works... but only sometimes, because during the parse ...
1
vote
1answer
35 views

Javascript library to gracefully downgrade custom elements in HTML at runtime

I would like to say <html> <body> <mytag foo="bar">blah</mytag> </body> </html> And define somewhere else how a <mytag> should behave. But for older ...
2
votes
4answers
38 views

JQuery Click - activate parent

<div class="myShips" id="161"> <img src="img/ships/red/sc.png" id="Ship161" style="-webkit-transform: rotate(45deg);"> <div class="hpBarRed"><div ...
0
votes
0answers
11 views

Determine google account changed using Javascript

I have a javascript application that needs to know when a user has logged out of or changed the Google Account. Ideally, I would like this to work without having to resort to using the Google API. ...
0
votes
1answer
49 views

Default function return in javascript object

I've been trying to achieve something in javascript and have been unsuccessful. Take a look at the following object app.Behaviors.pageColor = { color: 'red', height: '200px', width: "200px", init: ...
0
votes
0answers
8 views

Foundation.js dropdown menu in Ember.js

I'm trying to use the Foundation framework in an Ember app. The problem I'm having is with the navbar dropdown menu. When placing the Foundation layout in the handlebars template, the navbar no longer ...

1 2 3 4 5 27863
15 30 50 per page