Questions tagged as 'javascript'

1
answer

Upload Link in Modal

Run the code - The explanation is in execution. then read the code document.getElementById("edt").style = "block"; $(document).ready(function() { $("#LinkChamar").click(function() { $("#CarregarEmDIV").modal(); })...
asked by 11.07.2018 / 22:00
3
answers

Involve part of a string

I'm testing a function to select the part of a title that comes after the colon: $('.carousel .item .carousel-caption h2').each(function(){ var val = $(this).text(); console.log(val); var string = val.substr(val.indexOf...
asked by 05.08.2014 / 21:03
1
answer

How to call code in jQuery from a form request?

I have a system with several forms calling jQuery and ajax to solve the problems and register the data retrieved in the mysql database. Since I am a beginner, I am having problems due to lack of knowledge. What I learned: <script src="jQuer...
asked by 07.08.2014 / 04:21
1
answer

Call function javascript

I have a VB application that builds HTML pages fed by database data. So I can issue reports by inserting the data into an HTML table. It turns out that sometimes the table becomes too large to be printed and need to remove some columns so tha...
asked by 11.08.2014 / 15:13
2
answers

Restart script after load () function

I would like to know how to use my script within content that will be loaded by the load() function. The function: $(document).ready(function() { $('.submenu').click(function(event) { event.preventDefault(); $('...
asked by 26.08.2014 / 17:12
1
answer

Regex on a switch case

About I have a switch that takes care of activating my menus from their address on the website. switch($location.path()){ case '/perfil': $scope.menuAtivo.perfil = 'active'; br...
asked by 22.08.2014 / 20:44
2
answers

How to put a click event in a drawn primitive form?

Imadeananimationandwouldliketoputthepauseandplaybuttonsusingthesedrawingsinprimitiveforms.functionbotaoPlay(){contexto.beginPath();contexto.fillStyle="rgb(255,255,0)"; contexto.moveTo(430, 450); contexto.lineTo(460, 465); contexto.li...
asked by 10.10.2014 / 15:41
1
answer

setTimeout does not work well inside loop

I'm making a game in javascript, it's kind of the game genius . using setTimeout inside the for. function executarJogo(numeroJogada){ var cores = ["#FFFF00","#00FF00","#0000FF","#FF0000"]; for (var i = 0; i < numeroJogada; i++) {...
asked by 13.10.2014 / 15:27
1
answer

Why does the onclick function not work on a hyperlink?

Hello, I'm new to programming and I'm trying to create an icon that when you click on it the information will be saved through a sessionStorage, and at the same time it will be redirected to another page where I'll fill it out with information f...
asked by 23.07.2018 / 23:17
2
answers

How to redirect to a url using url parameters

I would like to get a url that is just after red= and redirect to it, if it is blank do not redirect. I've used window.location.replace("") just to test the code. Example where I want to get: red=http://www.google.com/ T...
asked by 27.07.2018 / 03:55