Questions tagged as 'javascript'

2
answers

base64_encode in javascript [duplicate]

I have an image in the database stored in blob format, I have to use base64_encode in php before returning the ajax request and this is leaving the process kind of slow on the server side. It is possible to do or have some native function i...
asked by 03.12.2015 / 18:57
2
answers

Check empty object AngularJS

I have some fields where I pass some filters for a query in the database. I would like to check if the object is empty, so the query would not be performed. I tried this way: function isEmpty(obj) { for(var prop in obj) { if(obj...
asked by 28.12.2015 / 17:59
1
answer

How to add a functionality to jQuery? [duplicate]

I have some ready-made functions that format date, take only strings numbers, block fields to not allow letters etc. Examples: function formatarData(data){ // conteúdo da função return data; } function somenteNumeros(campo){ //...
asked by 07.01.2016 / 13:44
1
answer

Put one div behind the other

I can not make it work at all. I'm using "animate.css" to make the animations of the elements appear, but when an element is rising, at the bottom of the page for example, all the content of that section goes over the footer, leaving an "ugly" e...
asked by 08.01.2016 / 16:02
1
answer

Get the AbsolutePath of the input type="file"

I'm trying to get the full directory path through the file type input, but so far I can only get a previous folder, for example, I have the folder in the path C: / user / Documents / Images / Yesterday so I would like to I can get the whole path...
asked by 06.01.2016 / 02:50
3
answers

NodeJS NPM does not work

Folks, I installed the node normally and added to the environment variable; I did some math to test and it worked. When I tried to install modules (socket.io and express) it did not work, even running as administrator. I tried to check the comma...
asked by 23.12.2015 / 11:04
1
answer

Helps in passing a jsFiddle code to an HTML file

I have a code in this jsFiddle that I changed, but now I am having difficulty passing it to an HTML file . My code: <!DOCTYPE html> <html lang="pt-BR"> <head> <meta charset="UTF-8"> <title>Document<...
asked by 27.10.2015 / 20:08
1
answer

Auto Clickable Content with Script

Personal I'm trying to use a script to try to give an automatic play on a Youtube video. The next thing I found was the script below. This script does something close to what I need, but it just does this on some link. <script type =...
asked by 08.12.2015 / 22:47
1
answer

create custom mascara

How do I create a custom skin for a given field? The mask will be in the following format:
asked by 10.12.2015 / 20:43
1
answer

lightbox in page loaded with ajax

Hello, I'm trying to create a new page in php but I do not know anything at all. I just used java that I removed from an example to dynamically load pages and to do one lightbox ... the problem is when I want to conjugate the 2 .... I want the l...
asked by 15.12.2015 / 01:45