Questions tagged as 'javascript'

1
answer

Detect when an iframe ends loading

I build a menu dynamically and load the different menu options in an iframe . Problem : I have options that take longer to load than others (this depends on the amount of data that the option loads). As another data: I have block-ui to...
asked by 26.04.2018 / 17:21
2
answers

Center MENU Bootstrap

my HTML code is as follows: .nav-header { position: relative; float: left; width: 100%; z-index: 100; bottom: 20px; } #fh5co-menu-wrap .sf-menu a { padding: 1em .75em; } <div id="fh5co-wrapper"> <div...
asked by 29.04.2018 / 22:22
1
answer

Refresh div every x seconds

I have a div and within it I call a method of a class in PHP that shows some information from the database. Something like that <div id="Ejemplo"> <?php $ejemplo = new ClaseYoQueSe(); echo $ejemplo->Mostrar_dato(); ?> </...
asked by 07.05.2018 / 20:40
1
answer

How to delete the last text or written number?

It turns out that I want to try to have the last number erased  I've written but I can not think of how. Something like the backspace that computers have, that's why the arrow between AC and the percentage. var primern; var segundon; v...
asked by 24.04.2018 / 22:24
1
answer

How do I set an array as a parameter in JavaScript? [closed]

I've been trying a new function to my program, this program has the purpose of making it easier to search for elements within an array, all these elements are unique, one way to find them and deliver them is by a rank, giving two parameters in t...
asked by 25.04.2018 / 19:25
1
answer

Error receiving server data

I'm starting a project to connect to a socket server and I can not get it to work. I put the code and explain. <script type="text/javascript"> var direccion = 'http://xxx.xxx.xxx.xxx/api/miurl'; new Vue({ el: '#main',...
asked by 25.04.2018 / 12:45
1
answer

Pass variable from JS to PHP [duplicated]

How could the value of a variable in JS pass to php? I need to do an echo $ location; in php since it's easier for me than doing it with js I've tried something like that but it does not work. $localizacion = "<script> document.w...
asked by 02.05.2018 / 10:51
1
answer

How to pass a data from Javascript to Php Laravel

What I'm trying to do is a function in javascript that sends a simple data to a laravel controller and then upload it to the database, the problem I have is that until now I could not find a way to send that data, I always get error 500. cont...
asked by 01.05.2018 / 15:25
1
answer

Capture event when closing DIV

Is there any way to capture an event when the DIV that is highlighted closes? (actually changes the display to none). If I click outside the element it closes and I need to do something when this happens. The Primefaces element does not have any...
asked by 01.05.2018 / 23:29
3
answers

Pass data from JS to PHP

How can I not pass certain data from js to php: The structure of some radios buttons <input class="rad" name="1" id="106" value="0" type="radio"> <input class="rad" name="1" id="45" value="0" type="radio"> <input class="rad...
asked by 14.05.2018 / 16:56