Changes between Initial Version and Version 2 of Ticket #9694


Ignore:
Timestamp:
Aug 10, 2009, 11:23:31 PM (11 years ago)
Author:
bill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9694 – Description

    initial v2  
    11Per #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:
    22
     3{{{
    34<div id="store" dojoType="dojo.data.ItemFileReadStore" clearOnClose="true" url="/foo.php">
     5}}}
    46
    57then:
    68
     9{{{
     10#!js
    711dijit.byId("store")._jsonFileUrl = "/bar.php";
    812dijit.byId("store").close();
    913dijit.byId("store").fetch();
     14}}}
    1015
    1116Would it be possible to replace the first line with something like:
    1217
     18{{{
     19#!js
    1320dijit.byId("store").setUrl("/bar.php");
     21}}}
    1422
    1523Or even:
    1624
     25{{{
     26#!js
    1727dijit.byId("store").attr('url', '/bar.php');
     28}}}
    1829
    1930Thanks,