Questions tagged as 'javascript'

0
answers

Socket.IO Problem after an active time

Hello, first of all I apologize for the code, I am giving maintenance and as soon as I can solve this problem I will work on it better with OO, MVC etc. My problem is, I'm creating an auction room where everyone in it can bid, it's already wo...
asked by 14.06.2018 / 03:25
0
answers

indentation with highlight.js

I'm having problems with the indentation with highlight.js, the code is being generated by marked.js. Has anyone gone through this or do you know any solutions? index.html: <!-- highlight.css --> <link rel="stylesheet" href="https:...
asked by 14.06.2018 / 04:23
0
answers

delete record that is foreign key in another table

I have a php project in the MVC framework. I need to confirm the deletion of records with records in another table. In Calls the user can record evolutions of this service. By excluding a precise call test if there is any evolution in it. Here i...
asked by 13.06.2018 / 15:34
1
answer

How to export values from a form to PDF with the jsPDF plugin?

I'm working on a project that needs to transform a HTML page into a PDF file. I'm using the jsPDF plugin. There are many examples of how to convert htmls to pdf, "but" , all the examples I saw, only use text tag as p - h1 - span ....
asked by 13.06.2018 / 16:30
1
answer

Password Validation with JS

I have a code and in it I have a JavaScript (which was passed by the teacher); this code is a form and I need to validate the reported passwords. However, I am putting in the same passwords and also different passwords and I do not see any in...
asked by 19.06.2018 / 15:05
2
answers

How to receive JSON data? [closed]

I want to retrieve a JSON code for HTML with jQuery. How can I do this? And how can I use CSS with JSON data? Here is the JSON code. { "version": "0.1.1", "box_name": "A Fazenda - Ranking", "data": [ { "__id": "f8c3500f39017...
asked by 19.06.2018 / 20:37
1
answer

Javascript validation bug

Hello. I have developed a process bar with a next button and preview, where clicking the next bar will reduce the processes. I have 2 fields on the screen, "position" and "totalItems", where position must be less than or equal to totalItems....
asked by 12.06.2018 / 16:14
0
answers

Doubt about Javascript methods

Curiosity: A) Is there any behavior difference between the three structures below? 1) function Guerra() { war: { luta: function() { return true; } } } 2) function Guerra() {} var war = new Guerra(); war.prototype...
asked by 18.06.2018 / 16:53
1
answer

Typescript not allowing the use of the files property

I have a problem with ionic, in which I use the .files property in an id of a <input type="file"> element, like this: <input type="file" id="images" multiple> this.register.images = document.getElementById('images').f...
asked by 18.06.2018 / 15:35
1
answer

Problem installing boostrap

I'm trying to install Bootstrap using NodeJS through the terminal and the following error is displayed: npm ERR! code ETARGET npm ERR! notarget No matching version found for jquery@next npm ERR! notarget In most cases you or one of your depend...
asked by 12.06.2018 / 19:47