Questions tagged as 'javascript'

1
answer

After laravel validation fails, choose a select option

Hello everyone, I have two combos: one states and one cities. When I choose a state, I search cities via ajax, as follows: $('#estados').on('change', function(e){ console.log(e); var id = e.target.value; /* busca as cidades de...
asked by 21.12.2017 / 22:37
1
answer

Display Dialog (Materialize) with ajax without clicking the button

Well, I'm setting up a ticketing system and decided to switch the closed ticket message from a alert to a dialog, it would be toast of materialize.com. But I am not able to make it return already executed, without having to click the bu...
asked by 21.12.2017 / 06:02
2
answers

Menu Closing alone

I have a menu in javascript and my knowledge in javascript is almost null. And unfortunately this menu on the mobile it is closing alone ... and as I do not have much knowledge I am suffering to solve this problem. Here's the mobile site and...
asked by 12.12.2017 / 13:48
1
answer

Page Count

I am trying to make a page counting system, which counts the total number of pages and which page the user is in. I was able to do the total page count but I can not find a way to show the current page of it, I tried to use the position () me...
asked by 21.12.2017 / 13:44
1
answer

I need to separate strings to be able to import into mysql [closed]

I need to separate each string so I can import it into the database, how would I do it? link of the file which I am testing link <?php include_once("../conn/conexao.php"); if ($_SERVER["REQUEST_ME...
asked by 03.01.2018 / 19:09
1
answer

How to organize my models in an Angular Cli project?

I would like to know if it is possible and also if it is a good practice to organize my models out of a component directory. For example: I would like to keep my models within a directory called "models" at the same level as the "app" directo...
asked by 26.01.2018 / 12:03
1
answer

Remove the link ID when it is referenced with an href

I have a project of a template, in the footer of it has a button that leads to the top of the site, when it squeezes it leads to the top of the site but leaves the id "#top" in the site link (mysite / index. html # top), how can this not happen?...
asked by 25.01.2018 / 14:06
1
answer

How to load data from an XML file into an HTML input field?

I'm trying to load an XML upload by saving on an object and showing it on the screen. I was able to do showing in a Div But I'm not able to show in Inputs. Follow the process and the code: I choose the File and click Upload Theresul...
asked by 25.01.2018 / 21:59
1
answer

For service node from within js

Well, I need to finalize a node process from within js itself. What happens that I have a cron that executes a node meu_arquivo.js command and needs within this meu_arquivo.js to end the node so that it is not open. How to do th...
asked by 26.01.2018 / 14:17
1
answer

Counter to a specific number

I have three counters, which go up to a certain number, defined as data-count-to of each tag, my problem here is that I liked them to reach their limit at the same time, even with values as different as is the case below: function c...
asked by 25.01.2018 / 13:40