Questions tagged as 'javascript'

1
answer

Confirm SQL Delete using Javascript Confirm [closed]

Even if you click the cancel option it will delete. Can you help me? This is my code: if (($page == 'delete') && $id > 0) { echo '<script> var r = confirm("Deseja realmente excluir esse usuário?");...
asked by 12.06.2016 / 22:11
1
answer

How to change the text of a p within php? Can you insert a snippet in JavaScript?

I am making a registration in which can not have users with the same name / nick registered. To validate whether or not I use PHP, I would like to know how to print a p with a message on the screen if a user with that name already exists. I trie...
asked by 14.06.2016 / 04:35
1
answer

How to hide the InAppBrowser bar?

I'm developing a mobile application that basically loads a web interface inside the app through the Inappbrowser plugin. The idea of the project is to exactly simulate how an app works. Everything works normally, however the Inappbrowser plugin...
asked by 13.06.2016 / 15:58
1
answer

How to not duplicate items in a list returned from json with ajax

I'm having problems, basically I'm doing a search on products with like, but it's duplicating the products, I'll attach an image that clarifies better. $(document).ready(function(){ $("#search").on( 'keyup', function () { var pesquisa =...
asked by 07.07.2016 / 20:58
1
answer

Search in mysql by Javascript

Good morning, I'm trying to make a check if the cpf typed already exists in the bank, I'm using laravel, could anyone help me in this function please? In my controller, I search and ready all cpfs of the bank: $cpfduplicado = UsuarioEsi...
asked by 11.07.2016 / 15:41
2
answers

How to simulate click of a button and not both?

I think the question seems confusing, but calm, I will explain better. Type, on a given page, there are 2 buttons with the same class, having as difference only its value, and an attribute "origin". Example: <input type='button' class='bota...
asked by 10.07.2016 / 17:08
1
answer

Dropdown language menu [closed]

I visualized in a site that exists in the upper right a dropdown menu where the user can make the selection of the language. Below is a print of the site with the selection option open. When the user clicks Français, for example, the flag of Fra...
asked by 22.08.2016 / 04:46
1
answer

Click and show div, click again and hide

I have the following HTML <nav class="nav nav-default"> <div class="container"> <a href="#" class="nav-brand">Brand</a> <button type="button" class="nav-button"> <span class="fa fa-navicon">...
asked by 20.08.2016 / 22:42
1
answer

I wonder how I can replace domains for my newsletter?

Please, let me know what the codes of this simple system would be I would like to put a list of emails with several servers eg: @ gmail.com @ aol.com @ outlook.com and above I would put @ hotmail.com and the list that would be below would be...
asked by 18.08.2016 / 23:22
1
answer

Help with PHP Code and Javascript

I need to bring only the products for the selected category, when I click on: <a class="cat-link" href="javascript:;" title="<?php echo $res['nome_cat']; ?>"> <img style="position:relative; top:50%; transform:translateY(-50%...
asked by 25.07.2016 / 14:34