Questions tagged as 'javascript'

1
answer

Doubts in .length function

In my case I'm picking up how many records are inside the variable. But the .length function determines that when there is only one record it is undefined , and it should show that there is a record in it. Is this some kind of funct...
asked by 03.09.2014 / 14:42
1
answer

Two-click problem - JavaScript function

I'm using this simple function to conditionally change CSS in Javascript: function zoom(obj, icon, menu) { var el = document.getElementById(obj); var img = document.getElementById(icon); var men = document.getElementById(menu); var men...
asked by 22.07.2014 / 04:13
1
answer

Capture Current Selected Option - multipleselect

Given a multiple select field, how do I get via javascript the value of the option that was last selected (current)? I have tried to use the expression below, however the last value (in alphabetical order) of the list of selected items is ret...
asked by 17.07.2014 / 03:46
1
answer

Verify that the option to clear the cache when closing the browser is active

I have an application in Adobe FLEX and since some clients have very bad computers, the automatic cache cleaning is interfering with the performance of the application, I wonder if there is any way to check if this option is marked in the brow...
asked by 29.07.2014 / 18:59
1
answer

Check variation of words in a sentence with RegExp

I have a code that verifies phrases that the user types and was tried more without much success, make a code using RegExp to verify that the user entered a certain phrase without or with variations of words. / p> Example: "I use Facebook"...
asked by 30.07.2014 / 05:17
2
answers

Consume Rest with AngularJS

I created a WebServices to get query by string and return a list, example: url / myPath / luiz - Since luiz is the parameter that will be passed, based on this parameter will return a luiz list. In AngularJS with you: List All, Search by...
asked by 25.09.2014 / 16:07
1
answer

Getting the contents of a JS variable in an ASP.NET C #

I have a function that takes the values of my inputs, and I want to take the values of the variable to my method to perform the insert. Does anyone have any tips on how to do this? function insert_veiculo() { var placa = $("#placa").val();...
asked by 23.09.2014 / 17:13
1
answer

Update timed image using AJAX

I have this function: if ($files_count == 0) { ?> <img src="img/upload.gif"> <?php } And I needed this refreshed every 5 seconds without giving refresh on the page. I have already tried several AJAX functions an...
asked by 08.07.2014 / 18:03
2
answers

How to store the date and time with each click on the form

I have a form and need to store the date and time with each click of the form or at least the first one. I think this should be done via JQuery or JavaScript. With each question, the form does have a button with type="button" and the last button...
asked by 09.07.2014 / 21:57
1
answer

ERROR: using GetJSON knockout

.ASPX FILE <head> <script src="scripts/jquery-1.4.4.js"></script> <script src="scripts/knockout-3.1.0.js"></script> <script src="scripts/jquery-1.4.4.min.js">&...
asked by 10.07.2014 / 20:57