code_junkie

Dynamic url for dojo combobox source

Nov 12th, 2011
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <div dojoType="dojo.data.ItemFileReadStore"
  2. jsId="tags"
  3. url="<%=ResolveClientUrl("~/Tag/TagMatches")%>" >
  4. </div>
  5. <select dojoType="dijit.form.ComboBox"
  6. store="tags"
  7. value=""
  8. name="tagName">
  9. </select>
  10.  
  11. var tagMatchUrlBase = '<%=ResolveClientUrl("~/Tag/TagMatches")%>';
  12.  
  13. var tagMatchUrl = tagMatchUrlBase + "?f=" + escape(somefilterString);
  14. var store = new dojo.data.ItemFileReadStore({url: tagMatchUrl});
  15. tagName.store = store;
  16. // maybe use store.fetch() to pre-select item #1
Add Comment
Please, Sign In to add comment