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 (6) | javascript jobs

-2
votes
0answers
8 views

Detecting pointer position over image after zooming

I need the coordinates of pointer when a mouse click happens on the image and the coordinates have to be from the start of the image not from the start of zoomed frame; ![enter image description ...
0
votes
0answers
10 views

Running event handlers in AJAX loaded contents

I load this code via XMLHttpRequest in another page test.php <input type="text" onkeypress="info(event)"/> <script> function info(e) { console.log(e.keyCode); } </script> I ...
0
votes
1answer
15 views

Separate MySQL results into Divs using while loop

Just beginning PHP to bear with me. Results I'm trying to achiever: I have a table of YouTube URL's and MetaData. Trying to build this: <div class="slide"> <iframe></iframe> ...
-1
votes
0answers
9 views

xmlhttprequest status = 0 and ready state = 4 in firefox extension

Im writing a Firefox browser extension, hence the same origin policy does not apply. Still, I get status = 0 and readystate = 4 with my xmlhttprequest. var tlcalendar = new XMLHttpRequest(), ...
0
votes
0answers
18 views

jquery validation plugin passwords never match

I'm trying to check that two password input fields are identical with jQuery validation plugin, the code is as follow: <form id="myform"> <label> <strong>3.</strong> ...
0
votes
0answers
5 views

iOS: Open UIWebView with local javascript files

I would like to open a website in an UIWebView, but I wan't to load the javascript files from the app's Documents folder (because of bandwidth). Is this possible?
-1
votes
0answers
10 views

javascript IndexOf vs substring performance

I'm trying to understand the results of a jsPerf test I modified to find the best way to check the first two characters of a string. The choices were IndexOf('XX') or substring(0, 2). The test here ...
0
votes
0answers
11 views

How to use a 'checkbox' to update shipping address to same as billing

So using Orchard CMS 1.6, When the customer creates an account they are prompt for invoice address and shipping address. I would like a check box, below the invoice address, which will update the ...
1
vote
1answer
11 views

change a variable in socket.on

I am trying to do a project with node.js, but I met a problem displaying a variable. This part of the code on the client side: $(document).ready(function () { var socket = ...
0
votes
2answers
25 views

Replace div with another div when clicked

Now what I want is #youtube to show at all times, but if you click on it i want to transform it to #embed. Cant get it to work. and what I mean by that is that it dont do what i just explained. ...
-2
votes
0answers
15 views

undefined <a> links in HTML from javascript Disqus widget

Im using this JS script thats a Disqus listpopular Widget Using Pure Javascript from http://www.dforge.net/2012/11/26/wordpress-disqus-recent-comments-widget-using-pure-javascript/ /*** * ...
0
votes
1answer
17 views

href causes unintended page reload with Angularjs and Twitter Bootstrap

I am working on a project that uses Angularjs and Twitter Bootstrap. Bootstrap uses # to toggle components such as popover, modal etc. for example: <a href="#myModal" role="button" class="btn" ...
1
vote
1answer
19 views

Ajax Displaying Message

Have this amazing piece of code, it's working very well, but problem is that I always get new DIV with same message, how to I change it so it will appear in the same place? msgsrv.php file is just a ...
0
votes
0answers
20 views

jQuery ajax return data crossover confusion

I'm having the peculiar problem where two separately created $.ajax functions are used, with completely different urls, but for some reason the returned data objects seem to get merged. Both ...
0
votes
2answers
19 views

Change svg options externally

I have about 100 svg files, and for all I want to change the same thing. This is the original: <svg version="1.1" id="Laag_1" xmlns="http://www.w3.org/2000/svg" ...

1 2 3 4 5 26410
15 30 50 per page