Questions tagged as 'javascript'

1
answer

What is the use of window.history.replaceState?

Hello, I would like to know what the following code does: window.history.replaceState     
asked by 23.06.2015 / 18:24
2
answers

Modify variable when clicking javascript and PHP

<script> function clica(){ var x = document.getElementById("clica").value; alert(x); } </script> <?php for ($i=0;$i<10; $i++){ ?> button onclick='clica()' id='clica' value='<?php echo $i;?>'><?ph...
asked by 23.06.2015 / 16:05
1
answer

Nest keys in an array in a Javascript object

How to create a javascript object nested from a literal array? I have the following array: var x = ['a','b','c']; From the array 'x' I would like to generate the following object: var y = {a:{b:{c:{}}}}; So far I've tried iterating...
asked by 24.06.2015 / 21:54
1
answer

Error passing JS array values to simple PHP

My code is the one below: <html> <body> <form method="post" action="recebe.php" > <input type="hidden" id="send_string_array" name="send_string_array" value="" /> <input type="submit" value="Enviar" /> </for...
asked by 12.06.2015 / 04:06
1
answer

Doubt to automate function in javascript

I am using a Javascript function to show / hide a div according to the choice of a radio , but now they have become many, so I am trying to automate this in the way I am learning in codeacademy. p> From the code I already used, I...
asked by 09.06.2015 / 01:39
1
answer

JQPlot - Online Legend

I'm creating some graphics using JQPlot, however I came across a difficult situation. Test chart: As you can see the caption is in vertical sequence and I would like to put it in horizontal sequence. However, while I search (obviously,...
asked by 10.06.2015 / 16:54
1
answer

How to use SCOPE_IDENTITY in sqlite

I have a mobile application that inserts a database in the DB and needs to return the ID of this register, but I do not know how to use it and I do not know if SCOPE_IDENTITY works in sqlite, my code looks like this: var idSolicitacao = tx.exe...
asked by 08.06.2015 / 15:03
1
answer

Google Analytics Anomalous Behavior

I use Google Analytics on my site but it has an anomalous behavior: When I open 2 to infinite pages of my site in a single browser it is computed as a single active user. When I open 2 to infinite pages of my site in 2 browsers are...
asked by 10.06.2015 / 14:20
2
answers

Problem with a Count in Asp.Net MVC

My application manages courses, on my registration screen I have a field "number of vacancies" where it is decremented each time a student enrolls in a course. The problem now is that my Count is denying the "number of vacancies" field. On t...
asked by 08.06.2015 / 21:07
1
answer

Why does not it change the border of the input

The input confirmarsenha_cadastro should be with the red border but this is not happening, why? </script> $(function() { var dialog, form, dialog = $( "#painel_logar_registrar" ).dialog ({...
asked by 21.05.2015 / 21:48