Changes between Initial Version and Version 2 of Ticket #9694
- Timestamp:
- Aug 10, 2009, 11:23:31 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #9694 – Description
initial v2 1 1 Per #6073 there is a clearOnClose param since 1.2 that allows a data store to change URL's without having to create a new store. But for this to work you have to set a psuedo-private member of the class: 2 2 3 {{{ 3 4 <div id="store" dojoType="dojo.data.ItemFileReadStore" clearOnClose="true" url="/foo.php"> 5 }}} 4 6 5 7 then: 6 8 9 {{{ 10 #!js 7 11 dijit.byId("store")._jsonFileUrl = "/bar.php"; 8 12 dijit.byId("store").close(); 9 13 dijit.byId("store").fetch(); 14 }}} 10 15 11 16 Would it be possible to replace the first line with something like: 12 17 18 {{{ 19 #!js 13 20 dijit.byId("store").setUrl("/bar.php"); 21 }}} 14 22 15 23 Or even: 16 24 25 {{{ 26 #!js 17 27 dijit.byId("store").attr('url', '/bar.php'); 28 }}} 18 29 19 30 Thanks,