Questions tagged as 'javascript'

2
answers

Affix in a dynamic sidebar [duplicate]

I have a Bootstrap layout with a sidebar on the right that accompanies the scroll, within div[role=main] . My layout: Mycode:<headerclass="container"> <div class="row"> <div class="col-sm-12">Header<...
asked by 23.12.2014 / 20:01
1
answer

Capture screen return from OLT CIANET device with PHP

I am trying to capture data from a OLT CIANET via Telnet or SSH and I have not been successful, I want to know in which slot / pon the ONU is connected, the command to display the ONUs I use is: show port epon ".$slot."/1-4 onu mac ".$mac." ep...
asked by 26.05.2014 / 14:42
2
answers

Updating the Header with JQuery after reloading the page

I have a Rails partial to load my header on all pages .. _header.html.erb: <ul class="nav navbar-nav"> <li><%= link_to "Home", root_path %></li> <li><%= link_to "Top Itens!", itens_path %></li>...
asked by 09.05.2014 / 03:18
2
answers

How to check if a URL is in the input text?

How can I make sure that what the user typed in an input text is a website?     
asked by 22.08.2014 / 19:38
2
answers

Require at least 1 checkbox

I have a table that in each line has two options checkbox, yes and no, as I show in the image: Codetomountthetable:$y=0;while($rows_cursos=mysqli_fetch_array($resultado_cursos)){$tabela1.='<tr>';$tabela1.='<td><inputtype="text...
asked by 29.11.2018 / 17:31
4
answers

How to improve my code (many if's and else's)

I have a function to fetch a json locally and change the data of some fields. but I have to do the test if the field is with the status code and depending on I change with the correct value for visualization in the frontend. follow example:...
asked by 23.09.2014 / 17:00
2
answers

Search with case insensitive

Hello, I have a search field but I need it to return the values regardless of toLowerCase() and toUpperCase() Ex Ball, I can search as ball or BALL I have the following line of code: function filterMaterialList(quer...
asked by 23.10.2018 / 19:17
2
answers

How to return a literal object in an arrow function?

When I try to return a literal object with Arrow Function , it gives an error: var items = [1, 2, 3].map( i => {valor: i, data: new Date() }) How to get around this in Javascript?     
asked by 05.11.2018 / 19:52
0
answers

How to capture binary data from a WebGL context? [closed]

I've created two HTML clients that communicate through a websocket server. One client draws a 3D model on a canvas using the Three.js library and then sends the binary file from the canvas WebGL context to the other client through the websocket....
asked by 22.05.2016 / 15:06
1
answer

Alternating states of an application js

INTRODUCTION I'm developing an app using Electron and google maps, I need to control the state of one of the windows, for example: the user clicks the button and from this moment every click of the map adds a marker. Well the problem is in...
asked by 29.06.2016 / 21:43