Questions tagged as 'javascript'

1
answer

FormData () object for sending files via ajax Jquery

I need to send data from a form via ajax to the server (php). I used the FormData () object but without success. Part of my jquery: var formdata = new FormData($("#myform")); var link = "form/insert"; $.ajax({ type...
asked by 27.10.2015 / 00:08
3
answers

Check if the mouse is not in the element

I want to run a code, but this code can only be executed if the mouse is not on a div . I tried the .mouseout () but it checks to see if the mouse is gone, is not it, I need to check if the mouse at that moment is not in there, if it i...
asked by 17.12.2015 / 18:57
2
answers

Variable control with Javascript for html

I have an HTML code with JavaScript that when clicking on top; If x == 1 , it executes task A and variable arrow javascript x = 0 , otherwise it executes task B and variable arrow javascript x = 1 , however variab...
asked by 07.12.2015 / 13:25
4
answers

How to use Json in an html

What about people? I'm new here, could you help me ... is returning "NaN"! <!DOCTYPE html> <html> <body> <h1>Customers</h1> <div id="id01"></div> <script> var xmlhttp = new XMLHtt...
asked by 02.12.2015 / 14:28
3
answers

When we include a script or CSS file in the HTML document, does an HTTP request happen?

For example: <script src="file.js" > </script> or <link rel="stylesheet" href="style.css" > Doubt: When we do this, does request HTTP occur? Would it be more performative if I did not do this, and put e...
asked by 02.03.2017 / 02:24
1
answer

How does the process of rendering web pages by the browser work? [closed]

I know the DOM tree exists, but I do not know how rendering works. I know that learning this is important.     
asked by 05.03.2017 / 04:18
2
answers

How to know key values in Javascript?

I'm developing a basic game in Javascript , and the player has some actions, I've already implemented ActionListener , but I'm having difficulty finding key values to use in ActionListener . I was picking up the values of each...
asked by 22.02.2017 / 12:33
1
answer

How do I make a text editor in a TinyMCE-style textarea?

I would like to know what exactly I should study to be able to transform a textarea into a WYSIWYG text editor. Logically I know that I should use Javascript , but I can not imagine how the styles are applied in real time in the content with...
asked by 24.03.2017 / 20:58
3
answers

Divide a date into two parts

I'm making a calendar using MySQL, html, JS and PHP. This calendar is for reserving the ballroom here in the building. There may be two reservations the same day, morning and afternoon that would be "00:00 to 11:59" and "12:00 to 23:59"....
asked by 29.12.2015 / 18:44
2
answers

Javascript syntax error

I am testing a code snippet here in javascript and it is giving syntax error on line 12. It says that there is a ; missing somewhere, but I have already rolled that code and can not find the error. This code was originally written in C...
asked by 23.11.2015 / 14:51