Questions tagged as 'javascript'

1
answer

Change The DropDownList list in the OnChange event

good morning I have the following code to assign a list to my DropDownList from the controller ViewBag.Ciudad = new SelectList(GetCiudadAll, "idCiudad", "NombreCiudad"); in the view @Html.DropDownList("Ciudad", (SelectList)ViewBag.C...
asked by 13.12.2016 / 13:59
1
answer

Consume ASMX WebService (.Net) from PHP

I have a WebService with ASMX extension made in .Net running in IIS on a server in my local network ip:x.x.x.10 . The URL of my WebService is link , requires a parameter codigo of type int and returns a Data...
asked by 03.01.2017 / 18:36
2
answers

How to receive and display the data I generated from a json in a php file?

This is my code that generates the json <script> $('#table2').on('check.bs.table', function (e, row) { // print_r(row); var array = {data: row}; var paramJSON = JSON.stringify(array); // print_r(JSON.stringify(arr...
asked by 13.12.2016 / 16:01
0
answers

Take HTML Input and Pass it from JavaScript to Email Using PHPMailer

In my basic code with JavaScript and PHP so far I can send an email with test data, the next step in the process is to add an attachment to the email . Following this, the following doubts have arisen: 1. The first one related to the...
asked by 25.11.2016 / 04:34
0
answers

filter search by dates in highcharts

I find myself testing this library highcharts and I would like to filter by date by consulting a BD, what would be the better way? the sql would be the least because there goes a WHERE however I have two fields in PHP for...
asked by 26.11.2016 / 03:57
1
answer

Help with a $ scope and data from a database on google maps

I have a problem and I do not know how to use a scope variable and show it on the map, it does not recognize the location /** * Created by gamba on 20/10/2016. */ var app = angular.module("mapas",[]); app.controller("myctrl",func...
asked by 06.12.2016 / 23:49
1
answer

replace unicode in javascript using foreach and charCodeAt

I need to check if a unicode is stuck and remove it from the string ... //Trae el array. $scope.pasteTitle = function (e){ var stringUnicode = e.originalEvent.clipboardData.getData('text/plain'); console.log(stringUnicode);...
asked by 07.12.2016 / 15:08
2
answers

Value $ Scope of ng-model Throw "Undefined" in the Controller

In my studies of the Ionic Framework I am learning about controllers, I have been working a simple example of a page with a login, then my HTML code, I do not leave it anymore because the rest was generated by Ionic and I did not touch it at all...
asked by 18.11.2016 / 03:31
1
answer

Error in function within object

module.exports = { post: (title, body, autor) => { this.title = title this.body = body this.autor = autor }, search: function(search, arr , call){ var result = arr.find(a => a.title == search) call(nu...
asked by 05.11.2016 / 17:39
1
answer

Popover bootstrap error only works when pressed a second time

Why, when you press an image that shows a popOver Bootstrap, this it only unfolds when the image that invokes it is pressed a second time, whenever you click again on the image I must press twice to show the popOver. Image tag that redirects...
asked by 11.12.2016 / 03:42