1
vote
2answers
58 views

Javascript: I need to have an If statement that has a conditional variable (For loop inside If Statement?)

I have an array with two dimensions which I'm looping through to create a table. Example: Let's say I have array[y][x]. array[0][x] will populate the header column, array[ 1 ][x] will create the ...
0
votes
3answers
45 views

Return Javascript value inside Html from another JS

I need ur help i know this is a silly question but am not able to solve it ...sorrry :( I have one javascript file welcome.js in that i have function alert() { return 10; } I ...
1
vote
1answer
25 views

how to use postMessage to communicate from nested iFrames to the root document?

I'm developing a plugin which has to manage fairly complex pages with nested iframes like this: page.html <body> <iframe A> <iframe B> <div bla></div> ...
1
vote
1answer
66 views

Tree structure in BackboneJS: How to render them with Views

I have a simple Backbone app that handles hierarchical items. The model (so far) is simple, it's supposed to contain only three attributes besides the ID: content, order, and parent_id. This last one ...
0
votes
0answers
29 views

convert Array of paths/directories to flare.json-like json

I have an array of nested Directories with there sizes. I need to get them into a json-structure like this to display a 3d.js sunburst-chart. [Or any Object, Nested Array i can work with] My approach ...
0
votes
1answer
76 views

iMacros javascript nested loops in firefox

I have 2 macros I need to run in Firefox. They both run perfectly as iim's but I need to get them to run together Macro1: It reads a text file with a number of links on it, loads the link, and moves ...
5
votes
2answers
1k views

Check what element the cursor is on upon mouseleave() with jQuery?

I have a set of list elements (<li> within a <ul>) laid out as bubbles on a chart like this, where the bubbles are the <li> elements: http://i.stack.imgur.com/PR7vR.png I want to ...
2
votes
1answer
24 views

Accessing possibly nested properties in javascript? [duplicate]

var foo = function(o) {... Parameter o may be null, or it may or may not contain certain nested objects. I want to find the value of o.foo.bar.baz.chomp.mumble. If any of mumble or its containing ...
29
votes
11answers
5k views

javascript test for existence of nested object key

If I a reference to an object - var test = {}; that will potentially (but not immediately) have nested objects, something like - { level1:{level2:{level3:'level3'}} }; what is the best way to ...
0
votes
1answer
110 views

nested complex directive doesn't get executed?

I tried to follow this youtube tutorial by John Lindquist where he explains directives by categorizing them into components and containers. So I tried to do so, to have a container (slide) that will ...
0
votes
0answers
24 views

Display nested set tables with possibility of order elements

I'm using Datatablesjs to display data in a table. Now, I need a widget that can display Nested Set Data and order/re-order the records (and their childs). I found a (visual) solution that was using ...
0
votes
3answers
40 views

Javascript: Async nested function in other async function gives unexpected results

I have two asynchronous functions the one nested in the other like this: //Async 1 document.addEventListener("click", function(event){ for (var i in event){ //Async 2 ...
-1
votes
1answer
54 views

Writing 1 through 125 in javascript

I'm trying to write some code so that when the user clicks a button, the page writes the numbers 1 through 125, while modifying some in between My first question is how do I write the conde so that ...
0
votes
2answers
52 views

Passing a function as argument of another function to nested function

Little confusing. From within function evenCard I'd like to call function autoFlip and pass it function evenBack as an argument. Then to complicate things further, autoFlip needs to pass the argument ...
2
votes
3answers
55 views

How to enumerate a JSON list of list using JavaScript

I receive the following JSON string from a third party service. (This is the problematic snippet from the JSON string) "last_data_store" : { "02:00:00:00:2a:1a" : { "K" : 1364400231, ...

1 2 3 4 5 10
15 30 50 per page