Re: [MarkLogic Dev General] How to pass parameters between JavaScript functions?

2017-02-08 Thread Matt Moody
am To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] How to pass parameters between JavaScript functions? I think you need to add "return" before parseFlights(resp); in the getFlightsInAir function. Sam Mefford Senior Engineer MarkLogic Corporation sam.meff.

Re: [MarkLogic Dev General] How to pass parameters between JavaScript functions?

2017-02-08 Thread Sam Mefford
I think you need to add "return" before parseFlights(resp); in the getFlightsInAir function. Sam Mefford Senior Engineer MarkLogic Corporation sam.meff...@marklogic.com Cell: +1 801 706 9731 www.marklogic.com This e-mail and any acco

[MarkLogic Dev General] How to pass parameters between JavaScript functions?

2017-02-08 Thread Matt Moody
ML JavaScript newbie question… I’m simply trying to pass the response from my httpGet call into my parseFlights function. The httpGet call returns a valid JSON document. However, it looks like the parameter that gets passed to the parseFlights function is always blank. Why? declareUpdate();