Using feature layer in webapplication

Discussion created by andrzejm on Apr 5, 2013
Latest reply on Apr 11, 2013 by chaouki22
I'm new to ArcGIS web applications and server. I want to build webapplication for a webbrowser where users could add new features in my polyline feature layer. New added features should be saved in the layer and later I want to use the layer to make analysis with ArcGIS Desktop.
I wonder where I need to store that feature layer to access it in my webapp? I analyzed some ArcGIS API for JavaScript samples and see there links to layers e.g.
var rivers = new esri.layers.FeatureLayer(""

Can I store my feature layer in ArcGIS Online, get similar link and put it to my javascript? The main goal that features added by users would be saved in the layer. How can I achieve this?

Thank you,