Tagged Questions
JavaScript is a dynamically-typed language commonly used for client-side scripting, but (despite the name) is NOT related to Java. Use this tag for questions regarding ECMAScript and its dialects/implementations (excluding ActionScript). If a framework or library (such as jQuery) is used, include ...
0
votes
0answers
4 views
Dynamic sound file with .play()
Code I am creating is a function which with the function it should .play() it... here is the code
function playSound() {
document.getElementById('newMessage').play();
}
var sound = ...
0
votes
0answers
4 views
Custom.js don't cooperates with Read more/Read less script
I have a problem with with this script. When I clicked "Read More" the text are growing, but in 1 second dissapear. I check and the problem is in the custom.js, but I don't now where. Below I place ...
0
votes
0answers
8 views
Display custom message when asking for facebook permissions
Is there any way to display a custom message when asking for permissions with facebook js sdk? For example if I ask for email permissions, I would like to add a message "Your email is needed in order ...
0
votes
0answers
13 views
How to move up all elements' by manipulating top value?
I have an ios lockscreen that I downloaded, that has multiple elements that display facts about the weather i.e. text, small images... anyways I want to know how to move them ALL up to the top of the ...
0
votes
0answers
5 views
How can I make a layout widget expand to full height in w2ui?
I'm trying out a relatively new JavaScript/jQuery UI library, w2ui. I've got a layout working in my LAMP application, but I am wondering how to make the layout div take the full height of the screen. ...
2
votes
4answers
29 views
Javascript change classname
I just want to change a classname to another one.
I've tried using
document.getElementsByClassName("current").setAttribute("class", "none");
but it doesn't work. I'm new at javascript.
0
votes
1answer
6 views
HighCharts - two Y-axis, one with max value
I have problem with Highcharts, I've set right Y-axis to min:0 and max:100 (it's %) but it won't work and make 125 percentage.
What's wrong?
http://jsfiddle.net/SdTcU/
$(function () {
...
0
votes
2answers
13 views
JavaScript/Node.js JSON.parse() Undefined
I am receiving the error:
undefined:1
'{"completed_in":0.078,"max_id":333655176038719488,"max_id_str":"3336551760387
^
SyntaxError: Unexpected token '
at Object.parse (native)
at ...
0
votes
1answer
22 views
Javascript appending input fields
I have this script JsFiddle and I am trying to change submitted characters, but when you press for ex: s twice as in ss instead of showing xx it changes it to ss
Full code:
<body>
...
0
votes
0answers
9 views
Display the loading progress of my resources in my canvas
I'm facing a problem with canvas. No errors is returned. I'm trying to make a loader, that load every ressources like pictures, sounds, videos, etc, before the start of application. The loader must ...
0
votes
2answers
42 views
Travel though all <img /> and replace .png with .svg
How can I, in javascript or jquery, travel through each of the <img /> tag in a page, check if it is a .png extension, replace the .png extension, if it is a .png extension, with .svg?
0
votes
0answers
23 views
set value with jquery doen't work on the ipad for me [closed]
if I do
console.log($('#title').val());
everything works fine in every browser of course. Even on the iPad in ios-safari. But if I try to set a value like
$('#title').val('some title');
...
0
votes
0answers
5 views
fb.ui returning post_id in callback but does not actually post
I'm trying to use fb.ui in order to open a dialog so my users will be able to post on their friends wall.
i'm trying the most basic sample that facebook has:
<div id='fb-root'></div>
...
0
votes
1answer
19 views
Code gets only executed once - Phonegap & Javascript
I'm writing an app that keeps track of your position while running.
The issue is that I can only start/stop the tracking only once. I have to kill the app to restore functionality.
...
0
votes
1answer
19 views
Prevent only horizontal scrolling mobile app
I'm developing an web app. On the left side is an sidebar using the Sidr-plugin (jQuery Plugin: Sidr). The test site is on my developing server. My problem is that if I'm swipe from left-to-right the ...