Hi all, I have the following code at the moment..

function redrawData()
{
        for(var i = 0; i < bandInfos.length; i++)
        {
                $.ajax({
                        url: "ajax.php",
                        type: "POST",
                        async: false,
                        data: "xml=" + XMLtoString(xmlData) + "&keywords=" +
selectedKeywordsArray,
                        success: function(new_xml)
                        {
                                newXml = $.parseXML(newXml);

                                var eventSource = 
t1.getBand(i).getEventSource();

                                eventSource.clear();

                                eventSource.loadXML(newXml, "");

                                t1.layout();
                        }
                });
        }

Which iterates through each band and refreshes the view based on a
keywords array (there are checkboxes on my page that the user can
uncheck to filter out different parts of the data stream).

However this code doesn't work. All it does is make all the previous
data disappear (so the clear() works I guess), but it is not adding
any of the new data.

I ommitted the Timeline.loadXML() bit because that seems to want a URL
and my code is stored in memory. (I also do this earlier in the
application and it works fine).

Does anyone have any idea where I am going wrong?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en.

Reply via email to