AJAX Post Insert SQL Data

2 posts, 0 answers
  1. Seth
    Seth avatar
    90 posts
    Member since:
    Jun 2007

    Posted 26 Feb 2008 Link to this post

    I am working on a sytem that requires logging of a user's actions.  I need to be able to make an ajax call that will post a value into my audit table.  What is the best approach for this?

    I am using a TreeView and I have set the OnClientNodeClicked code to this:

    function AfterClientClickHandler(treeView, args)  
        var oNode = args.get_node();  
        var attributes = oNode.get_attributes();  
        if (attributes.getAttribute("Level") == "Item")  
            bIndexGridPop = false;  
            bAssociatedGridPop = false;  
            bAuditGridPop = false;  
            iCurrentPage = -1;  

    I have tried using the AjaxRequest and AjaxRequestWithTarget functions but that does not seem to be the solution thus far.

    I cannot post my project as it is rather large and has quite a few dependencies.


  2. Vlad
    Vlad avatar
    11100 posts

    Posted 27 Feb 2008 Link to this post

    Hello Seth,

    The only way to achieve this is to use AjaxRequest() method and pass desired values to the event server side.

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft R3 2016 release webinar banner
Back to Top