Login Register

refresh

How to feed the datastore with data and refresh it by url

Hi,

I have got a data store defined with a "data" property instead of "url" because the data is already known when the HTML page is sent by the server, and I can thus avoid an XHR request to the server afer the page is loaded.

var data = { /* Object initially populated by my PHP script */ };
var store = new dojo.data.ItemFileWriteStore({ data: data });

Dialog not refreshing / using cache data

I have a dijit dialog form which is used for data entry. Once the user clicks OK the data is written to a database and the dialog is closed (using HIDE method). However when I click the dialog button again, it still shows the previous data entered... it is still accessing the cache however I have set the refreshOnShow & preventCache attributes for the dialog:

And I close the dialog as follows:

AccordionPane: Change URL and Refresh

I have an accordion where I'm displaying RSS feeds. I want to allow users to select from a list of feeds and have panes updated to display their selections. To make things simple, I use an example of an accordion with just one pane:

<div id="feedaccordion" dojoType="dijit.layout.AccordionContainer" duration="200">
    <div id="customize" dojoType="dijit.layout.AccordionPane" title="Customize Feeds">[list of feeds here]</div>
</div>

The text [list of feeds] contains links to a javascript function. The links have the following form:

refreshing the document with dojo?

Is there a dojo way of refreshing the entire current document, equivalent to window.location.reload()?

(I am no javascript specialist, and I am always afraid to manipulate the DOM directly, for fear of hitting various browsers' incompatibilities. Hence the reflex of turning to dojo whenever possible!)

Grid refresh works in FF but not IE???

var userGrid = dijit.byId("grid");   
    var store = new dojo.data.ItemFileWriteStore({url:"srvLinkGrid"});
    var gridModel = new dojox.grid.data.DojoData(null, store, {query:{idx: '*'}, clientSort:true});
    userGrid.setModel(gridModel);
    userGrid.refresh();

I know I'm beating a dead horse but this code works in FF and Safari. But it will not refresh the grid in IE. Been reading the FAQ's and trying things but no luck. If anyone has a code example where it works in IE it would be greatly appreciated.

Thank you

Elegant way of bypassing "Tried to register widget but that id is already registered" ?

I have a ContentPane which contains several dijit widgets (created declaratively: <div id="23" dojoType="dijit.Dialog"/> for instance), each with its own id. The content of the ContentPane is initially provided in ajax-fashion by setting the href property.

Dojo controls not all drawn correctly the first time

I have a fairly complicated Dojo screen of 2 panels with couple of graphics areas and a 7-pane accordion control each tab of which contains a small grid of values. Each accordion pane has a small delay in it so that teh grid will be loaded and refreshed:

The first time the FF3 browser shows this screen it is frequently a jumble of incompletely drawn parts.
Usually refreshing the screen straightens this out.

Problems updating multiple Trees with ItemFileWriteStore

Hello all:

I'm pretty new to Dojo, and I'm really impressed with it so far. I've run into a small snag with the Tree widgit though, and was wondering if I'm doing something wrong, or if I've found a bug.

I have an ItemFileWriteStore, reading JSON data from my server. There are two types within this data: 'folders', and 'items'. As you might suspect, an 'item' resides within a folder.

I have two trees. The first tree displays folders, and the item children of the folders. The second tree displays all items.

Unwanted page reload/refresh

I have written an application that allows the user to enter query criteria into a set of filteringSelect elements and submit the criteria and have the result returned in a grid. For some reason, if all four of the filteringSelects are touched, the entire page will reinitialize, reloading all the dojo modules, performing all the scripts in the header, reloading all the functions and performing a bunch of gets to the server that should only be performed once at the initial load of the page. I am having trouble pinpointing what is triggering the reload.

Dojo doesn't load first time through on IE7 - refresh and all is well

Have a very simple piece of code. FF2 works fine first time hitting. IE7 doesn't work until you refresh. Why?

Code:

--->
 

Syndicate content