Questions tagged as 'javascript'

1
answer

Geolocation cordova and javascript

I would like to be able to take the value of the variable lat out of the function, to put it in a form. In this case, I just wanted to take out an alert (lat), but it does not work. Or it shows everything or nothing, but only lat no. <html&...
asked by 31.07.2017 / 08:50
0
answers

Use Passport-facebook in a rest API in NodeJS? [closed]

I have an application made in express , until now I used the same server to show HTML and so on. This application has a Facebook login and it works. I need to know how to implement the Facebook login in a API to be used from a client a...
asked by 19.05.2017 / 12:49
1
answer

Convert javascript function into js file for protection [closed]

my javacript code is next I want to protect it in a file funcion.js but I do not know how it would be var html_msg = '<div class="alert alert-success content"> <img src="img/smile.gif" border="0" align="absmiddle"> Su Conexion a s...
asked by 05.06.2017 / 04:08
2
answers

Execute Script without invalidating the required property in an HTML document

I am running a script referenced in an HTML document and everything works very well, except the validation of the inputs in the form I'm trying something like this: <!--Documento index.html--> <!DOCTYPE html> <html lang="es-c...
asked by 18.05.2017 / 03:17
2
answers

Remove plugin from Javascript elements

I am using the lightcase.js plugin to make a carousel of images. How can I remove the plugin from the elements in which I have initialized the plugin, by means of the instruction: $("a.item-lightcase").lightcase({ transition: 'scrollHorizo...
asked by 18.05.2017 / 07:26
1
answer

Using the directions service with SearchBox Google Maps API?

I'm working on a project with the Google Maps API, I've been guiding myself with this Example that gives the same page of the API " Place Autocomplete and Directions " Try to do mine by guiding me by example, replacing class Aut...
asked by 26.04.2017 / 07:06
1
answer

Problem when changing CSS properties with javascript [closed]

EDITO: The problem was that the query to the database was taking me the information of another user, not the one who had logged in. Absurd error, I have solved by doing a separate query knowing that this variable is only used for the script of...
asked by 20.04.2017 / 14:35
2
answers

Add different classes to a DIV list

I have an admin that dynamically adds news to a page. I have two different different classes that gives different styles to the news. From the admin I can not add those classes. How do I do with javascript so that when the do that I have armed l...
asked by 20.04.2017 / 03:55
0
answers

Error JSPDF does not correctly export the images

I am trying to export a div that inside contains tables to pdf with jspdf. The div and its content I charge with php. This is the resulting div: <div id="test"> <table class="MsoNormalTable" border="1" cellspacing="0" cellpadding="0"...
asked by 03.05.2017 / 07:24
1
answer

Problem with observables in angular2

Hello, how could I do the following, I have a ListComponent component that serves as a template. At the end I have ListComponent1 and ListComponent2, which is passed by input different options (type of menu if it is menuPrincipal, authentication...
asked by 13.04.2017 / 21:08