Tagged Questions
2
votes
1answer
182 views
infinite-loop via prepend element in DOM
Not Looking for a Use Framework XXX Answer
This question is not intended for finding a practical solution via a framework. Answering with use framework XXX, or this is so easy in framework XXX, or ...
4
votes
4answers
2k views
Cancel infinite loop execution
When you get an infinite loop in jsfiddle in Chrome, your only choice (that I know of) is to close the tab. Of course, this means you lose all your work in the current window! Is there an easy way ...
0
votes
1answer
64 views
Incremental while loop becomes infinite
I'm trying to create a new folder with an ascending number on the end if a folder already exists, but I end up in an infinite loop
var i=1;
while (myFolder.exists == true) {
var myFolder = new ...
1
vote
5answers
3k views
How to modify Elastislide so it loops infinitely
I've been searching for an image carousel that will display several images at once, is responsive and loops infinitely.
Elastislide seems to be the most suitable ( ...
0
votes
2answers
73 views
Why does this event keep getting fired?
This script checks to see if the the form has been filled in correctly but the toggle() function keeps getting fired (at least in FireFox). In the following example "now here" keeps showing up after ...
1
vote
1answer
50 views
There is an Endless loop about forEach and map when I learning eloquentjavascript
chapter6
My english is poor can't describe the problem in detail so I paste my practice code:http://jsbin.com/exusox/3/edit
Endless loop when you click the butten.
I've tested my code,I found the ...
0
votes
1answer
141 views
Do infinite loops of JavaScript crash the browsers these days?
I am learning JavaScript and am quite new in Programming and happened to land upon these infinite loops which were said to go on forever and crash the browser, but when I created one with these codes:
...
0
votes
2answers
143 views
Backbone infinite loop when creating models
I'm doing something pretty standard, I think.
Model:
app.model.Todo = Backbone.Model.extend({
defaults: {
task: ''
, completed: 0
, attachments: []
, note: ''
...
1
vote
1answer
93 views
Javascript 'console' infinite loop
I'm experimenting with javascript programs and I hit a snag. The program suddenly lags my browser (infinite loop maybe), dunno why.
function fullscreen() {
if (document.body.requestFullScreen) ...
1
vote
1answer
64 views
I want to use a anonymous function inside an object
I have this code for a newsfeed that I want to use.
I want it to look kind of like this:
function News(){
//Load new comments every 5 sec
setTimeout((function(){
console.log(this); ...
0
votes
1answer
106 views
image arrays using JavaScript
I need help creating image arrays using JavaScript. I need to create an array of images to cycle through using their src attribute to cycle through them. Then the images need to be cycled to the next ...
3
votes
1answer
776 views
jQuery UI 1.9 Spinner Dialog Interrupting Spin Causes Infinite Loop
Problem
If you have a spinner and interrupt the spin process with a dialog box e.g. on blur from the previous field, or on focus of the spinner, when the dialog is closed the spinner continues the ...
3
votes
1answer
76 views
How to parse (infinite) nested object notation?
I am currently breaking my head about transforming this object hash:
"food": {
"healthy": {
"fruits": ['apples', 'bananas', 'oranges'],
"vegetables": ['salad', 'onions']
},
...
1
vote
6answers
100 views
why is this while loop infinite? javscript appendChild
I swear this was just working fine a few days ago...
elm = document.querySelectorAll(selector);
var frag = document.createDocumentFragment();
while (elm[0]){
frag.appendChild(elm[0]);
}
Right, ...
0
votes
1answer
184 views
jQuery addClass removeClass with timer
I have an issue with a 'Latest News' module. Please have a look at http://www.proudfootsupermarkets.com/ to see an example of the module (it's the div close to the top of the page which has a large ...