PHP Classes

File: js/code/articles.js

Recommend this page to a friend!
  Classes of António Lira Fernandes   PHP CMS Website   js/code/articles.js   Download  
File: js/code/articles.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP CMS Website
Content management system for publishing articles
Author: By
Last change:
Date: 2 years ago
Size: 608 bytes
 

Contents

Class file image Download
const seeArticlesListCat1 = async() =>{ //console.log("aaaa"); const response = await fetch(window.location.protocol + "//" + window.location.host + "/2do/"+`public/artigos/1/lista`) const servicos = await response.json() let strHtml = ` <option value=0>(Escolha um Artigo)</option> ` if (servicos[0].numElements > 0) { for (const servico of servicos) { strHtml += ` <option value=${servico.codArtigo}>${servico.Titulo}</option> ` } } document.getElementById("codArtigo").innerHTML = strHtml }