:: Forum >> Version 1 >>

Load xml table, waiting to finish, load final grid

I have a question. Since the program doesn't wait until the XML table is finished loading, how can I make it? I want to do this...

1. Load an invisible table with some dropdown choices in an SQL database

2. once that finishes loading, populate the data into a dropdown box

3. then finally, load the actually main grid, with the dropdown boxes in them.

Right now I have everything loading, (both tables) and the user clicks a button, and it populates the dropdown boxes, and then you can start editing the grid, but I want this to be done automaticly.

Load the table, wait, populate the dropdown box once the table is loaded, load the final grid.
David
Thursday, September 23, 2004
bump
Dennis
Monday, September 27, 2004
Anyone have any direction to point me in?
Dennis
Tuesday, September 28, 2004
Try overwriting table.response method so that it wait until you do your stuff.
Maybe this will help you:
/javascript.forum.892.1/
luxorin
Wednesday, September 29, 2004
There is what I have so far
<!-- Gathering Codes for drop down boxes -->
<
script>
    var 
tableOrder = new Active.XML.Table;
    var 
tableReason = new Active.XML.Table;
    var 
tableComp = new Active.XML.Table;

    
tableOrder.setRows("//root/OrderStatusCodes");
    
tableReason.setRows("//root/ReasonCodes");
    
tableComp.setRows("//root/Competitors");

    
tableOrder.setURL("http://*****/Get_Codes.xml");

    var 
_response tableOrder.response;
    
tableOrder.response = function(xml)
    {
        
_response.call(thisxml);
        
tableReason.setXML(xml);
        
tableComp.setXML(xml);
    }

    
tableOrder.request();
</
script>
 
I'm not sure how you say, wait here until done.. Would I just check of an EOF?
Dennis
Thursday, September 30, 2004
Sorry for the delay.
Yes, i tried to suggest that something like this might work.. it worked for me.
You could also try using grid.getDataModel.isReady() to find out when your first table has finished loading
Tuesday, October 5, 2004
Actually my partner at work, found out what to do. Thanks to Alex ofcourse.

/javascript.forum.892.4/
Dennis
Tuesday, October 5, 2004



This topic is archived.

Back to support forum

Forum search