Questions tagged as 'javascript'

1
answer

View values of FormData

How can I print with console.log the values I capture in a FormData before sending it to a service by URL? . I was trying this way: e.preventDefault(); var form = $('#frmSede')[0]; var formdata = new FormData(form); var oEstado = new FormDa...
asked by 16.12.2017 / 04:51
1
answer

How can I re-empty the array after there is no match?

I am new to this, I want to know how I can do if there is no match, empty the array so that I can check again? If there is a match, both are shown, if there is not, they are returned, that happens only once, I can not make the game meaningful....
asked by 17.12.2017 / 15:46
2
answers

HideShow - Jquery

Good morning Dear I tried the HideShow method with an example class but it does not work. <html> <head> <script type="text/javascript" src="../jquery.js"></script> <script type="text/javascript">...
asked by 14.12.2017 / 15:58
1
answer

Pass data from javascript to php using ajax when reloading the page

Good. I have the following code: <head> <script src="./jquery-latest.min.js"></script> <script> var jash = window.location.hash; var url = "datos.php"; $.ajax({ type: 'POST', url: url, data: {tuVariable:jas...
asked by 23.01.2018 / 01:53
2
answers

Problem Laravel Routes with Ajax

I am using Laravel 5.4, I have three forms (Create - Edit - Clone) and in the 3 I need to execute the following Ajax request, for this reason the url of each form varies: http://app.dev/users/datasheet/create http://app.dev/users/datasheet/6/e...
asked by 22.12.2017 / 06:16
1
answer

Get public ip of the C # device

I'm trying to get the public ip of the team. In addition to additional information such as the type of browser and the location of the public IP obtained. One of my main questions is to know if there is a place where this information can be obta...
asked by 22.12.2017 / 01:45
3
answers

Problem with jquery Notice: Undefined index

Good morning I have a problem with the combobox and the jquery , the event is not "activated" from the drop-down menu (I have 2 dependent menus mark-> model) script that is in the html head <script language="javascript" src...
asked by 21.12.2017 / 20:18
4
answers

How to make Javascript capitalize each element of an array?

I have this function and this for.. of but I can not get the days to be capitalized by console. What's wrong ??? Array.prototype.toUpperCase = function() { for (let i = 0; i < days.length; i++) { days[i] = days[i].charAt...
asked by 07.12.2017 / 16:20
2
answers

if I enter the textbox "fa fa-android" change the icon to which that class belongs with JQuery or Js

I have an HTML list where I have several icons that are options from the list, because these working with .NET I have added a textbox to facilitate the sending of data to my BD, in that textbox according to the icon you select send the class "fa...
asked by 06.12.2017 / 21:08
2
answers

receive variables from node js in javascript

I want to read a server variable in my HTML I'm using nodejs , JS and HTML This is how I send it, but I do not know how to paste it in JS to paint it in HTML const express = require('express'); const...
asked by 07.12.2017 / 18:13