Easiest/Best way to dynamically pass in userName for FlickrDataProvider

Jan 21, 2008 at 9:09 PM
ashx to dynamically generate a new config xml?

or

is there a way to pass it as a parameter to the script to override the one set in the xml file?

your advice is much appreciated!
Coordinator
Jan 27, 2008 at 8:56 AM
Edited Jan 27, 2008 at 9:11 AM
The userName is specified in the configuration file, like this:

<dataProvider type="FlickrDataProvider">
	<option name="userName" value="tonysoko" />
</dataProvider>
To override it in script, you could probably take a look at the code for the FlickrDataProvider (in DataProvider.js) and call the getData method directly with a handler, making sure that you call the setOptions({ userName: "adsfadsf" }) method first.