Ajax Method ??

  1. #1

    Ajax Method ??

    hi everyone;

    I have a question how many parameters can be used by an Ajax method ? Because i have 8 parameters and makes weird things i tried it with 7 and worked perfectly.

    JScript code

    
    
    
    function LoadPedido(param1, param2, param3, param4, param5, param6, param7)//, param8)
    {
        Coolite.AjaxMethods.BuscaPedido(param1, param2, param3, param4, param5, param6, param7,// param8,
       { 
           timeout: 1200000,
           waitMsg: 'Processing...',
           success: function(result) { 
       },
       failure: function(result)
      {
           Process('Error',result);
       }});
    }


    C# code

    
    
    
    
    [AjaxMethod]
    public string BuscaPedido(string param1, string param2, string param3, string param4, string param5, string param6, string param7)//, string z_varstrDFHastaEnc)
    {
        result = param1 + "," +  param2 + "," + param3 + "," + param4 + "," + param5 + "," +param6+ "," +param7; // + param8
        return "Procesando";
    }
    Thanks by the way.
  2. #2

    RE: Ajax Method ??

    this is the solution momently

    http://forums.ext.net/showthread.php?3792
    Last edited by geoffrey.mcgill; Jan 11, 2011 at 9:30 PM.

Similar Threads

  1. Passing parameter to Ajax Method
    By shijith in forum 1.x Help
    Replies: 1
    Last Post: Jul 26, 2010, 12:52 PM
  2. Replies: 2
    Last Post: Jan 09, 2010, 10:32 PM
  3. ajax method
    By [WP]joju in forum 1.x Help
    Replies: 4
    Last Post: Feb 06, 2009, 6:43 AM
  4. calling ajax method from Javascript
    By vedagopal2004 in forum 1.x Help
    Replies: 1
    Last Post: Jan 21, 2009, 3:35 AM
  5. AJAX Method doesnt work
    By hbaraza in forum 1.x Help
    Replies: 1
    Last Post: Jan 15, 2009, 11:20 AM

Posting Permissions