Questions tagged as 'html'

2
answers

Regular expression to remove comments JS, HTML and CSS

I need a regular expression that works to remove comments from HTML, JS and CSS. The biggest problem I find is in the line comments. As in the project where I work there is a lot of JS to fire in HTML, if I try to detect // until end of line,...
asked by 08.08.2018 / 11:56
0
answers

Problem with the ng-include

I was watching videos to learn the angularjs for web pages, I found a problem with the ng-include , I do not know if the way or the video is old, my code is: Index.html : <div ng-include="menuSuperior"></div> app.js :...
asked by 25.06.2018 / 17:55
1
answer

I do not take the styles correctly when including a jsp

I have a jsp, in which styles work for me, but when I add <%@ include file="usuarios.jsp" %> The page is untidy and I do not take the styles. How can I solve that? The result code is as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD...
asked by 13.06.2018 / 10:27
0
answers

Fill HTML table with Javascript

I'm having a lot of problems with what I'm trying to do. I have gone around and I do not know if it is possible, that having a table created in HTML, I can fill in the days of each month with JavaScript. The HTML code that I have is the followin...
asked by 26.06.2018 / 18:38
0
answers

Insert in database with JavaScript and php

I'm trying to insert into the database. The operation would be to give the button "Apuntarse" and that by inserting the user and the id of the hang-up to the database at the same time that the button is deactivated and the "Unplug" button is act...
asked by 08.06.2018 / 11:34
0
answers

How to redirect data to another javascript

I tell you, I have a calendar project, calendar, so that it is "indexed" in a body_agenda.php file, which determines some higher buttons that if you press one you pass to the calendar for weeks, if you press another one to the days ... Well,...
asked by 09.06.2018 / 17:18
1
answer

Confirm Dialog when you are closing a browser window

Hello, my question is how can I make a dialogue message when a user wants to close the page to confirm if they want to leave or want to stay on the site, I tried in many ways that I saw by other posts and none It works for me, thank you very muc...
asked by 08.06.2018 / 13:17
0
answers

How to correctly validate an input onkeypress using javascript?

I've been practicing with events in javascript, because I'm tired of placing onclick, onfocus or other event as an attribute in HTML tags and I wanted to share this code, can it improve in terms of security or can it be shorter? divKeys=...
asked by 25.05.2018 / 02:52
1
answer

How can I add a header that is repeated in all the pages?

As my question says, I use the tcpdf library and here I leave the code: <?php require_once('tcpdf/config/lang/eng.php'); require_once('tcpdf/tcpdf.php'); require_once('../config.php'); $pdf = new TCPDF('P', 'mm', 'legal', tr...
asked by 07.06.2018 / 07:00
1
answer

HTML form to search and edit data in Google Sheets

I have a form in html to edit or search data in a sheet, everything works but after clicking the edit button or when I try to do two searches in a row the page disappears and I have to manually reload. I would like to know how to do that after c...
asked by 06.06.2018 / 18:18