All Questions

3
answers

Validate that multiple inputs are not empty

I have 20 inputs in my html and each input has a different id, so before sending the backend I get getElementById the value of each div so I repeat the getElementById 20 times and verify that it is different of empty , how...
asked on 03.09.2018 / 05:36
1
answer

Escaping PHP quotes

I'm doing a insert in sql and I needed to change the single quotes, because for example a name O'Connor breaks the structure. I've tried putting: str_replace("'", "\'", $cadena); Also with: htmlspecialchars($contenido->te...
asked on 01.10.2018 / 16:18
1
answer

Absolute positioning from outside the edge

When I position an element absolutely within another element (with relative position), the coordinates that I put are counted from the ends of the container without taking into account the edges (which would be equivalent to the inner part of th...
asked on 21.10.2016 / 06:53
3
answers

Add rows to Table with JavaScript, DOM

I have a question, I currently have an HTML table, but I would like to add rows dynamically, I'm trying to do it in the DOM way, but I can not get it, my table looks like this: <table border="1" id="tablaprueba"> <thea...
asked on 29.08.2018 / 04:28
1
answer

send alert for if in javascript

I am creating a form, and I have a situation of a field that has to be filled depending on the multiplication of some if it is bigger than it has to fill the field if it is smaller that you do not have to fill it. I am doing this with javascr...
asked on 30.08.2018 / 19:05
4
answers

Insert two records

I have a problem, adding a record saves it in duplicate in the following way: actualPorcentaje 10 | marcaid 0 actualPorcentaje 0 | marcaid 4 This form allows me to update the prices through a percentage, after selecting a brand. <form...
asked on 18.10.2016 / 01:03
1
answer

JavaScript - How can I get the frequency of a sound in real time?

Could someone give me a clue how to get the frequency of a sound in real time with javascript? Thanks.     
asked on 01.11.2016 / 19:21
1
answer

how can I get the error code in a try catch in laravel?

I have a "create" method public function crear(Request $req) { $rules = array( 'nombre' => 'required', ); $validator = Validator::make ( Input::all (), $rules ); if ($validator->fails()){ return Response::...
asked on 01.11.2016 / 18:58
3
answers

Use of routelink in the base html

I'm trying to use the routerLink property of the "tag to" in the html that loads when the page starts. This works well within the template of a component, but in this case it is not necessary to render a component, since the menu is s...
asked on 27.10.2016 / 00:37
1
answer

Error with Fragments: "java.lang.IllegalStateException: FragmentManager is already executing transactions"

I'm having a small problem when creating fragments, it's that I get an Exception as if getSupportFragmentManager was already running. The error:    E / AndroidRuntime: FATAL EXCEPTION: main                     Process: jhon.casique.baccus,...
asked on 22.10.2016 / 18:15