Could be because you're doing a redirect in load.rails which will return a 301/302 code rather than 200, so onSuccess never gets called. onComplete would though.
On Thu, Jan 29, 2009 at 9:35 PM, M Kenyon II <[email protected]> wrote: > > K, I don't know where to start with this, but I'll give as much info > as possible. > > I've got a monorail page with this script: > function LoadObject(id) { > var url = 'load.rails'; > var pars = 'ID=${District.ID}&WarningID=' + id + > '&isAjax=true'; > if($('entryform').grid != null) { > pars += '&grid=' + $('entryform').grid.value; > alert('Got it'); > } > > alert($('entryform').grid); > new Ajax.Request(url, {method: 'get', evalScripts: true, > parameters: > pars, onException: error, onSuccess:successFunction}); > document.getElementById("UpdateProgDiv").style.display = > "block"; > } > > It get's triggered when the user double clicks on an item in a grid. > The grid is defined like this: > <?brail > component BasicGridComponent, {"id":"PageGrid", "source": > GridObjects}: > > The controller get's called and doesn't error. The onException > javascript function never gets called, but neither does > successFunction. > > The controller's load method: > [AccessLevelFilter(new string[] { "ADMIN", "SUPER", > "MAINT" })] > public void Load(int ID, int WarningID, bool isAjax) > { > Flash["FormAction"] = true; > Flash["WarningID"] = WarningID; > > RedirectToAction("Index", Request.QueryString); > } > > calls the index method: > [AccessLevelFilter(new string[] { "ADMIN", "SUPER", > "MAINT" })] > public void Index([ARFetch("ID")] District District, bool > isAjax) > { > > > I'm not sure what I'm missing. CAn you see anything glaringly wrong? > Is there something else I can try to troubleshoot? > > I'm not sure what would trigger the onSuccess event. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" 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/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
