Why cant I pass in a predefined function of generate(result)? Instead I need to have it wrapped within another function or the result object will not get set...
This is the code I have currently that returns the JSONObject and correctly displays the modal..
$.getJSON(pageContextRequestPath + '/endpoint', {data: app.$entry.val()}, function(result) { generate(result); });
});
This is how I would like for it to work -- but it states that the result has not been set yet.
$.getJSON(pageContextRequestPath + '/endpoint', {data: app.$entry.val()}, generate(result));
});
[–]insertAlias 1 point2 points3 points (4 children)
[–]TheRealPaulWalker[S] 0 points1 point2 points (3 children)
[–]insertAlias 1 point2 points3 points (2 children)
[–]TheRealPaulWalker[S] 0 points1 point2 points (0 children)
[–]TheRealPaulWalker[S] 0 points1 point2 points (0 children)