Created
November 28, 2012 21:10
-
-
Save bleathem/4164510 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pipeline = AeroGear.Pipeline({ | |
name:"capitals", | |
settings:{ | |
baseURL:'/rs/' | |
} | |
}); | |
var capitals = pipeline.pipes['capitals']; | |
var fetchCapitals = function () { | |
capitalsPipe.read({ | |
success:function (capitals) { | |
log("success, capitals: " + capitals); | |
capitalsPipe.read({ | |
data:{filter:'selected'}, | |
success:function (selectedCapitals) { | |
log("success, selectedCapitals: " + selectedCapitals); | |
initPickList(); | |
$('#myPickList').pickListGlue("populatePickList", capitals, selectedCapitals); | |
subscribe(); | |
}, | |
error:function () { | |
log("error retrieving all capitals"); | |
} | |
}); | |
}, | |
error:function () { | |
log("error retrieving all capitals"); | |
} | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment