Questions tagged as 'javascript'

1
answer

CRUD - send selected line id to toolbar - CakePHP

I am beating myself for a while with the following problem: I set up a CRUD in CakePHP, I made the grid with css to be cool and ready. The problem is that it's nothing neat to have a stock column and the "View," "Add," "Promote," and "Decline...
asked by 23.09.2015 / 21:58
2
answers

API does not receive post with list

I have an API that receives a post, if I only receive a single contract, it receives the data normally: [HttpPost("GravaContratos")] public async Task<JsonResult> GravaContratos(ContratoModel contrato) { //faz alguma c...
asked by 19.08.2016 / 17:14
1
answer

How to change the tab using the navigation button?

How to create button to change tab (pill)? I have tried in some ways, but I have not been successful at all. In one case, I did, but only switched to the 2nd, then it looks like I'm out of action. $(document).ready(function() { $("#prox...
asked by 12.08.2016 / 13:40
2
answers

window.innerWidth does not work on Windows Phone

I have a problem: In the page link , there is a banner where I can not define the size of the div. But as it takes up all 100% of the screen, I got window.innerWidth from the browser and did my calculations. For desktops and And...
asked by 03.07.2016 / 22:11
1
answer

Get all data from a table in a JSON - Indexeddb

Hello! I need to get all data from a table in a JSON. (Using the Indexeddb database). How to proceed?     
asked by 29.06.2016 / 15:04
2
answers

print table from an array of defined size

<table border='1' id="tabela"> <tbody> </tbody> </table> Would like to print differently $(document).ready(function(){ var i =0; while(i< 100){ var resto = i%10; if(i%10 == 0){...
asked by 23.07.2015 / 02:51
1
answer

Link of an Iframe opening in new tab?

Is there a possibility that when someone clicks on a link in an iframe this link opens in another tab? Note: I do not have control of the html of the other page, so I can not put Blank in the link, it's content that is updated weekly so I nee...
asked by 14.08.2015 / 22:46
2
answers

How to change the background color of a bootstrap-slider plugin's slider?

I'm working with bootstrap-slider and want to make the slider when being dragged , and have their value between certain number range (I use onChange ), modify the background color of the selection bar. I've been able to do the border m...
asked by 27.08.2015 / 14:45
2
answers

Replace the / symbols with Javascript

I would like to know how to replace the < /> symbols with Javascript. I'm using the <code></code> tag to display a code, but I do not want it to be rendered in the browser. I know I can use &#60; and...
asked by 30.03.2014 / 16:04
1
answer

How to execute PHP file from function in JavaScript?

I have the following structure for registering a new MySQL database account (register.php): <?php $con = mysqli_connect("meu_host","meu_user","minha_senha","banco"); mysqli_query($con,"INSERT INTO contas VALUES (" + $id + ", " + $pass...
asked by 25.03.2014 / 04:09