Questions tagged as 'javascript'

1
answer

javascript does not load image

I'm making a game in Javascript and the images do not load. When I open the console ( F12 ) it does not display an error. This happens in Google Chrome and Firefox. But when I put <img src="imagem.png"> it appears. <canvas i...
asked by 03.11.2015 / 15:34
1
answer

Problem getting access time

I'm trying to catch the time that the surfer remained on the page, however nothing is returned. Main php file: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&g...
asked by 25.12.2016 / 22:31
13
answers

Phone Mask using jQuery Mask Plugin

I need to change the position of the "-" in the mask. <label for="telefone" >Telefone</label> <input style="width:25%; margin-right:25% " type="tel" name="telefone" id="telefone" pattern="\([0-9]{2}\)[\s][0-9]{4}-[0-9]{4,5}" /&g...
asked by 28.11.2014 / 13:18
1
answer

Import .csv file to server

I am performing a task to import data from a .csv file to the server. I can already import the file all right on the server side, however each file contains about 25,000 records and the user is waiting until the upload is complete. I put a simpl...
asked by 16.02.2016 / 20:22
2
answers

Limit sidebar before footer

I have the following code, but I have a footer of 650px, and when scrolling the page to the end the fixed block stays on top of the footer, how could I solve this problem? <script> $(function(){ var jElement = $('.ingresso-fix');...
asked by 07.03.2016 / 16:17
0
answers

How to make a form with the number of variable fields and insert this data in the database? [closed]

Hello. I want to create a CRUD that manages words and their synonyms. A word has multiple synonyms (1: N). I would like a solution to dynamically include the inputs, according to the demand of each user. For example, a word to be registere...
asked by 02.10.2015 / 19:20
1
answer

Javascript toggle or if / else on Adobe Edge Animate

I use Adobe Edge Animate for simple animations at work. I could not make one of them work and I played a trick. Now I want to know how to do it right. I have a button. When clicked, it should give play on the timeline from start to finish. If...
asked by 06.10.2015 / 00:57
1
answer

css matrix3d, drag element while maintaining distortion

I've been playing around with Matrix3D css in this code: link Now I wanted a point in the middle to drag the element while maintaining the distortion, but I do not know how to do it. So far, the only thing I've been able to do is add a d...
asked by 28.09.2015 / 18:18
1
answer

AngularJS Protocol file: //

Well, I'm doing an AngularJS embedded application that when the system (operational, not the application) starts, it opens the index.html that contains the angular application. The first page works, but how do I get it to another page? I t...
asked by 21.10.2015 / 14:25
1
answer

Is it possible to load undescore templates externally with javascript?

Generally, I use Template Engines to render HTML via JavaScript. Usually use undescore.js . I really like this way of making it easier to create HTML with Templates. Example: Somewhere in HTML: <script type="text/template"...
asked by 02.10.2015 / 18:12