Tagged Questions
1
vote
0answers
42 views
Trampoline over Recursion for Array and Object iteration
It's probably just the "Friday after 5:00 and I want to go home" effect, but I'm stumped on this problem. I have a recursive iterator method I'll call each:
function canIterate(obj) {
return (obj ...
1
vote
0answers
111 views
Javascript: Recursive Depth First Search for hierarchical reordering based on d3's recurse()
I'm trying to do a depth first search through a complex json object such as:
...
1
vote
0answers
107 views
javascript skipping first level of recursive thingy
I'm reading in a JSON object into a normal looking js object. There is a class called Style that can contain styles (in an array) and has a name and a value. A few different objects can contain styles ...
0
votes
0answers
36 views
Best performance method for validating a strongly related tree structure is JavaScript with angular
I have a tree data object each node can be a parent or a child and these can have any number of children etc. Each node had a related data collection that needs to be modify until it becomes valid. ...
0
votes
0answers
48 views
Recursion through while loop inside for loop
I am having a dhtmlxgrid with first column as a systemName. A user can add a new row in this grid. Before adding a row in a grid i need to make sure that the systemName is not repeated.
So what i have ...
0
votes
0answers
60 views
JSON CSS parser
my recursive function is breaking and I cannot figure out why. I am trying to write a parser for json to css with barebone javascript and can't seem to wrap my head around why my function doesn't ...
0
votes
0answers
35 views
Finite time callbacks for node's event loop
I have converted the usual blocking Fibonacci number generator to run its iterations on Node's event loop tick's. Now the node server does not blocks. But the original computation may keep on going ...
0
votes
0answers
109 views
ext js 4: too much recursion
I have two collapsible panels inside a tab one for "Search" and other one for "Results". From the results panel, I open a model window for editing.
Below is my workflow
In the search panel, search
...
0
votes
0answers
143 views
Ajax recursive call on error handler get too much recursion on FF
I'm making a recursive call on error handler, by executing the same ajax method when clicking the "#btnTryAgain" button inside the modal shown on error:
var deliverOrder = function(order) {
...
0
votes
0answers
131 views
Access XML nodes with javascript recursively
Say I have an XML structure like the following:
<document>
<data>
<dataName>Name of data group</dataName>
<dataDetails>
<detail_1>detail ...
0
votes
0answers
142 views
Call Recursive Method from within jQuery Ajax Function (Ember)
I have an object which loads data using a .getJSON jQuery method, from within this function (excerpted from the object):
getResults: function () {
var me = this;
$.getJSON(me.url, function ...
0
votes
0answers
89 views
Check array items
In the code below, $rows is a array value as a result of a MySQL query from the TestPhase table in the database.
<?php>
$rows = array();
$result1 = mysql_query("SELECT * FROM TestPhase ...
0
votes
0answers
83 views
Recursively mapping to javascript classes with Direct Web Remoting (DWR) 3.0
I am new to DWR and would like to know, if it is possible to recursively map java objects to their corresponding javascript classes. It works for the top level of the object, but not for its children:
...
0
votes
0answers
213 views
Raphael Javascript Graphics Tree Recursion
SORRY if this is a long post BUT it's not that long I swear! I'm trying to put as much detail as possible without being verbose!
I'm using raphaeljs graphics library for my canvas.
I've tried to ...
0
votes
0answers
121 views
Variable not incrementing during recursive javascript function
Below is a console log of a variable before and after it has been incremented. For some strange reason the value before incrementing does not match the previously incremented value.
Pretty self ...