elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: AIO elhacker.NET 2021 Compilación herramientas análisis y desinfección malware


  Mostrar Mensajes
Páginas: [1] 2 3
1  Programación / Desarrollo Web / Re: [Pregunta]Problema con HTML, Json y Ajax en: 1 Junio 2020, 17:23 pm
Muchas gracias, he utilizado la opcion que me distes, lo organize a lo que necesitaba y ya me esta dando!.
2  Programación / Desarrollo Web / [Pregunta]Problema con HTML, Json y Ajax en: 31 Mayo 2020, 04:19 am
 Buenas noches, hoy vengo a pedir su apoyo para un problema que me esta doliendo la cabeza (Por el poco conocimiento que he tenido, el cual estoy aprendiendo).
INTRODUCCION:

Estoy haciendo una pequeña vista con html, donde introduzco unos datos que vienen en formato (json), usando (ajax). Son datos de unos cursos los cuales vienen con los capitulos y sus respectivos videos.
CODIGO JSON:
Código
  1. {
  2.  "courses": [
  3.   {
  4.      "name": "Programming - Android Leveraging the power of the android platform",
  5.      "color": "#BCCEF4",
  6.      "list":
  7.      [
  8.       {
  9. "chapter":"Leveraging the power of the android platform",
  10. "videos":[
  11.            {
  12.            "name":" Understanding the android threading model",
  13.            "video":"programming/Android/Leveraging the power of the android platform/1. Understanding the android threading model.mkv",
  14.            "subtitle":"file.vtt"
  15.             },
  16.            {
  17.            "name":" Performing Background work with Services",
  18.            "video":"programming/Android/Leveraging the power of the android platform/2. Performing Background work with Services.mkv",
  19.            "subtitle":"file.vtt"
  20.            },
  21.            {
  22.            "name":" Scheduling Background work with jobScheduler",
  23.            "video":"programming/Android/Leveraging the power of the android platform/3. Scheduling Background work with jobScheduler.mkv",
  24.            "subtitle":"file.vtt"
  25.            },
  26.            {
  27.            "name":" working with Broadcast Receivers",
  28.            "video":"programming/Android/Leveraging the power of the android platform/4. working with Broadcast Receivers.mkv",
  29.            "subtitle":"file.vtt"
  30.            },
  31.            {
  32.            "name":" Using Alarms to shedule time-sensitive task",
  33.            "video":"programming/Android/Leveraging the power of the android platform/5. Using Alarms to shedule time-sensitive task.mkv",
  34.            "subtitle":"file.vtt"
  35.            }
  36.        ]
  37. }
  38.  
  39.      ]
  40.    },
  41.    {
  42.      "name": "Programming - Android Apps with Kotlin- ViewModel and Lifecycle",
  43.      "color": "#BCCEF4",
  44.      "list":
  45.      [
  46.          {
  47.            "chapter":"00. Course Overview",
  48.            "videos":[
  49.                {
  50.                "name":" Course Overview",
  51.                "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/00. Course Overview/00. Course Overview.mp4",
  52.                "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/00. Course Overview/00. Course Overview.vtt"
  53.                }
  54.            ]
  55.           },
  56.           {
  57.            "chapter":"01. Managing Activity State with ViewModel",
  58.            "videos":[
  59.                        {
  60.                        "name":" Introduction",
  61.                        "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/01. Managing Activity State with ViewModel/00. Introduction.mp4",
  62.                        "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/01. Managing Activity State with ViewModel/00. Introduction.vtt"
  63.                        },
  64.                        {
  65.                        "name":" Activities - More Than Just a Pretty Face",
  66.                        "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/01. Managing Activity State with ViewModel/01. Activities - More Than Just a Pretty Face.mp4",
  67.                        "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/01. Managing Activity State with ViewModel/01. Activities - More Than Just a Pretty Face.vtt"
  68.                        },
  69.                        {
  70.                        "name":" Managing Activity State with ViewModel",
  71.                        "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/01. Managing Activity State with ViewModel/02. Managing Activity State with ViewModel.mp4",
  72.                        "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/01. Managing Activity State with ViewModel/02. Managing Activity State with ViewModel.vtt"
  73.                        },
  74.                        {
  75.                        "name":" There's a Bug in Our App",
  76.                        "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/01. Managing Activity State with ViewModel/03. There's a Bug in Our App.mp4",
  77.                        "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/01. Managing Activity State with ViewModel/03. There's a Bug in Our App.vtt"
  78.                        },
  79.                        {
  80.                        "name":" Adding a ViewModel and Build Dependencies",
  81.                        "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/01. Managing Activity State with ViewModel/04. Adding a ViewModel and Build Dependencies.mp4",
  82.                        "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/01. Managing Activity State with ViewModel/04. Adding a ViewModel and Build Dependencies.vtt"
  83.                        },
  84.                        {
  85.                        "name":" Accessing Our ViewModel with a Lazy Property",
  86.                        "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/01. Managing Activity State with ViewModel/05. Accessing Our ViewModel with a Lazy Property.mp4",
  87.                        "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/01. Managing Activity State with ViewModel/05. Accessing Our ViewModel with a Lazy Property.vtt"
  88.                        },
  89.                        {
  90.                        "name":" Restoring the Activity State",
  91.                        "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/01. Managing Activity State with ViewModel/06. Restoring the Activity State.mp4",
  92.                        "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/01. Managing Activity State with ViewModel/06. Restoring the Activity State.vtt"
  93.                        },
  94.                        {
  95.                        "name":" That Bug's Fixed, but We Just Found Another One",
  96.                        "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/01. Managing Activity State with ViewModel/07. That Bug's Fixed, but We Just Found Another One.mp4",
  97.                        "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/01. Managing Activity State with ViewModel/07. That Bug's Fixed, but We Just Found Another One.vtt"
  98.                        },
  99.                        {
  100.                        "name":" Managing More Complex State with ViewModel",
  101.                        "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/01. Managing Activity State with ViewModel/08. Managing More Complex State with ViewModel.mp4",
  102.                        "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/01. Managing Activity State with ViewModel/08. Managing More Complex State with ViewModel.vtt"
  103.                        },
  104.                        {
  105.                        "name":" Verifying App Behavior",
  106.                        "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/01. Managing Activity State with ViewModel/09. Verifying App Behavior.mp4",
  107.                        "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/01. Managing Activity State with ViewModel/09. Verifying App Behavior.vtt"
  108.                        },
  109.                        {
  110.                        "name":" Summary",
  111.                        "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/01. Managing Activity State with ViewModel/10. Summary.mp4",
  112.                        "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/01. Managing Activity State with ViewModel/10. Summary.vtt"
  113.                        }
  114.            ]
  115.            },
  116.            {
  117.                "chapter":"02. Maintaining Activity State during System-initiated Shutdowns",
  118.                "videos":[
  119.                            {
  120.                            "name":" Introduction",
  121.                            "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/02. Maintaining Activity State during System-initiated Shutdowns/00. Introduction.mp4",
  122.                            "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/02. Maintaining Activity State during System-initiated Shutdowns/00. Introduction.vtt"
  123.                            },
  124.                            {
  125.                            "name":" Activity Destruction Effects on State",
  126.                            "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/02. Maintaining Activity State during System-initiated Shutdowns/01. Activity Destruction Effects on State.mp4",
  127.                            "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/02. Maintaining Activity State during System-initiated Shutdowns/01. Activity Destruction Effects on State.vtt"
  128.                            },
  129.                            {
  130.                            "name":" Durable Activity State",
  131.                            "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/02. Maintaining Activity State during System-initiated Shutdowns/02. Durable Activity State.mp4",
  132.                            "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/02. Maintaining Activity State during System-initiated Shutdowns/02. Durable Activity State.vtt"
  133.                            },
  134.                            {
  135.                            "name":" Identifying the Need for Durable State",
  136.                            "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/02. Maintaining Activity State during System-initiated Shutdowns/03. Identifying the Need for Durable State.mp4",
  137.                            "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/02. Maintaining Activity State during System-initiated Shutdowns/03. Identifying the Need for Durable State.vtt"
  138.                            },
  139.                            {
  140.                            "name":" Persisting State of a Simple Value",
  141.                            "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/02. Maintaining Activity State during System-initiated Shutdowns/04. Persisting State of a Simple Value.mp4",
  142.                            "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/02. Maintaining Activity State during System-initiated Shutdowns/04. Persisting State of a Simple Value.vtt"
  143.                            },
  144.                            {
  145.                            "name":" Restoring State of a Simple Value",
  146.                            "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/02. Maintaining Activity State during System-initiated Shutdowns/05. Restoring State of a Simple Value.mp4",
  147.                            "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/02. Maintaining Activity State during System-initiated Shutdowns/05. Restoring State of a Simple Value.vtt"
  148.                            },
  149.                            {
  150.                            "name":" Summary",
  151.                            "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/02. Maintaining Activity State during System-initiated Shutdowns/06. Summary.mp4",
  152.                            "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/02. Maintaining Activity State during System-initiated Shutdowns/06. Summary.vtt"
  153.                            }
  154.                ]
  155.                },
  156.                {
  157.                    "chapter":"03. Persisting Complex Activity State",
  158.                    "videos":[
  159.                                {
  160.                                "name":" Introduction",
  161.                                "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/03. Persisting Complex Activity State/00. Introduction.mp4",
  162.                                "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/03. Persisting Complex Activity State/00. Introduction.vtt"
  163.                                },
  164.                                {
  165.                                "name":" We're Still Losing Some of Our Activity State",
  166.                                "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/03. Persisting Complex Activity State/01. We're Still Losing Some of Our Activity State.mp4",
  167.                                "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/03. Persisting Complex Activity State/01. We're Still Losing Some of Our Activity State.vtt"
  168.                                },
  169.                                {
  170.                                "name":" Activity State and Data Model Cooperation",
  171.                                "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/03. Persisting Complex Activity State/02. Activity State and Data Model Cooperation.mp4",
  172.                                "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/03. Persisting Complex Activity State/02. Activity State and Data Model Cooperation.vtt"
  173.                                },
  174.                                {
  175.                                "name":" Moving the Details to the ViewModel",
  176.                                "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/03. Persisting Complex Activity State/03. Moving the Details to the ViewModel.mp4",
  177.                                "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/03. Persisting Complex Activity State/03. Moving the Details to the ViewModel.vtt"
  178.                                },
  179.                                {
  180.                                "name":" Persisting State of an Object Graph",
  181.                                "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/03. Persisting Complex Activity State/04. Persisting State of an Object Graph.mp4",
  182.                                "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/03. Persisting Complex Activity State/04. Persisting State of an Object Graph.vtt"
  183.                                },
  184.                                {
  185.                                "name":" Effectively Using ViewModel and Durable State Together",
  186.                                "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/03. Persisting Complex Activity State/05. Effectively Using ViewModel and Durable State Together.mp4",
  187.                                "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/03. Persisting Complex Activity State/05. Effectively Using ViewModel and Durable State Together.vtt"
  188.                                },
  189.                                {
  190.                                "name":" Verifying State Management Behavior",
  191.                                "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/03. Persisting Complex Activity State/06. Verifying State Management Behavior.mp4",
  192.                                "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/03. Persisting Complex Activity State/06. Verifying State Management Behavior.vtt"
  193.                                },
  194.                                {
  195.                                "name":" Summary",
  196.                                "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/03. Persisting Complex Activity State/07. Summary.mp4",
  197.                                "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/03. Persisting Complex Activity State/07. Summary.vtt"
  198.                                }
  199.                    ]
  200.                    },
  201.                    {
  202.                        "chapter":"04. Subscribing to Lifecycle Events",
  203.                        "videos":[
  204.                                    {
  205.                                    "name":" Introduction",
  206.                                    "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/04. Subscribing to Lifecycle Events/00. Introduction.mp4",
  207.                                    "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/04. Subscribing to Lifecycle Events/00. Introduction.vtt"
  208.                                    },
  209.                                    {
  210.                                    "name":" Cooperating with Activity Lifecycle",
  211.                                    "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/04. Subscribing to Lifecycle Events/01. Cooperating with Activity Lifecycle.mp4",
  212.                                    "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/04. Subscribing to Lifecycle Events/01. Cooperating with Activity Lifecycle.vtt"
  213.                                    },
  214.                                    {
  215.                                    "name":" Our App's Get-together Feature",
  216.                                    "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/04. Subscribing to Lifecycle Events/02. Our App's Get-together Feature.mp4",
  217.                                    "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/04. Subscribing to Lifecycle Events/02. Our App's Get-together Feature.vtt"
  218.                                    },
  219.                                    {
  220.                                    "name":" Managing Location with Activity Functions",
  221.                                    "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/04. Subscribing to Lifecycle Events/03. Managing Location with Activity Functions.mp4",
  222.                                    "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/04. Subscribing to Lifecycle Events/03. Managing Location with Activity Functions.vtt"
  223.                                    },
  224.                                    {
  225.                                    "name":" Fixing the Location Resource Leak",
  226.                                    "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/04. Subscribing to Lifecycle Events/04. Fixing the Location Resource Leak.mp4",
  227.                                    "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/04. Subscribing to Lifecycle Events/04. Fixing the Location Resource Leak.vtt"
  228.                                    },
  229.                                    {
  230.                                    "name":" Improving Lifecycle Handling with Events",
  231.                                    "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/04. Subscribing to Lifecycle Events/05. Improving Lifecycle Handling with Events.mp4",
  232.                                    "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/04. Subscribing to Lifecycle Events/05. Improving Lifecycle Handling with Events.vtt"
  233.                                    },
  234.                                    {
  235.                                    "name":" Creating a Lifecycle Observer",
  236.                                    "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/04. Subscribing to Lifecycle Events/06. Creating a Lifecycle Observer.mp4",
  237.                                    "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/04. Subscribing to Lifecycle Events/06. Creating a Lifecycle Observer.vtt"
  238.                                    },
  239.                                    {
  240.                                    "name":" Observing Lifecycle Events",
  241.                                    "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/04. Subscribing to Lifecycle Events/07. Observing Lifecycle Events.mp4",
  242.                                    "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/04. Subscribing to Lifecycle Events/07. Observing Lifecycle Events.vtt"
  243.                                    },
  244.                                    {
  245.                                    "name":" Connecting the Observer to the Lifecycle",
  246.                                    "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/04. Subscribing to Lifecycle Events/08. Connecting the Observer to the Lifecycle.mp4",
  247.                                    "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/04. Subscribing to Lifecycle Events/08. Connecting the Observer to the Lifecycle.vtt"
  248.                                    },
  249.                                    {
  250.                                    "name":" Summary",
  251.                                    "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/04. Subscribing to Lifecycle Events/09. Summary.mp4",
  252.                                    "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/04. Subscribing to Lifecycle Events/09. Summary.vtt"
  253.                                    }
  254.                        ]
  255.                        },
  256.                        {
  257.                        "chapter":"05. Determining Lifecycle State",
  258.                        "videos":[
  259.                                    {
  260.                                    "name":" Introduction",
  261.                                    "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/05. Determining Lifecycle State/00. Introduction.mp4",
  262.                                    "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/05. Determining Lifecycle State/00. Introduction.vtt"
  263.                                    },
  264.                                    {
  265.                                    "name":" Events Are Only Part of the Story",
  266.                                    "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/05. Determining Lifecycle State/01. Events Are Only Part of the Story.mp4",
  267.                                    "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/05. Determining Lifecycle State/01. Events Are Only Part of the Story.vtt"
  268.                                    },
  269.                                    {
  270.                                    "name":" Adding the Messaging Manager",
  271.                                    "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/05. Determining Lifecycle State/02. Adding the Messaging Manager.mp4",
  272.                                    "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/05. Determining Lifecycle State/02. Adding the Messaging Manager.vtt"
  273.                                    },
  274.                                    {
  275.                                    "name":" Lifecycle-driven Asynchronous Operations",
  276.                                    "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/05. Determining Lifecycle State/03. Lifecycle-driven Asynchronous Operations.mp4",
  277.                                    "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/05. Determining Lifecycle State/03. Lifecycle-driven Asynchronous Operations.vtt"
  278.                                    },
  279.                                    {
  280.                                    "name":" We're Leaking Connections",
  281.                                    "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/05. Determining Lifecycle State/04. We're Leaking Connections.mp4",
  282.                                    "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/05. Determining Lifecycle State/04. We're Leaking Connections.vtt"
  283.                                    },
  284.                                    {
  285.                                    "name":" Lifecycle State",
  286.                                    "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/05. Determining Lifecycle State/05. Lifecycle State.mp4",
  287.                                    "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/05. Determining Lifecycle State/05. Lifecycle State.vtt"
  288.                                    },
  289.                                    {
  290.                                    "name":" Verifying State in Asynchronous Operations",
  291.                                    "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/05. Determining Lifecycle State/06. Verifying State in Asynchronous Operations.mp4",
  292.                                    "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/05. Determining Lifecycle State/06. Verifying State in Asynchronous Operations.vtt"
  293.                                    },
  294.                                    {
  295.                                    "name":" The Leak Is Fixed",
  296.                                    "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/05. Determining Lifecycle State/07. The Leak Is Fixed.mp4",
  297.                                    "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/05. Determining Lifecycle State/07. The Leak Is Fixed.vtt"
  298.                                    },
  299.                                    {
  300.                                    "name":" Summary",
  301.                                    "video":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/05. Determining Lifecycle State/08. Summary.mp4",
  302.                                    "subtitle":"programming/Android/Android Apps with Kotlin- ViewModel and Lifecycle/05. Determining Lifecycle State/08. Summary.vtt"
  303.                                    }
  304.                        ]
  305.                        }
  306.      ]
  307.    }
  308.  ]
  309. }
  310.  
PD: El archivo JSON tiene 5 cursos y cada uno sus capitulos y videos correspondientes, realmente seria un archivo muy largo pero subo un ejemplo de esos para poder entender como podria resolverlo con dos cursos.
CODIGO AJAX
Código
  1. let nombreCursos, cantidadCursos, i, datos, datosRecibidos, cantidadCapitulos;
  2. let cantidadVideos, texto, texto2;
  3. const xhttp = new XMLHttpRequest();
  4. xhttp.open('GET', 'js/provider.json', true);
  5. xhttp.send();
  6. xhttp.onreadystatechange = function(response){
  7.    if(this.readyState == 4 && this.status == 200){
  8.        //console.log(this.responseText);
  9.        datos = JSON.parse(this.responseText);
  10.        if (xhttp.readyState==4 && xhttp.status==200) {
  11.            datosRecibidos = datos.courses;
  12.            for (i=0; i<datosRecibidos.length;i++) {
  13.                cantidadCursos = [i];
  14.                nombreCursos = datosRecibidos[i]['name'];
  15.                cantidadCapitulos = datosRecibidos[i]['list'].length;
  16.                cantidadVideos = datosRecibidos[i]['list'];
  17.                texto = JSON.stringify(nombreCursos);
  18.                texto2 = JSON.stringify(cantidadVideos);
  19.                $("#videos").append("<tr><td>"+texto+"</td><td>"+texto2+"</td></tr>");
  20.  
  21.            }
  22.        }
  23.    }
  24. }
  25.  
  26.  
  27.  

PROBLEMA:
Si yo tengo un menu como el siguiente..

Yo requiero es que si le undo a Curso 1, el me muestre de manera ordenada en una tabla todos los capitulos de ese curso y sus videos, de la siguiente manera.



Si yo le undo a Curso 2, el va a ocultar el curso 1 y los demas y solo dejara visible el curso seleccionado.
Realmente no estoy pidiendo que me den todas las respuestas al problema, si no que me ayuden a entender como podria resolverlo, o que temas podrian servirme para poder entender bien como poder hacerlo, estoy aprendiendo y todo lo que me sirva a mi aprendizaje es bueno.

PD: No se si me estoy enredando o la respuesta puede estar en lo que ya hice con el for, pero realmente no he entendido bien como poder resolver esa ultima parte, Gracias a aquel que me pueda colaborar.
3  Programación / PHP / Problema insert de datos en PHP en: 8 Febrero 2020, 19:41 pm
Buenas a todos, les pido el favor para una colaboracion para un tema que estoy haciendo y no se como solucionarlo.
ESTE ES EL INDEX:

Resulta que estoy realizando un formulario donde digito informacion acerca del usuario que voy a ingresar, el numero de factura, iva, fecha de creacion de la factura y fecha de entrega. Esa informacion no necesito repetirla, porque es unica.
Pero la informacion que tengo a la izquierda es el codigo y cantidad del producto que deseo anotar, Ahora.. Abajo tengo un boton llamado "+", el cual se encarga de cojer esos dos inputs del lado de la izquierda y repetirlos, para poder digitar otros codigos de productos, y todo eso me da normal...
El problema que veo es que al momento de yo mandar los datos a travez del boton "Submit", el los manda pero no se como hacer para que en el sistema del INSERT se pueda digitar las variables que ya estan asociadas (Numero de factura, Usuario, Iva, Fecha de Creacion y Entrega), con las que estoy repitiendo (Codigo y Cantidad).

PD: Ya encontre como mandar un grupo de array por php a mysql que seria asi
Código
  1. <?php
  2. include("../conexion_mysql.php");
  3. $numfact = $_POST['numfact'];
  4. $codigo  = $_POST['codigo'];
  5. $cantid  = $_POST['cantidad'];
  6. $usuari  = $_POST['user'];
  7. $iva = $_POST['iva'];
  8. $fc = $_POST['fc'];
  9. $fe = $_POST['fe'];
  10. $vtotal  = 0;
  11. $cadena  = "INSERT INTO factura (num_factura, codigo, usuario, cantidad, iva, fechacrea, fechaentre, vtotal) VALUES ";
  12.  
  13. for ($i=0; $i < count($codigo); $i++) {
  14. $cadena.= "(".$numfact[$i]."', '".$codigo[$i]."', '".$usuari[$i]."', '".$cantid[$i].",".$iva[$i]."', '".$fc[$i]."', '".$fe[$i]."', '".$vtotal[$i]."'),";
  15. }
  16.  
  17. echo json_encode(array('cadena' => $cadena));
  18. $cadena_final = substr($cadena, 0,-1);
  19. $cadena_final.=";";
  20. $sql = mysqli_query($conectar, $cadena_final);
  21. if ($sql) {
  22. header("location:index.php");
  23. }else {
  24. echo 'Error';
  25. }
  26. $mysqli = mysqli_close($conectar);
  27.  
  28. ?>

Pero ovbiamente al momento de mandar me sale un error que este.
Código:
<br />
<b>Notice</b>:  Trying to access array offset on value of type int in <b>/opt/lampp/htdocs/MiPagina/php/Facturacion/validarfactu.php</b> on line <b>15</b><br />
<br />
<b>Notice</b>:  Undefined offset: 1 in <b>/opt/lampp/htdocs/MiPagina/php/Facturacion/validarfactu.php</b> on line <b>15</b><br />
<br />
<b>Notice</b>:  Undefined offset: 1 in <b>/opt/lampp/htdocs/MiPagina/php/Facturacion/validarfactu.php</b> on line <b>15</b><br />
<br />
<b>Notice</b>:  Undefined offset: 1 in <b>/opt/lampp/htdocs/MiPagina/php/Facturacion/validarfactu.php</b> on line <b>15</b><br />
<br />
<b>Notice</b>:  Undefined offset: 1 in <b>/opt/lampp/htdocs/MiPagina/php/Facturacion/validarfactu.php</b> on line <b>15</b><br />
<br />
<b>Notice</b>:  Undefined offset: 1 in <b>/opt/lampp/htdocs/MiPagina/php/Facturacion/validarfactu.php</b> on line <b>15</b><br />
<br />
<b>Notice</b>:  Trying to access array offset on value of type int in <b>/opt/lampp/htdocs/MiPagina/php/Facturacion/validarfactu.php</b> on line <b>15</b><br />
{"cadena":"INSERT INTO factura (num_factura, codigo, usuario, cantidad, iva, fechacrea, fechaentre, vtotal) VALUES ('01', '1234', 'usuario', '5,5', '2020-02-08', '2020-02-20', ''),('', '1235', '', '6,', '', '', ''),"}

Utilizo Jquery por el metodo JSON para mandar los datos de html a php
el HTML es este:
Código
  1. <section class="cuerpo">
  2. <form method="POST" action="validarfactu.php" class="factura">
  3. <div class="container">
  4. <div class="row">
  5. <div class="col-12 col-sm-6">
  6. <br><label for="nf">Numero de Factura</label>
  7.    <br><input type="number" id="nf" name="numfact[]">
  8.    <br><label for="code">Cliente</label>
  9.    <br><select name="user[]">
  10.     <option>Seleccione el cliente</option>
  11.     <?php
  12.     $sql = "SELECT usuario FROM usuario";
  13.     $consulta = mysqli_query($conectar, $sql);
  14.     while ($mover = mysqli_fetch_array($consulta)){
  15.     ?>
  16.     <option value="<?php echo $mover['usuario']; ?>"><?php echo $mover['usuario']; ?></option>
  17.    <?php }?>
  18.    </select>
  19.    <br><label for="iva">IVA</label>
  20.    <br><input type="number" id="iva" name="iva[]">
  21.    <br><label for="fc">Fecha de Creacion</label>
  22.    <br><input type="date" id="fc" name="fc[]">
  23.    <br><label for="fe">Fecha de Entrega</label>
  24.    <br><input type="date" id="fe" name="fe[]">
  25. </div>
  26.  
  27. <div class="col-12 col-sm-6 repetido">
  28.    <label for="code">Codigo</label>
  29.    <br><input id="code" type="number" name="codigo[]">
  30.    <br><label for="cantidad">Cantidad</label>
  31.    <br><input type="number" id="cantidad" name="cantidad[]">
  32. </div>
  33.  <button type="submit" class="btn btn-primary submit">Submit</button>
  34. </div>
  35. </div>
  36. </form>
  37. <center><input type="submit" id="agregar" value="+"></center>
  38. </section

el Jquery
Código
  1. // CLONAR Y ELIMINAR INPUT
  2.  
  3. $(document).ready(function(e){
  4. // VARIABLES
  5. var html = '<center><div><label for="code">Codigo</label><br><input id="code" type="number" name="codigo[]"><br><label for="cantidad">Cantidad</label><br><input type="number" id="cantidad" name="cantidad[]"><br> <hr><button id="exit">X</button></div></center>';
  6. // CLONAR
  7. $("#agregar").click(function(){
  8. $(".repetido").append(html);
  9. });
  10. // ELIMINAR
  11. $(".repetido").on('click','#exit',function(){
  12. $(this).parent('div').remove();
  13. });
  14. });
  15.  
  16.  
  17.  
  18. // PETICION TIPO AJAX
  19.  
  20. jQuery(document).on('submit','.factura',function(event){
  21. event.preventDefault();
  22. jQuery.ajax({
  23. url: 'validarfactu.php',
  24. type: 'POST',
  25. dataType: 'json',
  26. data: $(this).serialize(),
  27. })
  28. .done(function(respuesta){
  29. console.log(respuesta);
  30. if(!respuesta.error) {
  31. alert("Los datos se ingresaron correctamente");
  32. }else {
  33. alert("Los datos NO se ingresaron correctamente");
  34. }
  35. })
  36. .fail(function(resp){
  37. console.log(resp.responseText);
  38. })
  39. .always(function(){
  40. console.log("complete");
  41. })
  42. });

Alguna persona que me pueda colaborar?, por favor gracias  :D
4  Programación / PHP / Re: Problema con clonar input y traer datos. en: 30 Diciembre 2019, 21:54 pm
Buenas tardes, AlbertoBSD. Claro en algunos codigos PHP, tengo incluido codigo para proteger al SQL Injection si no que este es un proyecto personal de aprendizaje que estoy haciendo, soy muy tirado a la practica y aprendiendo poco a poco la teoria hasta que me meta a estudiar la Universidad. Si me puedes ayudar con lo que estoy haciendo mal en el codigo excelente, gracias de todas maneras.

@?0!,5^34. Exacto, yo el CSS y el JS lo tengo dentro de un archivo aparte y los tengo anexados atravez de sus directorios, ese codigo javascript que tenia hay mismo en el documento era porque estaba metiendolo en donde estaban los codigos javascript y no me queria funcionar, pero ya resolvi eso. Ya comente lo de las sentencias preparadas arriba en mi comentario, Lo de parsear el input recibido en PHP y tambien envio para reducir la carga del servidor, eso lo estoy mirando en tutoriales para aprender, pues hay estuve mirando una libreria que uno indexaba al HTML para que hiciera eso de parsear.
5  Programación / PHP / Problema con clonar input y traer datos. en: 27 Diciembre 2019, 20:41 pm
Buenas tardes a todos, en el dia de hoy vengo a pedirles una colaboracion con un codigo que no me quiere funcionar.

Tengo una tabla, donde yo quiero clonar la fila dependiendo de si la persona desea agregarlo con un (+), la fila principal tiene una funcion Jquery que hace que al yo digitar un codigo el trae de la base de datos la informacion como (Descripcion y valor unitario) y la pone en el input correspondiente, ahora todo esto me resulta, y todo esta bien. Pero al momento de yo crear una fila nueva el trae por defecto lo que tenga la primer fila, y si yo voy a traer la informacion de un producto por medio del codigo no tiene activado el codigo Jquery, que podria hacer en ese caso?.

CODIGO HTML
Código:
<div class="container">
  <div class="row">
    <div class="col-12">
  <form >
   <h3>Agregar Pedido</h3>
<select name="cc" class='mi-selector'>
          <option>Seleccione Cedula:</option>
            <?php
               $sql = "SELECT Cedula FROM Usuario";
               $consulta = mysqli_query($conectar, $sql);
            while ($mostrar = mysqli_fetch_array($consulta)) {
                ?>
          <option value="<?php echo $mostrar['Cedula'];?>"><?php echo $mostrar['Cedula'];?></option>
            <?php }?>
         </select>
    <table class="tabla">
     <tr class="fila-fija">
                  <td><input type="number" name="codigo[]" class="codigo"><span class="resultado"></span></td>
                  <td><input type="text" disabled="" name="descripcion[]" class="descrip" value="" placeholder="Descripcion"></td>           
                  <td><input type="text" name="Unidad[]" placeholder="Unidad"></td>
                  <td><input type="text" name="cantidad[]" placeholder="Cantidad"></td>
                  <td><input type="number" disabled="" name="vunitario[]" class="vunitario" value="" placeholder="Vunitario"></td>
                  <td class="eliminar"><input type="button"   value="Menos -"/></td>
     </tr>
    </table>
      <table>
<tr>
<td><input type="number" name="iva" placeholder="IVA"></td>
<td><input type="date" name="fecha"></td>
</tr>
   </table>
   <div class="btn-der">
     <input type="submit" name="insertar" value="Guardar" class="btn btn-info"/>
     <button id="adicional" name="adicional" type="button" class="btn btn-warning"> Más + </button>
   </div>
  </form>
</div>
</div>
</div>

JS:
Código:
<script type="text/javascript">
  // RELLENAR CAMPOS
$(document).ready(function() {
$(".codigo").focus();
$(".codigo").keydown(function(e) {
  ;
var url="getdatos.php";
$.getJSON(url,{ _num1: $(".codigo").val() }, function(clientes){
$.each(clientes, function(i,cliente) {
$(".vunitario").val(cliente.vunitario);
$(".descrip").val(cliente.descripcion);

if(cliente.resultado == "2") {
  $(".resultado").css("color","red");
  $(".resultado").text("codigo no disponible");
} else {
  $(".resultado").css("color","green");
  $(".resultado").text("codigo disponible");
}
});
});
});
});
</script>

// CLONAR UN INPUT
        $(function(){
// Clona la fila oculta que tiene los campos base, y la agrega al final de la tabla
$("#adicional").on('click', function(){
$(".tabla tbody tr:eq(0)").removeClass('fila-fija').clone(true).appendTo(".tabla");
});
// Evento que selecciona la fila y la elimina
$(document).on("click",".eliminar",function(){
var parent = $(this).parents().get(0);
$(parent).remove();
});
});

PHP: TRAER LOS DATOS PARA RELLENARLOS
Código:
<?php
$cod = $_GET['_num1'];
if (!empty($cod)) {
    comprobar($cod);
}
function comprobar($cod)
{
    include("../conexion_mysql.php");
    $sql = "SELECT * FROM Productos WHERE Codigo = '$cod'";
    $consulta = mysqli_query($conectar, $sql);
    $clientes = array();
    $row = mysqli_num_rows($consulta);
    if ($row == 0) {
        $clientes[] = array('codigo' => 'No hay nada', 'descripcion' => 'No hay nada', 'vunitario' => '0', 'resultado' => 2);
    } elseif ($row > 0) {
        while ($contar = mysqli_fetch_row($consulta)) {
            $codigo=$contar[0];
            $descripcion=$contar[1];
            $vunitario=$contar[3];
            $clientes[] = array('codigo' => $codigo, 'descripcion' => $descripcion, 'vunitario' => $vunitario, 'resultado' => 1);
        }
    }
    $json_string = json_encode($clientes);
    echo $json_string;
}
?>

Muchas gracias, espero me puedan colaborar :)
6  Programación / PHP / [Pregunta] Inicio de Sesion y subir imagenes en php a mysqli en: 21 Octubre 2019, 03:13 am
Buenas noches, quisiera que me ayudaran por favor en lo siguiente:

• Tengo un sistema donde la persona se registra y si todo salio bien le da la opcion de loguearse para entrar a la pagina web, hasta hay todo esta bien.
• Cuando se loguea entra al perfil, y desde hay puede ver las otras opciones que maneja la pagina (menu).
• Lo que deseo es que cuando la persona se registre y se loguee por primera vez, antes de que le aparezca el perfil, tenga que llenar obligatoriamente unos datos para actualizar su perfil como son (nombre, apellido, telefono, direccion, foto de perfil, mensaje personal).
• Cuando la persona digite esta informacion, hay si pueda ver el perfil con todo organizado.
• El problema es que no se como hacer que la imagen pueda ser guardada en la base de datos y adicional como hacer que la persona apenas se registre y loguee por primera vez le aparezca esta pagina como inicio para poder seguir.
• de ante mano les agradezco, manejo un sistema basico de CRUD (html, css, php y mysqli)
• Si necesitan codigos de archivos me dicen cuales o me dicen mas o menos que temas necesito para saber estas dos incognitas que tengo, gracias.
7  Programación / PHP / Re: Problema con PHP y HTML en: 10 Octubre 2019, 01:09 am
Buenas, el problema es que no tengo relacionado la tabla Clientes con Productos.
La tabla Clientes, tiene 5 atributos (Cedula, Nombre, Direccion, Telefono y Fecha).
La tabla Productos, tiene 5 atributos (Codigo, Descripcion, Cantidad, Vunitario y Vtotal)
Las llaves primarias de ambos son Cedula y Codigo.
No he manejado JOIN porque no lo conozco y segun lo que vi en tutoriales necesitaria tener ambas tablas relacionadas para hacer eso.
En el submit tengo el boton "ENVIAR" y "Regresar" que seria a la pagina principal de mi web.
Me tocaria verificar entre ambas tablas cual seria la union entre los campos y aplicar el JOIN pero no se como seria aplicar el JOIN y que parte del codigo llegaria a reemplazar.

Gracias!
8  Programación / PHP / Problema con PHP y HTML en: 9 Octubre 2019, 20:23 pm
Buenas tardes a todos, hoy vengo a compartir y me puedan ayudar de un problema que se me esta presentando en un sistema CRUD de facturacion basico que estoy haciendo.

Utilizo php para enviar los datos y conectar con mysql, que es donde llegan en unas tablas y luego poder ser mostradas en una tabla html. Verificando mi mysql los registros llegan y no se repiten, pero cuando llegan dichos registros a mi tabla html si se repiten cada vez que ingreso un registro nuevo, quisiera saber porque pasa. Gracias

Este es el codigo del formulario donde se envian los datos:
Código
  1. <form method="POST" action="datos.php">
  2. <div class="container facturacion1">
  3. <div class="row">
  4.    <div class="col-12 factura">
  5.      <h1>SISTEMA DE FACTURACION BASICO</h1><br>
  6.    </div>
  7.  
  8. <div class="col-12 col-md-6 facturacion datos2">
  9.    <label>Cedula:</label><br>
  10.    <input type="text" name="cc" placeholder="Digite su cedula"><br>
  11.    <label>Nombre:</label><br>
  12.    <input type="text" name="name" placeholder="Digite su nombre"><br>
  13.    <label>Telefono:</label><br>
  14.    <input type="text" name="phone" placeholder="Digite su celular"><br>
  15.    <label>Direccion:</label><br>
  16.    <input type="text" name="direccion" placeholder="Digite su direccion"><br>
  17.    <label>Fecha:</label><br>
  18.    <input type="date" name="fecha" placeholder="Digite la fecha">
  19.  </div><br><br>
  20.  
  21.    <div class="col-12 col-md-6 facturacion">
  22.        <label>Codigo:</label><br>
  23.        <input type="text" name="code" placeholder="Codigo del Producto"><br>
  24.        <label>Descripcion:</label><br>
  25.        <input type="text" name="descripcion" placeholder="Descripcion del Producto"><br>
  26.        <label>Cantidad:</label><br>
  27.        <input type="text" name="cantidad" placeholder="Cantidad"><br>
  28.        <label>Valor Unitario:</label><br>
  29.        <input type="text" name="vunitario" placeholder="Valor unitario del Producto">
  30.    </div><br><br>
  31.    <div class="col-12 facturacion botones1">
  32.      <input type="submit" name="envia" value="Enviar"><a href="../../index.php"><input type="submit" name="regresar" value="Regresar"></a>
  33.    </div>
  34.  
  35. </div>
  36. </div>
  37. </form>


Codigo donde recibe los datos
Código
  1. <?php
  2.  
  3. include("conexion_factura.php");
  4.  
  5. $cedula       = $_POST['cc'];
  6. $nombre       = $_POST['name'];
  7. $telefono     = $_POST['phone'];
  8. $direccion    = $_POST['direccion'];
  9. $fecha        = $_POST['fecha'];
  10. $codigo       = $_POST['code'];
  11. $descripcion  = $_POST['descripcion'];
  12. $cantidad     = $_POST['cantidad'];
  13. $vUnitario    = $_POST['vunitario'];
  14.  
  15. /* VALIDAR SI LOS DATOS EXISTEN */
  16. $verificar = "SELECT * FROM Clientes, Productos WHERE
  17. Nombre = '$nombre',
  18. Cedula = '$cedula',
  19. Telefono = '$telefono'
  20. Direccion = '$direccion'
  21. Fecha = '$fecha'
  22. Codigo = '$codigo'
  23. Descripcion = '$descripcion'
  24. Cantidad = '$cantidad'
  25. Vunitario = '$vUnitario'";
  26. if(mysqli_num_rows($verificar) > 0) {
  27. print 'Los datos ya existen';
  28. }
  29. /* SI LOS DATOS NO EXISTEN SE INSERTA */
  30. else {
  31.  
  32. $clientes = "INSERT INTO Clientes (Cedula, Nombre, Telefono, Direccion, Fecha) VALUES ('$cedula',            '$nombre',  '$telefono', '$direccion', '$fecha')";
  33.  
  34. $productos = "INSERT INTO Productos (Codigo, Descripcion, Cantidad, Vunitario) VALUES ('$codigo', '$descripcion', '$cantidad', '$vUnitario')";
  35.  
  36. $verificacion = mysqli_query($conectar, $clientes);
  37.  
  38. $verificacion2 = mysqli_query($conectar, $productos);
  39.  
  40. if ($verificacion && $verificacion2) {
  41. header("location: factura.php");
  42. }
  43. else {
  44. header("location: index.php");
  45. }
  46.  
  47. }
  48.  
  49. ?>


Codigo de la tabla html donde llegan los datos procedentes de la tabla mysql la cual muestra doble registro

Código
  1.   <?php
  2.     include("conexion_factura.php");
  3.  
  4.     ?>
  5.  
  6. <div class="container">
  7.  <div class="row">
  8.    <div class="col-12">
  9.  
  10.  <table class="table table-dark">
  11.  <thead>
  12.    <tr>
  13.      <th scope="col">Cedula</th>
  14.      <th scope="col">Nombre</th>
  15.      <th scope="col">Telefono</th>
  16.      <th scope="col">Direccion</th>
  17.      <th scope="col">Fecha</th>
  18.      <th scope="col">Codigo</th>
  19.      <th scope="col">Descripcion</th>
  20.      <th scope="col">Cantidad</th>
  21.      <th scope="col">Vunitario</th>
  22.      <th scope="col">Vtotal</th>
  23.    </tr>
  24.  </thead>
  25.  <tbody>
  26. <?php
  27. $consulta = "SELECT Cedula, Nombre, Telefono, Direccion, Fecha FROM Clientes";
  28. $sql = mysqli_query($conectar, $consulta);
  29. while ($mostrar = mysqli_fetch_array($sql)) {
  30.  
  31. $consulta2 = "SELECT Codigo, Descripcion, Cantidad, Vunitario, Vtotal FROM Productos";
  32. $sql2 = mysqli_query($conectar, $consulta2);
  33.  while ($mostrar2 = mysqli_fetch_array($sql2)) {
  34. ?>
  35.  
  36. <tr>
  37.  <td><?php echo $mostrar['Cedula']?></td>
  38.  <td><?php echo $mostrar['Nombre']?></td>
  39.  <td><?php echo $mostrar['Telefono']?></td>
  40.  <td><?php echo $mostrar['Direccion']?></td>
  41.  <td><?php echo $mostrar['Fecha']?></td>
  42.  <td><?php echo $mostrar2['Codigo']?></td>
  43.  <td><?php echo $mostrar2['Descripcion']?></td>
  44.  <td><?php echo $mostrar2['Cantidad']?></td>
  45.  <td><?php echo $mostrar2['Vunitario']?></td>
  46.  <td><?php echo $mostrar2['Vtotal']?></td>
  47. </tr>
  48.  
  49. <?php
  50.  
  51. }
  52. }
  53. ?>
  54.  
  55.  </tbody>
  56. </table>
  57. <button><a href="index.php">Regresar</a></button>
  58. </div>
  59. </div>
  60.  </div>


Gracias, espero que me puedan colaborar :)
9  Programación / Desarrollo Web / Re: Error en cookies de Google en: 9 Octubre 2019, 20:15 pm
Listo, Gracias por la respuesta :)
10  Programación / Desarrollo Web / Error en cookies de Google en: 6 Octubre 2019, 07:45 am
Buenas noches, hoy vengo a comentarles un problema que me esta saliendo en mi sitio web.

Resulta que estoy haciendo una pagina web con HTML5, PHP, CSS y javascript de todo lo que he estado aprendiendo y le he hecho de todo un poco, al parecer no se que estoy haciendo mal y me aparecieron en la console de google unos warnings y no se que puede ser, aqui se los dejo.

Código:
A cookie associated with a cross-site resource at http://google.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
contacto.html:1 A cookie associated with a cross-site resource at https://google.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
contacto.html:1 A cookie associated with a cross-site resource at http://www.google.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
contacto.html:1 A cookie associated with a resource at http://google.com/ was set with `SameSite=None` but without `Secure`. A future release of Chrome will only deliver cookies marked `SameSite=None` if they are also marked `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5633521622188032.

Estos warnings me aparecieron justo en mi pagina de contacto.html.


Espero me puedan colaborar, gracias :)
Páginas: [1] 2 3
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines