Okay, so looking at the code example I beginning to see how I could do this for an attribute search, but what about an address search?
The sample code shows the url hardcoded. How do I type it so that it knows to automatically grab the URL string that is typed into web browser?
The sample code:
var myObject = esri.urlToObject(http://www.myworld.com?state_name=Ohio&city_name=Akron);
I'm thinking that I would add this code, but modified somehow to capture the original URL string, then pas the myObject variable to either the Locator or Geocode widget. Does this sound correct or am I making it more difficult than it needs to be?
Or, if I typed the following into the web browser:
http://www.myworld.com?search=123 Main St, Pocatello, Idaho
would this be automatically passed to the search/geocode widget like it was in the Flex Viewer because of the 'search=' text or do I need a different term instead of 'search=' ?
Or do I need to manually write code to pass the 'search=' variable to the geocode widget within the javascript doc?
I miss the well documented Flex Viewer website...
Thanks again for your assistance.