Questions tagged as 'javascript'

1
answer

Is it possible to pass the value of a Javascript variable to a C # variable?

The idea is as follows, use javascript to detect the screen resolution, and get the value of the variable of this javascript and move to the C # variable. The only thing that got into my head is to create an input to manipulate the variables, bu...
asked by 25.12.2016 / 19:50
2
answers

Getting information from a select and passing in an array

I want to get all fields of a select and store them in array . I thought about doing it, but it did not work. var lista = []; lista = $('#Model').text(); $('#Model').append('<option value="' + data.ModelID + '">' + data.N...
asked by 21.12.2016 / 22:57
1
answer

remote request with php jQuery-autoComplete

I'm trying to remotely request a PHP file with the jQuery-autoComplete , but it is not working. The plugin in question is the one here: jQuery-autoComplete . I want to use it for being very simple, light and meets what I need. The re...
asked by 27.12.2016 / 20:48
2
answers

Insert HTML into Link within Div automatically with jQuery

I have an HTML code, where it has a link in an image. This link is created by a control panel and you can not put a ID or a Classe in it. But the image with the link is inside a div that has ID com name popup-image...
asked by 21.11.2016 / 18:51
1
answer

Display Alert Loading Page

I'm using asp.net-mvc and as far as I know the OnLoad event would work if I put it in body, which is in ~ Layout, but I need this alert to be displayed on a single page, because if I put in body it will run all instead ... how can I do it? Vi...
asked by 20.11.2016 / 20:40
1
answer

$ location.path of Angular has changed?

Good morning everyone! I'm trying to do a function with $ location.path ('/ main'); and when the function ischamo, the following message appears in the console:    TypeError: Can not read property 'path' of undefined Why this? .contr...
asked by 17.02.2017 / 12:24
1
answer

Angular Leaflet map error

I'm using Angular in a project with Codeigniter and I'm applying the Leaflet map. Creating the function, it generates the map, but it informs error when obtaining the center property and does not load in the defined position of initialization, i...
asked by 16.02.2017 / 13:28
2
answers

JS looking for PHP JSON return

I'm starting to use JSON and AJAX and am having a hard time fetching the generated JSON in php for JS. This all in Intel XDK. In php it looks like this: if ($_GET['acao'] == 'buscaorcP'){ $qryOP = mysql_query("select * from orcamento_ca...
asked by 17.11.2016 / 22:44
1
answer

Get calculated values of two inputs and subtract for another input

I have a form that has a field filled with value from the database. In this form, I have to make 2 percentage accounts, take these two values to add and finally get the start value and subtract from the sum of the percentages. I set up the fi...
asked by 18.11.2016 / 23:21
1
answer

List sights through the Google Maps API

I currently force the user to fill out all the sights by looping the code. However, I wanted to know how to get this information from the sights automatically, more or less the way this hotel did: link Where he searches for categories an...
asked by 17.11.2016 / 14:13