Easiest/Best way to dynamically pass in userName for FlickrDataProvider

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


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!
Jan 27, 2008 at 7:56 AM
Edited Jan 27, 2008 at 8:11 AM
The userName is specified in the configuration file, like this:

<dataProvider type="FlickrDataProvider">
	<option name="userName" value="tonysoko" />
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.