Alpha Video Training
Results 1 to 3 of 3

Thread: Ajax Callback

  1. #1
    "Certified" Alphaholic
    Real Name
    Lee Vasic
    Join Date
    May 2010
    Location
    Salt Lake City
    Posts
    1,216

    Default Ajax Callback

    Is there a way to give the Ajax Callback a name so that when it completes I can see it in the
    Client-side Grid system Events\afterAjaxCallbackComplete\e.ajaxEvent?
    That way I can put an if statement on the e.ajaxEvent then do something else.
    If e.ajaxEvent = “MyAjaxCallBack”
    Do something
    End if



    I’ve decided to use a flag instead. This seems to work, but I will be testing...
    1. I created a function:
    function AjaxCompleteFlag1()
    {
    ACFlag1 = 1
    }

    2. in the Client-side Grid System Events\ AfterAjaxCallbackComplete

    if (window.ACFlag1 == 1){
    alert("Do something else")
    ACFlag1 = 0
    }

    Does anyone see a problem with this?
    Last edited by lvasic; 08-17-2011 at 05:48 PM.

  2. #2
    "Certified" Alphaholic Clipper87's Avatar
    Real Name
    Frank
    Join Date
    Dec 2008
    Location
    Antwerp, Belgium
    Posts
    1,891

    Default Re: Ajax Callback

    See the description: The e.ajaxEvent property contains the name of the action that triggered the callback.

    afterajax.png

  3. #3
    Member
    Real Name
    Nick
    Join Date
    May 2011
    Location
    Michigan, USA
    Posts
    58

    Default Re: Ajax Callback

    I think lvasic's question is not how to get the name of said action, but rather can it be changed to something else. I have wondered about this and haven't been able to figure it out either. If I remember correctly, every time I look at the e.ajaxEvent property, all of my callbacks have something like "genericajaxcallback".

Similar Threads

  1. Append via Ajax callback
    By RobPolley in forum Application Server Version 10 - Web/Browser Applications
    Replies: 5
    Last Post: 07-24-2011, 09:35 PM
  2. AJAX Callback - need new eyes
    By Steve Workings in forum Application Server Version 10 - Web/Browser Applications
    Replies: 11
    Last Post: 01-05-2011, 10:19 PM
  3. Ajax callback - where is the data
    By leec2000 in forum Application Server Version 10 - Web/Browser Applications
    Replies: 5
    Last Post: 06-03-2010, 10:41 PM
  4. AJAX Callback question
    By Mike Reed in forum Application Server Version 9 - Web/Browser Applications
    Replies: 3
    Last Post: 04-27-2009, 11:14 AM
  5. Example of Ajax Callback from Dialog
    By eboughey1 in forum Application Server Version 9 - Web/Browser Applications
    Replies: 3
    Last Post: 03-09-2009, 09:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •