This statement helps a ton!

I now have a little function that can reload the data in my exhibit.
Looks like this:
            function reloader () {
                Exhibit.UI.showBusyIndicator();
                window.database.removeAllStatements();
                var importer = Exhibit.importers["application/json"];
                importer.load("GetActiveCalls.aspx", window.database,
function () {Exhibit.UI.hideBusyIndicator();});
            }

It reloads the data great!  The only issue right now is that the
showBusyIndicator does not seem to be working.  I see the exhibit go
blank - a good pause and then the new data shows up.  It would be nice
to show the busy thing during that pause.  Am I missing something?

Ray

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Huynh
Sent: Tuesday, November 20, 2007 1:14 PM
To: General List
Subject: Re: Adjusting Exhibit data after load

Kevin Smith wrote:
> This great. Is there anyway to replace the data instead of append the 
> data?
I just added a method for clearing the data

    window.database.removeAllStatements();

Let me know if that helps.

David

>
> Kevin Smith
>
> David Huynh wrote:
>> Is your back-end server capable of sending just the additional data
each 
>> time rather than the whole data set again? If so, then you can do 
>> something like what I did for this application:
>>
>> http://picker.mit.edu/
>>
>> Choose a particular department, say, "4 Architecture", and click
"Browse 
>> Courses." That loads just the architecture courses. But then from the

>> drop-down at the upper left corner you can add more courses from
other 
>> departments. The code is in
>>
>> http://picker.mit.edu/browse.js
>>
>> Look at the 2 functions
>> onAddMoreSelectChange
>> loadURLs
>> The code would be simpler if you just need to load one URL.
>>
>> David
>>
>> Ray Johnson wrote:
>>   
>>> I'm using Exhibit to show information on calls currently happening
on 
>>> our site. This is fairly real-time data with a log of a minute or
so. 
>>> Currently a user can refresh the page to get new data which is kind
of 
>>> expensive as the data set is good sized and that also forces all the

>>> java script to get reloaded, etc.
>>>
>>> I'd like to be able to just reload the JSON data. Perhaps with a 
>>> refresh button or something. In looking through the docs, examples
and 
>>> this mailing list I have yet to see anyone talk about this. Is this 
>>> possible? What would we need to do to make it work?
>>>
>>> Ray
>>>
>>>
------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> General mailing list
>>> [email protected]
>>> http://simile.mit.edu/mailman/listinfo/general
>>>   
>>>     
>>
>> _______________________________________________
>> General mailing list
>> [email protected]
>> http://simile.mit.edu/mailman/listinfo/general
>>
>>   
>
------------------------------------------------------------------------
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>   

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to