Questions tagged as 'javascript'

2
answers

Convert image to base64 using VueJS?

I have <input type="file /> in VueJS and when I select an image I want it to be converted to base64 , because I will save the images in the database only in base64 . What would be the method to get only the String...
asked by 03.10.2017 / 15:51
1
answer

Get value from a table row if checkbox is checked

I have the following table which is built from a database entity. HTML: <table class="table table-hover" id="produtostab"> <thead> <tr> <th>Descrição</th>...
asked by 21.08.2014 / 20:18
1
answer

Ajax response repeats that of another request and the page is neither the same

The scenario is as follows: I have an ajax waiting for a response from the Java server on port 2336 just like Hotmail, and as soon as it has an update, Java returns a response and closes the open HTTP request. Then the javascript picks up the re...
asked by 21.09.2014 / 17:33
4
answers

Effect with jQuery crashing without reasons

I'm using the following jQuery command: var timer1; SemConflito("#lp-1").on('mouseover', function(){ clearTimeout(timer1); timer1 = setTimeout(function(){ SemConflito("#lp-1-hover").stop().sli...
asked by 22.08.2014 / 14:47
1
answer

Focus on the first field enabled in the form

In this way I activate the focus in the first field of the form that is not hidden : $('form:first *:input[type!=hidden]:first').focus(); How do I activate focus in the first field of the form that is not hidden and is n...
asked by 20.01.2017 / 19:58
3
answers

Check in JavaScript if String has x number string

Hello, I'd like to know if you have any way to check if a String has JavaScript in it, for example, random number to trigger an event. Here's how:    abc123de45 It should be false    abc13525de It should be true    ab12cde...
asked by 03.02.2017 / 15:45
5
answers

Get content from within a Div and put in the value of Input

I have a form, and inside it I have an input, which will have to get what it contains inside a DIV, which in this case is just text. The input looks like this: <input class='formContato' type='text' name='orcamentoAssuntoForm' id='orcame...
asked by 14.07.2014 / 14:39
2
answers

how to find if it contains text inside an array in javascript

I've created two arrays, one with questions and one with answers. Follow the template. perguntas[0] = "que sao dinossauros"; respostas[0] = ["Constituem um grupo de diversos animais membros do clado Dinosauria"]; perguntas[1] = "tipos de d...
asked by 24.05.2017 / 16:52
3
answers

Effect on jQuery [closed]

How to make an effect in jQuery, that when using the SCROLL the divs and the elements appear in fadeIn, like in that site: link     
asked by 29.01.2014 / 19:01
2
answers

Is there a Parallax Mousemove effect for jQuery?

How do I find an effect of type " parallax mousemove I would like to know the name of this effect and have some example on the internet. I could do this in ActionScript 3.0 if it was called Scrollrect , but I do not know the correc...
asked by 30.01.2014 / 17:05