Questions tagged as 'javascript'

1
answer

JavaScript does not accept variable value

I'm trying to do a function to call a GRID that will be different depending on the parameter I pass. This is the function: $JQuery(document).ready(function() { $.ajax({ url: "/main/conciliacao/gera-colunas/tabela/<?php echo $tab...
asked by 30.01.2015 / 14:59
2
answers

Difference of javascript days considering dates in different months

I need to get the difference between two dates. However, in my business rule, the difference of 05/17/2014 and 05/17/2014 is 1 day. So I thought just adding a day to the end result would solve my problem. However, when I ask for the range of (f...
asked by 26.01.2015 / 16:57
2
answers

Angular Object Sharing

Does anyone know of a way to send an object from one angular directive to another? I have 2 directives and need access to the object in both. I'm not able to go through a parameter initially since the function is called through an event....
asked by 30.01.2015 / 14:29
2
answers

Create a menu type, but with a (+) sign (TreeView)

I use a Bootstrap 3.1, Entity 6.1, Visual Studio 2013, MVC5, JQuery and etc ... Well, I need to make an inquiry, so that when the screen is loaded, it can load some information, like medicine (Description) and other information, but separately. N...
asked by 19.08.2014 / 19:35
3
answers

Get connection to HTML and JS database [closed]

How to get the connection to the database via SOAP using HTML and JavaScript? I use Jquery Mobile. I'm doing a login system, and I need to transport input information to the Worklight adapter in order to connect to the database and return the su...
asked by 19.08.2014 / 20:17
1
answer

Call external file by Div

In the script below it is possible to call an external file through this <div> <div id="script" class="#"></div> Look at this snippet of the script: https://'+id+'?= How do I get through <div>...
asked by 19.08.2014 / 18:05
2
answers

Playing dice for a box

I need to get data from an input and move to a box!  I have a cod that takes the data of a combo to play in a box! cod: function move(Origem, Destino) { var opt = document.createElement("option"); for(i = 0; i < Origem.options....
asked by 11.08.2014 / 15:48
2
answers

Lock a button inside a dataTable in the firstfaces

I have the following problem, I have a dataTable that contains the possibility to edit the data using editing by the line, using the tag rowEditor and cellEditor . Next to it I have a button to delete that line. When I click...
asked by 05.08.2014 / 15:12
1
answer

Is it possible to assign repeat loop to a variable?

I am implementing a code where if the received variable does not contain a value it should be done for , otherwise not. Well, if it were for the "simple" case, it was just to implement the if with the conditions and mount the...
asked by 21.11.2014 / 01:13
1
answer

Change background color table cell

I'm trying to change the background color of cells whose values are the same as the day the user visits the site. The variable $dataa saves the dates of each name ... Formatting table (is within a php loop): echo " <tr> <t...
asked by 23.11.2014 / 23:47