Skip to main content

function subMenuCat(idCategoria){
var parametros = { "idCat":idCategoria, } $.ajax ({ data: parametros, url: "php/AgrApp/cat_cnv.php", type: "POST",

function subMenuCat(idCategoria){  
    var parametros = {
            "idCat":idCategoria,
        }
        $.ajax ({
            data: parametros,
            url: "php/AgrApp/cat_cnv.php",
            type: "POST",

        success: function(data){

            objJsonSub=JSON.parse(data);
           //recorres tu objJsonSub para mostrar tu Menu
           // ....
                var objJsonSub = {
           "p1": "value1",
          "p2": "value2",
          "p3": "value3"
          };

       for (var key in objJsonSub) {
          if (p.hasOwnProperty(key)) {
             console.log(key + " -> " + objJsonSub[key]);
          }
       }

           
            }   
        });
    }

function subMenuCat(idCategoria){
var parametros = { "idCat":idCategoria, } $.ajax ({ data: parametros, url: "php/AgrApp/cat_cnv.php", type: "POST",

    success: function(data){

        objJsonSub=JSON.parse(data);
       //recorres tu objJsonSub para mostrar tu Menu
       // ....
            var objJsonSub = {
       "p1": "value1",
      "p2": "value2",
      "p3": "value3"
      };

   for (var key in objJsonSub) {
      if (p.hasOwnProperty(key)) {
         console.log(key + " -> " + objJsonSub[key]);
      }
   }

       
        }   
    });
}
function subMenuCat(idCategoria){  
    var parametros = {
            "idCat":idCategoria,
        }
        $.ajax ({
            data: parametros,
            url: "php/AgrApp/cat_cnv.php",
            type: "POST",

        success: function(data){

            objJsonSub=JSON.parse(data);
           //recorres tu objJsonSub para mostrar tu Menu
           // ....
                var objJsonSub = {
           "p1": "value1",
          "p2": "value2",
          "p3": "value3"
          };

       for (var key in objJsonSub) {
          if (p.hasOwnProperty(key)) {
             console.log(key + " -> " + objJsonSub[key]);
          }
       }

           
            }   
        });
    }
Origen Enlace

function subMenuCat(idCategoria){
var parametros = { "idCat":idCategoria, } $.ajax ({ data: parametros, url: "php/AgrApp/cat_cnv.php", type: "POST",

    success: function(data){

        objJsonSub=JSON.parse(data);
       //recorres tu objJsonSub para mostrar tu Menu
       // ....
            var objJsonSub = {
       "p1": "value1",
      "p2": "value2",
      "p3": "value3"
      };

   for (var key in objJsonSub) {
      if (p.hasOwnProperty(key)) {
         console.log(key + " -> " + objJsonSub[key]);
      }
   }

       
        }   
    });
}