Robert Scheitlin, GISP has created the eSearch widget. It has URL parameters. With this ability I can generate a URL that allows my clients / customers to visit a webmap that is cued up to exactly what I want them to see. Except I need to offer them a 'current year' URL and that wasn't an option with eSearch "out-of-the-box" so after working with Robert I was able to introduce some modified code that gave me what I wanted.
<SPAN class="comment token">//now check if there is a url search to do</SPAN>
<SPAN class="keyword token">var</SPAN> myObject <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="token function">getUrlParams</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">if</SPAN> <SPAN class="punctuation token">(</SPAN>myObject<SPAN class="punctuation token">.</SPAN>esearch<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="keyword token">if</SPAN><SPAN class="punctuation token">(</SPAN>myObject<SPAN class="punctuation token">.</SPAN>esearch <SPAN class="operator token">===</SPAN> <SPAN class="string token">"curmonth"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN>
<SPAN class="keyword token">var</SPAN> today <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">Date</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
today<SPAN class="punctuation token">.</SPAN><SPAN class="token function">setDate</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="number token">1</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">var</SPAN> thisMonthStr <SPAN class="operator token">=</SPAN> <SPAN