I'm trying to lauching multiple ajax request base on initial ajax
request results.  First call works fine, but as soon as second request
is fire up, the exception occurred on first request object.  Is there
way I could do this in prototype.js?

var ajaxObj = new Ajax.Request( url, {
                method: 'post',
                parameters: params,
                onCreate:               function()                      {       
processOnCreate('message_search');      },
                onFailure:              function(transport) {   processOnFailure
('message_search', transport.status);   },
                onException:    function(err1)          {       
showMessageDiv('message_search',
'info', err1.message);          },
                onSuccess:              function(transport) {   
processGeneralLineInfo
(transport.responseXML);                }

        });


function processGeneralLineInfo ( result ) {

// do some validation from above result and launch more requests.

        var ajaxSpsObj = new Ajax.Request( url, {
                method: 'post',
                parameters: params,
                onCreate:               function()                      {       
processOnCreate
('message_search_sps'); },
                onFailure:              function(transport) {   processOnFailure
('message_search_sps', transport.status);       },
                onException:    function(err1)          {       
showMessageDiv('message_search_sps',
'alert', err1.message);         },
                onSuccess:              function(transport) {   
processSpsFeatures
(transport.responseXML);                        }

        });

}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to