Questions tagged as 'javascript'

1
answer

Click and Toggle with jquery, 1-click delay

I have a little problem that I do not know how to solve, I have a div, which when clicking on it it adds something with load (), and it alternates this event with toggle (), to add and remove too, only when I give the first click it does not imm...
asked by 06.08.2018 / 22:14
0
answers

How to make a canvas with scribbled text?

I've seen that a library called FabricJS has a feature that lets you insert text on the canvas and edit it, not through a input[type=text] and yes within the canvas itself. Is there any special functionality of canvas i...
asked by 13.08.2018 / 20:03
0
answers

Open Modal on a component within several other components. What is the best practice?

<app-loop4 [data4]="data4"></app-loop4> //O que há dentro do component: app-loop4 <div *ngFor="let d4 of data4"> <app-loop3 [d4]="d4"></app-loop3> </div> //O que há dentro do c...
asked by 06.08.2018 / 13:46
1
answer

Hello World at React.JS does not work!

I'm trying to figure out a "Hello World!" no React.JS Look at my code, it just does not work: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <script src="library/react.production.min.js"></scri...
asked by 06.08.2018 / 11:59
0
answers

Error passing parameter

I will try to detail the question as much as possible, but I do not know how to display an error in this situation, if anyone can help even in this, I thank you. I'm sending data via POST with Ajax, but one of the fields does not pass value t...
asked by 06.08.2018 / 11:17
2
answers

How can I check if there are others inside one string? [duplicate]

In javascript, I want to check on a string for at least one of the other strings: .com, .edu, .uk, etc ... if one of these strings exist in the main string, I want to return true.     
asked by 05.08.2018 / 21:43
1
answer

Line break with Onclick JavaScript

I have a function, which when clicking changes an element, but also ends up breaking the line, already tried to solve using preventDefault() , but without success. When clicked on the fa-user-secret icon, onclick and line...
asked by 03.08.2018 / 17:48
0
answers

Call function in Form [duplicate]

How can I do to call a PHP function within a JavaScript function? Below, follow my code: <script language="Javascript"> function cadastrarpapel() { <?php $sql = msyqli_query($conn, "INSERT INTO cadastropapel (tipopap...
asked by 05.08.2018 / 04:36
0
answers

navigator, vibrate - html5

I'm developing an html5 chat for my company, and I'm using the navigator.vibrate library to activate the mobile vibration mode. Everything works when I'm focusing on the browser tab with the application. The problem I have is when the phone is i...
asked by 05.08.2018 / 18:08
0
answers

Get "waves" of frequency of sound or music in Streaming

I was looking at this other post (link below at the end) in the community and it caught my attention, I tried to use it for Streaming but simply did not even want to play the audio, and I remember that I used to do something like that, a small e...
asked by 05.08.2018 / 02:36